记一次centos7在断网环境下编译安装nginx1.6+php7.2
下载我们用到的依赖包文件 nginx1.6&php7.2.zip
unzip解压下载的包
unzip nginx+php7.2.zip
安装依赖
rpm -Uvh *.rpm
tar解压nginx
tar -zxvf nginx-1.6.0.tar.gz -C /usr/local/ngnix
编译nginx
cd /usr/local/nginx
./configure
mske && make install
whereis nginx
启动nginx
cd /usr/local/nginx/sbin/nginx
测试nginx
重启nginx进程
/usr/local/nginx/sbin/nginx -s reload
ps -ef | grep nginx
未完待续
评论 (0)