已經安裝成功,并且支援 PHP 的樣子:

源碼安裝步驟如下:
YUM安裝如下:
--with-http_stub_status_module:支援nginx狀态查詢 --with-http_ssl_module:支援https --with-pcre:為了支援rewrite重寫功能,必須制定pcre
配置檔案:
YUM安裝:/etc/nginx/nginx.conf
源碼安裝(基于之前的安裝指令):/usr/local/nginx/conf/nginx.conf
一個标準的 HTTP 配置
一個标準的 HTTPS 配置
YUM服務啟停的指令
systemctl start nginx.service
systemctl stop nginx.service
systemctl restart nginx.service
systemctl enable nginx.service
systemctl disable nginx.service
源碼安裝服務啟停的指令
/usr/local/nginx/sbin/nginx
/usr/local/nginx/sbin/nginx -s stop