摘要: 完成nginx基本配置后,可以把它配置服务的形式,方便管理。同时可以让该服务在系统启动时自动启动。1. 首先配置服务脚本,建立文件 /etc/rc.d/init.d/nginx , 其内容如下:[html] view plaincopy#!/bin/sh#chkconfig:23451090#name:nginx#description:NginxServiceScript#case$1instart)echo"StartingNginx..."/usr/local/nginx/sbin/nginx-c/usr/local/nginx/conf/nginx.conf # p 阅读全文
posted @ 2013-12-25 10:08 GoneWithWind 阅读(195) 评论(0) 推荐(0) 编辑