mysql改密码(需要输入旧密码): /usr/bin/mysqladmin -u root -p password root
/usr/local/mysql/bin/mysqladmin -uroot password 新密码
设置防火墙: vim /etc/sysconfig/iptables
开端口
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
/etc/rc.d/init.d/iptables restart
查看端口: netstat -na | grep LISTEN
netstat -na | grep 3306
自动启动的服务: chkconfig --add mysqld
chkconfig sendmail off
chkconfig --add postfix
chkconfig --list postfix
echo "/etc/rc.d/init.d/mysqld start" >> /etc/rc.local
改ip : vim /etc/sysconfig/network-scripts/ifcfg-eth0
NETMASK=255.255.255.0
IPADDR=192.168.1.119
GATEWAY=192.168.1.1
/etc/init.d/network restart
setup 也可以设置ip防火墙等
修改默认语言 : vi /etc/sysconfig/i18n
查看 echo $LANG