搭建Linux虚拟服务器
1.搭建Linux虚拟机环境
安装VMware Workstation 14
下载地址:https://www.cr173.com/soft/68480.html
密钥:FF31K-AHZD1-H8ETZ-8WWEZ-WUUVA
安装Linux系统:Linux 6.9
下载地址:http://archive.kernel.org/centos-vault/6.9/isos/x86_64/
安装linux命令自动补全工具
在 root 用户下,使用(切换到root用户 su root)
cd ~/Downloads
命令进入下载文件夹,然后依次输入如下三个命令:
[root@prime:~/Documents]$ wget http://mirrors.yun-idc.com/epel/6/i386/epel-release-6-8.noarch.rpm [root@prime:~/Documents]$ sudo rpm -ivh epel-release-6-8.noarch.rpm [root@prime:~/Documents]$ sudo yum clean all [root@prime:~/Documents]$ sudo yum makecache [root@prime:~/Documents]$ sudo yum install -y bash-completion
修改网络适配器的静态Ip
vim /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=statics HWADDR=00:0C:29:13:D1:6F ONBOOT=yes MM_CONTROLLED=no TYPE=Ethernet IPADDR=192.168.0.212 NETMASK=255.255.255.0 DNS1=140.207.198.6 DNS2=223.5.5.5
https://www.cnblogs.com/lcword/p/8094345.html
问题:在修改静态IP当中遇到修改IP后,Xshell无法连接问题,
原因:MAC地址不统一
处理:cat /etc/udev/rules.d/70-persistent-net.rules 查看MAC地址,并替换原来地址
https://blog.csdn.net/seven_zhao/article/details/43429571
2.安装pyenv
下载地址:https://github.com/pyenv/pyenv
1.安装git
#yum install git -y
2.安装python编译依赖
#yum -y install gcc make patch gdbm-devel openssl-devel sqlite-devel readline-devel zlib-devel bzip2-devel