Linux Cloud Automation Operations Basics 8 (process)

Source: Internet
Author: User

########################
# # # #8. System Service Control # # # #
########################

1.systemd
System initialization program, the first process that the system starts, the PID is 1

2.systemctl command
Systemctl List-units # #列出当前系统服务的状态
Systemctl List-unit-files # #列出服务的开机状态
Systemctl Status sshd # #查看指定服务的状态
Systemctl Stop sshd # #关闭指定服务
Systemctl Start sshd # #开启指定服务
Systemctl Restart sshd # #从新启动服务
Systemctl Enable SSHD # #设定指定服务开机开启
Systemctl Disable SSHD # #设定指定服务开机关闭
Systemctl Reload sshd # #使指定服务从新加载配置
Systemctl list-dependencies sshd # #查看指定服务的倚赖关系
Systemctl Mask sshd # #冻结指定服务
Systemctl unmask sshd # #启用服务
Systemctl Set-default Multi-user.target # #开机不开启图形
Systemctl Set-default Graphical.target # #开机启动图形
Setterm # #文本界面设定color


650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/9D/45/wKioL1l9RAbSfoBZAAK4BejpQQk141.png "style=" float : none; "title=" screenshot from 2017-07-29 10-18-44.png "alt=" Wkiol1l9rabsfobzaak4bejpqqk141.png "/>

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/9D/45/wKiom1l9RAjhuYzDAALyj38y8dQ958.png "style=" float : none; "title=" screenshot from 2017-07-29 10-19-21.png "alt=" Wkiom1l9rajhuyzdaalyj38y8dq958.png "/>


3. Service Status
Systemctl Status Service Name

Loaded # #系统服务已经初始化完成, loaded configuration
Active (running) # #正有一个或多个程序正在系统中执行,
# VSFTPD is this pattern

Atcive (exited) # #僅執行一次就正常結束的服務,
# There are no programs in the system at this time.

Atcive (Waiting) # #正在執行當中,
# and wait for other events to continue


650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/9D/45/wKiom1l9Q-CSd7N4AAFRbLUf7Ho222.png "title=" Screenshot from 2017-07-29 10-20-36.png "alt=" Wkiom1l9q-csd7n4aafrbluf7ho222.png "/>
Inactive # #服务关闭
enbaled # #服务开机启动
Disabled # #服务开机不自启
Static # #服务开机启动项不可被管理
Failed # #系统配置错误

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/9D/45/wKioL1l9RHOi2J7bAAEOi3t_hbQ726.png "title=" Screenshot from 2017-07-29 10-28-31.png "alt=" Wkiol1l9rhoi2j7baaeoi3t_hbq726.png "/>

This article is from the "13122425" blog, please be sure to keep this source http://13132425.blog.51cto.com/13122425/1952057

Linux Cloud Automation Operations Basics 8 (process)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.