懒码农。。。。。。

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

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

posted on 2009-05-03 15:32  阿彬  阅读(413)  评论(0编辑  收藏  举报