This is a blog for installation records.
Is the step to install the PYTHON3,PIP3,MYSQL,SALT-SSH in a CENTOS7 environment.
1 Installing MySQL
MARIADB is installed by default in CentOS, this is the branch of MySQL, but in order to need, it is necessary to install MySQL in the system, and after the installation is complete, you can overwrite the mariadb directly.
A download install MySQL official yum repository
Wget-i-C http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
Yum-y Install mysql57-community-release-el7-10.noarch.rpm
Yum-y Install Mysql-community-server
Systemctl Start Mysqld.service
Systemctl Status Mysqld.service
grep "Password"/var/log/mysqld.log
Mysql-uroot-p
After the first login, you need to change the password of the MySQL root user, and then log back in to operate.
Mysql> ALTER USER ' root ' @ ' localhost ' identified by ' new password ';
MySQL5.7.12 New Password login mode and password policy, not the password field, changed to authentication_string this field
Mysql> select user,host,authentication_string,password_expired from user;
If you want to log in remotely, you need to modify the host field, and the firewall is on port 3306.
But at this point, there is a problem, because the Yum Repository is installed, each time the Yum operation will be automatically updated, you need to uninstall this
Yum-y Remove Mysql57-community-release-el7-10.noarch
2 Installing SALT-SSH
A. Installing Epel source, Salt-ssh
yum -y
install
epel-release
yum -y
install
salt-
ssh
3 Installing Python3
A download the python3.6.5 source package from Python.org's official website
b Yum install gcc download compilation tool
C Yum install zlib* so for error: Zipimport. Zipimporterror:can ' t decompress data is due to a lack of zlib related toolkits
d Yum install openssl-y importerror:cannot import name httpshandler resolves this error problem with PIP.
Yum Install Openssl-devel-y
e access to the Python3 download source directory
./configure--prefix=/opt/python #安装目录可以自己定义无所谓.
Make && make install
F ln-s/opt/python/bin/python3/usr/bin/python3
4 Installing PIP for Python3
1. First install the Setuptools through the official module library to download: Https://pypi.python.org/pypi
wget--no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-19.6.tar.gz#md5= C607dd118eae682c44ed146367a17e26
Enter the extracted source directory
Python3 setup.py Install
2 Direct Download Install PIP
wget--no-check-certificate https://pypi.python.org/packages/source/p/pip/pip-8.0.2.tar.gz#md5= 3a73c4188f8dbad6a1e6f6d44d117eeb
Enter the extracted source directory
Python3 setup.py Install
Centos7 under Installation Python3&pip3&mysql&salt-ssh