OS

CentOS 7, apache 서비스 등록 (systemctl)

by LionHeart posted Nov 04, 2016
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄
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  자동 시작 등록