阿里云CentOSnginx+php+sql
yum list nginx
yum -y install nginx
service nginx restart
======没有可用软件包 nginx==========
sudo yum install epel-release yum update yum install -y nginx
=====================================
立即啟動
systemctl start nginx
查看目前運作狀態
systemctl status nginx
若是 disabled,可以改成開機自動啟動
systemctl enable nginx
查看 nginx 服務目前的啟動設定
systemctl list-unit-files | grep nginx
刷新配置文件
./nginx -s reload