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:
- 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
- Disable the firewall iptables (incorrect settings will affect the use of Apache and tomcat, so disable:
Chkconfig -- level 2345 iptables off
- 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
- Install software, which is as convenient as apt-Get In ubuntu. Use yum.
- Tomcat6 configuration is somewhat inexplicable:
- 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
- Unable to bind IPv4 port, always bind to IPv6 address: netstat-NTL: 8080.
Solution: Disable Ipv6.