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
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.