grep Port /etc/ssh/ssh_config # 端口占用情况 netstat -tnl
Mysql 安装
1 2 3 4 5 6 7
# 检查是否有其他版本的 Mysql yum list installed | grep mysql yum -y remove mysql-libs.x86_64 # 安装 wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm rpm -ivh mysql-community-release-el6-5.noarch.rpm yum repolist all | grep mysql
1 2 3 4 5 6 7 8 9
yum install mysql-community-server -y chkconfig --list |grep mysqld chkconfig mysqld on service mysqld start /usr/bin/mysqladmin -u root password '123456' mysql_secure_installation mysql -u root -p select Host,User Password from user where User 'root'; update user set Password=password('123456')
# 下载和安装 glibc2.14 wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz tar -xzvf glibc-2.14.tar.gz cd glibc-2.14 mkdir build cd build ../configure --prefix=/opt/glibc-2.14 make && make install