CentOS常用软件安装:
1.java1.8:
# yum -y install java-1.8.0-openjdk*
2.python2.7(http://www.linuxidc.com/Linux/2013-05/84727.htm)
# yum update
# yum install centos-release-SCL
# yum install python27
3.MySQL安装
# yum install -y mysql-server mysql mysql-devel
mysql5.7 rpm安装后问题记录:
3.1:寻找默认密码
grep 'temporary password' /var/log/mysqld.log
3.2:设置简单密码被约束(或设置复杂点的密码,例:Platform#1234)
mysql> set global validate_password_policy=0;
mysql> set global validate_password_length=1;
备注:若yum源有误,可参照:http://www.centoscn.com/mysql/2014/1211/4290.html
4.卸载mysql
1、yum remove mysql mysql-server mysql-libs compat-mysql51
2、rm -rf /var/lib/mysql
3、rm /etc/my.cnf