Basic configuration 1-fooled into centos 6

Source: Internet
Author: User

The original Ubuntu failed to work normally because of a hard disk, so we had to reinstall it. However, my colleague introduced the use of RedHat, saying that most of the Linux server in the Organization is RedHat, and I didn't think much about it. After using it, I found that many habits need to be changed. Several configurations have been optimized:

  1. Disable IPv6:/etc/modprobe. d/Dist. conf. Add:
    Alias net-pf-10 off
    Options IPv6 disable = 1
    You do not need to add the following in/etc/sysconfig/network:
    Networking_ipv6 = No
  2. Disable the firewall iptables (incorrect settings will affect the use of Apache and tomcat, so disable:
    Chkconfig -- level 2345 iptables off
  3. When sellinux is disabled, allow_ftpd_full_access will affect vsftp upload. The p parameter is valid permanently:
    Setsebool-P allow_ftpd_full_access on
  4. Install software, which is as convenient as apt-Get In ubuntu. Use yum.
  5. Tomcat6 configuration is somewhat inexplicable:
    1. No error is reported when the service is started. if the service is disabled, an error is returned (severe: protocol handler pause failed java.net. unknownhostexception: server1: server1
      Solution: Modify the/etc/hosts file and add 127.0.0.1 server1
    2. Unable to bind IPv4 port, always bind to IPv6 address: netstat-NTL: 8080.
      Solution: Disable Ipv6.
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.