目录
1.安装Apache
sudo apt-get install apache2
测试: 浏览器访问http://127.0.0.1的IP,出现It Works!网页。
查看状态: service apache2 status/start/stop/restart
Web目录: /var/www
安装目录: /etc/apache2/
全局配置: /etc/apache2/apache2.conf
监听端口: /etc/apache2/ports.conf
虚拟主机: /etc/apache2/sites-enabled/000-default.conf
2.安装MySQL
sudo apt-get install mysql-server mysql-client
测试:mysql -u root -p
查看状态:service mysql status/start/stop/retart
查看监听端口的情况:netstat -tunpl 或 netstat -tap
3.安装PHP
sudo apt-get install php7.1
测试:php7.1 -v
<