OS
2016.11.04 07:01
CentOS 7, apache 서비스 등록 (systemctl)
조회 수 111375 추천 수 0 댓글 0
vi /usr/lib/systemd/system/apache.service
[Unit]
Description=apache2 Service
After=syslog.target
After=network.target
[Service]
Type=forking
ExecStart=/usr/local/apache/bin/apachectl start
ExecStop=/usr/loacal/apache/bin/apachectl graceful-stop
ExecReload=/usr/local/apache/bin/apachectl graceful
PrivateTmp=true
LimitNOFILE=infinity
[Install]
WantedBy=multi-user.target
systemctl enable apache 자동 시작 등록