环境搭建
准备工具:
- centos7:http://mirror.bit.edu.cn/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1611.iso
- virtuslvox:https://www.virtualbox.org/wiki/Downloads
- subline
- secureCRT
1.装好虚拟机后,添加镜像文件,选择minimal最小化安装
yum update
#更新软件
yum -y
install
gcc kernel-devel kenel-headers
make
bzip2
# 安装依赖库
reboot
# 重启
2.挂载执行脚本
mount
/dev/cdrom
/mnt
# 挂载光驱到 mnt 目录
cd
/mnt
# 进入到mnt目录
sh .
/VBoxLinuxAdditions
.run
# 执行脚本,进行安装
reboot
#重启
3.做快照,以便日后恢复
4.python环境的安装(安装pyenv)
centos的配置
$ yum
install
readline readline-devel readline-static -y
$ yum
install
openssl openssl-devel openssl-static -y
$ yum
install
sqlite-devel -y
$ yum
install
bzip2
-devel
bzip2
-libs -y
$ yum
install
patch vim git
来源:https://www.cnblogs.com/bigriverx/p/8716117.html