问题1:重置centos系统
WARNING! The remote SSH server rejected X11 forwarding request.
解决方案:vim /etc/ssh/sshd_config
设置 X11Forwarding yes
,然后安装xorg-x11-xauth,yum install xorg-x11-xauth
,执行上述操作之后重新连接服务器,这时候你会发现警告消失了,但是会看到/usr/bin/xauth: file /root/.Xauthority does not exist
,这是由于/root/目录下没有.Xauthority
文件,只要重新使用xshell连接服务器即可,这是服务器将自动创建.Xauthority
文件
问题2:安装JDK
-bash: /usr/local/software/jdk1.7.0_71/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
解决方案:yum install glibc.i686
问题3:安装MySQL
error: Failed dependencies:
libaio.so.1 is needed by MySQL-server-5.6.22-1.el6.i686
libaio.so.1(LIBAIO_0.1) is needed by MySQL-server-5.6.22-1.el6.i686
libaio.so.1(LIBAIO_0.4) is needed by MySQL-server-5.6.22-1.el6.i686
libgcc_s.so.1 is needed by MySQL-server-5.6.22-1.el6.i686
libgcc_s.so.1(GCC_3.0) is needed by MySQL-server-5.6.22-1.el6.i686
libgcc_s.so.1(GLIBC_2.0) is needed by MySQL-server-5.6.22-1.el6.i686
libstdc++.so.6 is needed by MySQL-server-5.6.22-1.el6.i686
libstdc++.so.6(CXXABI_1.3) is needed by MySQL-server-5.6.22-1.el6.i686
libstdc++.so.6(GLIBCXX_3.4) is needed by MySQL-server-5.6.22-1.el6.i686
libstdc++.so.6(GLIBCXX_3.4.11) is needed by MySQL-server-5.6.22-1.el6.i686
libstdc++.so.6(GLIBCXX_3.4.9) is needed by MySQL-server-5.6.22-1.el6.i686
解决方案:
yum install libaio.so.1
yum update libstdc++-4.8.5-11.el7
yum update libgcc-4.8.5-11.el7.x86_64
yum install libgcc_s.so.1
yum install libstdc++.so.6
问题4:安装MySQL时出现不兼容
root@localhost ~]# rpm -ivh MySQL-server-5.5.24-1.linux2.6.x86_64.rpm
Preparing... ########################################### [100%]
file /usr/share/mysql/charsets/README from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
file /usr/share/mysql/charsets/Index.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
file /usr/share/mysql/charsets/armscii8.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
file /usr/share/mysql/charsets/ascii.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
file /usr/share/mysql/charsets/cp1250.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
解决方案:原因是系统已经安装了其他版本的mysql-libs包和mysql数据库文件导致不兼容,要删除mysql-libs,yum remove mysql-libs
问题5:安装MySQL出现
warning: user mysql does not exist - using root
warning: group mysql does not exist - using root
解决方案:yum install -y perl-Module-Install.noarch
问题6:运行service mysql start
Starting MySQL.. ERROR! The server quit without updating PID file (/var/lib/mysql/gaoyangpc.pid).
解决方案:因为以前存在的MySQL卸载不干净导致,必须重新安装
rpm -e MySQL-server-5.6.22-1.el6.i686
rpm -e MySQL-client-5.6.22-1.el6.i686
cd /var/lib/
rm -rf mysql/