Fedora17 sets automatic startup of services to use the new service management tool
Source: Internet
Author: User
Fedora17 sets automatic startup service to use the new service management tool in CentOS/RHEL. The system service is SystemV startup script control, which mainly uses two commands: chkconfig and service, in/etc/init. d/bottom. the new systemd system and service management are used in Fedora... in CentOS/RHEL, the System service uses the System V startup script control, which mainly uses two commands: chkconfig and service, in/etc/init. d/bottom. the new systemd system and service management program are used in Fedora. systemctl control is mainly used and configured under/etc/systemd. more powerful. The following uses the mysqld service as an example: 1. start mysqld service # systemctl start mysqld. service 2. set automatic startup # systemctl enable mysqld. service 3, stop auto-start # systemctl disable mysqld. service 4. view the current status of the service # systemctl status mysqld. service 5. restart a service # systemctl restart mysqld. service 6. view all started Services # systemctl list-units -- type = service enable port 22 of the firewall # iptables-I INPUT-p tcp -- dport 22-j ACCEPT if the problem persists, SELinux may be disabled due to selinux: modify selinux = "" to disabled in the/etc/SELINUX/config file, then restart ========================================== [root @ CC init. d] # systemctl start sshd. service [root @ CC init. d] # systemctl enable sshd. service ln-s'/usr/lib/systemd/system/sshd. service ''/etc/systemd/system/multi-user.target.wants/sshd. service '[root @ CC init. d] # iptables-I INPUT-p tcp -- dport 22-j ACCEPT
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