建设一个网站需要哪些,手机网站策划书方案,wordpress 小米社区,温州建设银行网站2019独角兽企业重金招聘Python工程师标准 1、systemctl是RHEL 7 的服务管理工具中主要的工具#xff0c;它融合之前service和chkconfig的功能于一体。可以使用它永久性或只在当前会话中启用/禁用服务。 systemctl可以列出正在运行的服务状态#xff0c;如图 1、systemctl是RHEL 7 的服务管理工具中主要的工具它融合之前service和chkconfig的功能于一体。可以使用它永久性或只在当前会话中启用/禁用服务。 systemctl可以列出正在运行的服务状态如图 systemd-cgls以树形列出正在运行的进程它可以递归显示控制组内容。如图 2、如何启动/关闭、启用/禁用服务 启动一个服务systemctl start postfix.service 关闭一个服务systemctl stop postfix.service 重启一个服务systemctl restart postfix.service 显示一个服务的状态systemctl status postfix.service 在开机时启用一个服务systemctl enable postfix.service 在开机时禁用一个服务systemctl disable postfix.service 查看服务是否开机启动systemctl is-enabled postfix.service 查看已启动的服务列表systemctl list-unit-files|grep enabled 查看启动失败的服务列表systemctl --failed PS使用命令 systemctl is-enabled postfix.service 得到的值可以是enable、disable或static这里的 static 它是指对应的 Unit 文件中没有定义[Install]区域因此无法配置为开机启动服务。 说明启用服务就是在当前“runlevel”的配置文件目录/etc/systemd/system/multi-user.target.wants/里建立/usr/lib/systemd/system里面对应服务配置文件的软链接禁用服务就是删除此软链接添加服务就是添加软连接。如图 转载于:https://my.oschina.net/u/2324318/blog/727208