Set ora 17 to enable automatic Service Startup and use the new service management tool.

Source: Internet
Author: User

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

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.