您好,登錄后才能下訂單哦!
查看Apache是否加入到到開機自啟動列表
systemctl list-unit-files | grep httpd
httpd.service disabled
將Apache加入到開機自啟動中
systemctl enable httpd
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
再次確認
systemctl list-unit-files | grep httpd
httpd.service enabled
啟動Apache
systemctl start httpd
netstat -lnt | grep 80
tcp 0 0 10.211.55.15:80 0.0.0.0:* LISTEN
查看Apache狀態
systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2019-12-16 15:16:35 CST; 7min ago
Docs: man:httpd(8)
man:apachectl(8)
Main PID: 2040 (httpd)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
Tasks: 6
CGroup: /system.slice/httpd.service
├─2040 /usr/sbin/httpd -DFOREGROUND
├─2041 /usr/sbin/httpd -DFOREGROUND
├─2042 /usr/sbin/httpd -DFOREGROUND
├─2043 /usr/sbin/httpd -DFOREGROUND
├─2044 /usr/sbin/httpd -DFOREGROUND
└─2045 /usr/sbin/httpd -DFOREGROUND
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。