Blogger Information
Blog 11
fans 0
comment 1
visits 15678
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Linux虚拟服务器安装
JasonKim的博客
Original
982 people have browsed it
/**
 * 需要的工具有以下三种
 * 虚拟机: virtualBox
 * 网址:https://www.virtualBox.org
 *
 * 服务系统:CentOS 7
 * https://www.centos.org
 *
 *
 * XShell
 * http://www.xshellcn.com/
 */
 
 /**
 * 新建安装:
 *  1、虚拟主机,选择虚拟内存,选择创建动态硬盘
 *  2、安装页面,选择虚拟IOS的位置,
 *  启动: 选择中文,选择硬盘,安装;
 *  3、网卡:选择桥接网卡
 *  4、虚拟机配置网卡:cd /etc/sysconfig/network-scripts/
 *      ll ifcfg-*  查询网卡文件;-enp*
 *      vi ifcfg-enp
 *      BOOTPROTO=static
 *      IPADDR=192.168.31.251
 *      NATMASK=255.255.255.0
 *      GATEWAY=192.168.31.1 (跟本地IP同一个网段)
 *      ONBOOT=yes
 *  重启网卡:service network restart
 *
 *  网络还是不通  DNS没有设置
 *  find / -name resolv.conf
 *  如果没有找到直接去目录
 *  cd /etc/
 *  vi resolv.conf
 *  i 插入
 *  nameserver 8.8.8.8
 *  nameserver 8.8.4.4
 *  重启网卡:service network restart
 *
 *  如果还是连接不上网络:请点击左上角的‘设备’选择网络,启动网络连接。
 *  就可以连接网络ping www.php.cn 就ping通了
 */


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post