centos7添加httpd为系统服务

vim /usr/lib/systemd/system/httpd.service粘贴如下内容[Unit]Description=The Apache HTTP ServerAfter=network.target remote-fs.target nss-lookup.targetDocumentation=man:httpd(8)Documentation=man:apachectl(8)[Service]Type=notifyEnvironmentFile=/etc/sysconfig/httpdExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUNDExecReload=/usr/sbin/httpd $OPTIONS -k gracefulExecStop=/bi
发布时间:2016-09-29 | 类别:数据库 | 阅读:2949 | 评论:1 | 标签:centos linux httpd

centos7添加nginx为系统服务

vim /usr/lib/systemd/system/nginx.service粘贴如下内容[Unit]Description=nginx - high performance web serverDocumentation=http://nginx.org/en/docs/After=network.target remote-fs.target nss-lookup.target[Service]Type=forking#PIDFile=/data/program/nginx/1.10.1/logs/nginx.pidExecStartPre=/data/program/nginx/1.10.1/sbin/nginx -t -c /data/program/nginx/1.10.1/conf/nginx.
发布时间:2016-09-29 | 类别:系统相关 | 阅读:2415 | 评论:1 | 标签:linux centos nginx

公告

2014年10月4日创建

标签云

最近评论

友情链接