Centos7 under Installation Python3&pip3&mysql&salt-ssh

Source: Internet
Author: User
Tags install openssl mysql in openssl

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- ssh3 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.