有人可以澄清一下“供应商预设:禁用”是什么意思吗?在 RHEL7 中启用包后,此选项可见。
the*_*btm 18
如果您看到供应商预设:已禁用,则表示该服务首次安装时将在启动时禁用,必须手动启动。如果您希望服务在启动时自动启动,只需使用 更改它的启动设置systemctl enable <service>,例如:systemctl enable httpd。
可以在RHEL systemctl 文档或systemctl 手册页本身找到详细说明
? httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2018-09-10 09:29:16 MDT; 1h 3min ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 6917 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
Main PID: 1261 (httpd)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/httpd.service
??1261 /usr/sbin/httpd -DFOREGROUND
??6936 /usr/sbin/httpd -DFOREGROUND
??6937 /usr/sbin/httpd -DFOREGROUND
??6938 /usr/sbin/httpd -DFOREGROUND
??6939 /usr/sbin/httpd -DFOREGROUND
??6940 /usr/sbin/httpd -DFOREGROUND
Sep 10 09:28:51 localhost systemd[1]: Starting The Apache HTTP Server...
Sep 10 09:29:16 localhost systemd[1]: Started The Apache HTTP Server.
Sep 10 10:21:02 localhost systemd[1]: Reloaded The Apache HTTP Server.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
50013 次 |
| 最近记录: |