linux搭建lnmp环境
参考: https://www.cnblogs.com/phpshangxiaobai/p/10864525.html (php7.3.5 + nginx1.16 + mysql8) 1、准备 #新建目录,/lnmp/php7、/lnmp/nginx mkdir -p /lnmp/php7 mkdir /lnmp/nginx #安装依赖 yum install gcc gcc-c++ automake pcre pcre-devel zlip zlib-devel openssl openssl-devel libxml2-devel libpng-devel curl-devel numactl 2、安装nginx cd /lnmp yum -y install wget #安装wget wget http://nginx.org/download/nginx-1.16.0.tar.gz #下载nginx tar xvf nginx-1.16.0.tar.gz #解压 cd nginx-1.16.0 ./configure --prefix=/lnmp/nginx --with-http_ssl_module #安装到/lnmp/nginx make && make install #编译&安装 cp /lnmp/nginx/sbin/nginx /usr/bin/ nginx