虚机安装centos,nginx
安装nginx
unzip Nginx.zip
sh build.sh
根目录,添加环境变量
vim .bashrc
export PATH=$PATH:/use/local/nginx/sbin;
source .bashrc
ps -ef |grep nginx
查看页面能否访问
不能访问,查看是否有防火墙
ps -ef |grep fire
systemctl stop firewalld.service
systemctl disable firewalld.service
systemctl stop nginx.service
nginx -s reload



