[root@localhost ~]# systemctl stop firewalld.service
[root@localhost ~]# setenforce 0
[root@localhost ~]# yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel ttk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel
[root@localhost ~]# cd /opt/
[root@localhost opt]# ls
[root@localhost opt]# rz -E
rz waiting to receive.
[root@localhost opt]# ls
Python-3.7.7_.tgz
[root@localhost opt]# tar zxf Python-3.7.7_.tgz
[root@localhost opt]# ls
Python-3.7.7 Python-3.7.7_.tgz
[root@localhost opt]# cd Python-3.7.7/
[root@localhost Python-3.7.7]#yum -y install gcc
[root@localhost Python-3.7.7]# ./configure --prefix=/usr/local/Python-3.7.7/
[root@localhost Python-3.7.7]# make && make install -j4
[root@localhost Python-3.7.7]# ln -s /usr/local/Python-3.7.7/bin/python3.7 /usr/bin/python37
[root@localhost Python-3.7.7]# ln -s /usr/local/Python-3.7.7/bin/pip3.7 /usr/bin/pip37
[root@localhost Python-3.7.7]# pip37 install mycli -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
[root@localhost Python-3.7.7]# ln -s /usr/local/Python-3.7.7/bin/mycli /usr/bin/mycli
[root@localhost ~]# systemctl start mariadb.service
[root@localhost ~]# mycli -u root -p 123123
版权说明 : 本文为转载文章, 版权归原作者所有 版权申明
原文链接 : https://blog.csdn.net/a568911/article/details/121590323
内容来源于网络,如有侵权,请联系作者删除!