linux開機自動重起nginx

在這裏插入代碼片1.我的nginx安裝路徑爲:/usr/local/nginx 2.nginx啓動全路徑:/usr/local/nginx/sbin/nginx 3.nginx的配置文件路徑/usr/local/nginx/conf/nginx.conf 4.創建nginx執行腳本:vi /etc/init.d/nginx 在nginx文件添加如下代碼: #!/bin/sh nginx - thi
相關文章
相關標籤/搜索