- 工信部備案號 滇ICP備05000110號-1
- 滇公安備案 滇53010302000111
- 增值電信業(yè)務經營許可證 B1.B2-20181647、滇B1.B2-20190004
- 云南互聯(lián)網(wǎng)協(xié)會理事單位
- 安全聯(lián)盟認證網(wǎng)站身份V標記
- 域名注冊服務機構許可:滇D3-20230001
- 代理域名注冊服務機構:新網(wǎng)數(shù)碼
# systemctl list-unit-files --type=service UNIT FILE STATE arp-ethers.service disabled auditd.service enabled autovt@.service disabled blk-availability.service disabled brandbot.service static collectd.service disabled console-getty.service disabled console-shell.service disabled cpupower.service disabled crond.service enabled dbus-org.Fedoraproject.FirewallD1.service enabled ....
# systemctl start httpd.service # systemctl restart httpd.service # systemctl stop httpd.service # systemctl reload httpd.service # systemctl status httpd.service httpd.service -TheApache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled) Active: active (running) since Tue2015-04-2817:21:30 IST;6s ago Process:2876ExecStop=/bin/kill -WINCH ${MAINPID}(code=exited, status=0/SUCCESS) Main PID:2881(httpd) Status:"Processing requests..." CGroup:/system.slice/httpd.service ├─2881/usr/sbin/httpd -DFOREGROUND ├─2884/usr/sbin/httpd -DFOREGROUND ├─2885/usr/sbin/httpd -DFOREGROUND ├─2886/usr/sbin/httpd -DFOREGROUND ├─2887/usr/sbin/httpd -DFOREGROUND └─2888/usr/sbin/httpd -DFOREGROUND Apr2817:21:30 tecmint systemd[1]:StartingTheApache HTTP Server... Apr2817:21:30 tecmint httpd[2881]: AH00558: httpd:Couldnot reliably determine the server's fully q...ssage Apr 28 17:21:30 tecmint systemd[1]: Started The Apache HTTP Server. Hint: Some lines were ellipsized, use -l to show in full.
注意:當我們使用systemctl的start,restart,stop和reload命令時,我們不會從終端獲?到任何輸出內容,只有status命令可以打印輸出。
# systemctl is-active httpd.service # systemctl enable httpd.service # systemctl disable httpd.service
# systemctl mask httpd.service ln -s '/dev/null''/etc/systemd/system/httpd.service' # systemctl unmask httpd.service rm '/etc/systemd/system/httpd.service'
# systemctl kill httpd # systemctl status httpd httpd.service -TheApache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled) Active: failed (Result:exit-code) since Tue2015-04-2818:01:42 IST;28min ago Main PID:2881(code=exited, status=0/SUCCESS) Status:"Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec" Apr2817:37:29 tecmint systemd[1]: httpd.service:Got notification message from PID 2881, but recepti...bled. Apr2817:37:29 tecmint systemd[1]: httpd.service:Got notification message from PID 2881, but recepti...bled. Apr2817:37:39 tecmint systemd[1]: httpd.service:Got notification message from PID 2881, but recepti...bled. Apr2817:37:39 tecmint systemd[1]: httpd.service:Got notification message from PID 2881, but recepti...bled. Apr2817:37:49 tecmint systemd[1]: httpd.service:Got notification message from PID 2881, but recepti...bled. Apr2817:37:49 tecmint systemd[1]: httpd.service:Got notification message from PID 2881, but recepti...bled. Apr2817:37:59 tecmint systemd[1]: httpd.service:Got notification message from PID 2881, but recepti...bled. Apr2817:37:59 tecmint systemd[1]: httpd.service:Got notification message from PID 2881, but recepti...bled. Apr2818:01:42 tecmint systemd[1]: httpd.service: control process exited, code=exited status=226 Apr2818:01:42 tecmint systemd[1]:Unit httpd.service entered failed state. Hint:Some lines were ellipsized,use-l to show in full.
售前咨詢
售后咨詢
備案咨詢
二維碼
TOP