Centos SELINUX, I can't remember the name.

Source: Internet
Author: User


Boot Setup networking vim/etc/sysconfig/network-scripts/ifcfg-eth0  Onboot=yes


First command executed yum-y install gcc gcc-c++ automake pcre pcre-devel zlib zlib-devel open openssl-devel wget vim


Modify the/etc/selinux/config file to change the selinux=enforcing to selinux=disabled restart the machine


1) Permanent, no recovery after restart: Chkconfig iptables on off: chkconfig iptables off2) immediate effect, restart after restart: Service iptables start off: Service Ipta Bles stop


Vim/etc/inittab set to 3

Reboot


#/sbin/iptables-i input-p TCP--dport 80-j accept#/sbin/iptables-i input-p tcp--dport 22-j accept#/sbin/iptables-i Input-p TCP--dport 3306-j accept# Open port: 8080/sbin/iptables-i input-p TCP--dport 8080-j accept# then save #/etc/rc.d/init.d/ Iptables Save #查看防火墙信息/etc/init.d/iptables status




...

Centos SELINUX, I can't remember the name

Related Article

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.