CentOS7啓動,關閉服務;關閉防火牆;讓一個程序在後臺運行

啓動、關閉服務

啓動一個服務:systemctl start firewalld.service
關閉一個服務:systemctl stop firewalld.service
重啓一個服務:systemctl restart firewalld.service
顯示一個服務的狀態:systemctl status firewalld.service
在開機時啓用一個服務:systemctl enable firewalld.service
在開機時禁用一個服務:systemctl disable firewalld.service

查看服務是否開機啓動:systemctl is-enabled firewalld.service;
查看已啓動的服務列表:systemctl list-unit-files|grep enabled

1、開、關防火牆,及查看當前狀態
systemctl status firewalld.service
systemctl stop firewalld.service
systemctl disable firewalld.service
systemctl status firewalld.service

讓一個php程序在後臺執行
nohup php server.php & 或者 screen php server.php
建議第一個

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章