Linux Centos 7 systemctl(systemd)新增長service服務,而且開機啓動

centos 7中採用了systemd控制系統服務,更加簡單,之前啓動服務須要 service xxxx start|stop等。如今須要的是systemctl start|stop xxx。好比我配置的啓動tomcat,systemctl start tomcat。十分方便。之前是在,如今直接在/usr/lib/systemd/system裏面新建一個tomcat.service,內容以下:ce
相關文章
相關標籤/搜索