1.安装python3.6.2
安装依赖
yum -y groupinstall "Development tools"
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
下载python 解压 软链
wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tar.xz
创建安装目录
mkdir /usr/local/python3
安装 gcc 由于 Python 3.6.2 的编译需要编译环境,故需安装 gcc。
yum -y install gcc
解压 Python 3.6.2 并安装在/usr/local/python3
目录下。
tar -xvJf Python-3.6.2.tar.xz
cd Python-3.6.2
./configure --prefix=/usr/local/python3
make && make install
创建软链
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
2.安装MySQL
3.systemctl: command not found
systemctl status vsftpd.service
-bash: systemctl: command not found
centos6 没有使用 systemd,所以没有 systemctl 命令。
可以使用 service 命令,service vsftpd status