查看当前系统使用32或64位
查看内核架构dpkg --print-architecture
#没有的话就不需要了,说明是32位内核架构
接着输入dpkg --print-foreign-architectures
#提示i386则说明已经支持32位的软件了
开启32位支持的方法
dpkg --add-architecture i386
apt-get update
apt install libc6:i386
Linux查看软件的安装目录
whereis mysql
# 结果
mysql: /usr/bin/mysql /usr/lib64/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz
查找 php.ini文件位置
php -i | grep "php.ini"
Ping主机 , 检查通不通
ping 192.168.3.200
查端口 , telnet 端口检测
telnet 192.168.3.200 3306
检查防火墙 , 查开放端口
sudo iptables -L -n
查端口绑定的IP
netstat -an | grep 3306
发现下面端口绑定监听的主机是127.0.0.1, 这不方便本地开发, mysql配置注释bind-address=127.0.0.1
tcp 0 0 127.0.0.1:3306 127.0.0.1:3306 LISTEN
更多操作查看https://blog.csdn.net/kent_kent_kent/article/details/20929751