lnmp :linux +nginx +mysql +php
1.安装nginx
yum -y install gcc gcc-c++ pcre-devel zlib-devel
tar -zxvf nginx-1.16.1.tar.gz #解压 编译
cd nginx-1.16.1
./configure
make
make install
2. 安装相关依赖 php mysql
yum -y install php php-gd php-mysql php-fpm mysql mysql-server
3.更改配置文件
vim /usr/local/nginx/cong/nginx.conf
4.编写主界面
vim /var/www/html/info.php
5. 启动nginx
/usr/local/nginx/sbin/nginx
6.启动mysql
service mysqld restart
service mysqld enabled
7.启动 php-fpm 查看端口9000是否启动
service php-fpm restart
netstat -ntlp
8 .查看测试界面