此内容没有您所选择的语言版本。

12.3. Running Services


The service utility allows you to start, stop, or restart the services from the /etc/init.d/ directory.

12.3.1. Determining the Service Status

To determine the current status of a service, type the following at a shell prompt:
service service_name status
For example, to determine the status of the httpd service, type:
~]# service httpd status
httpd (pid  7474) is running...
To display the status of all available services at once, run the service command with the --status-all option:
~]# service --status-all
abrt (pid  1492) is running...
acpid (pid  1305) is running...
atd (pid  1540) is running...
auditd (pid  1103) is running...
automount (pid 1315) is running...
Avahi daemon is running
cpuspeed is stopped
... several lines omitted ...
wpa_supplicant (pid  1227) is running...
Note that you can also use the Service Configuration utility as described in Section 12.2.1, “Using the Service Configuration Utility”.
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.