PS:很长时间没使用Ubuntu了,刚才安装个Ubuntu Server 12.04做测试.Ubuntu的网络设置跟Redhat系是不一样的,配置IP时发现跟以前的Ubuntu桌面版本也有所不同,记录如下: 1.配置静态IP地址: # vim /etc/network/interfaces 原内容有如下4行:auto loiface lo inet loopback auto eth0iface eth0 inet dhcp 以上表示默认使用DHCP分配IP,修改为如下: auto loifac…
原文网址:http://blog.csdn.net/njchenyi/article/details/8715417 1.配置静态IP地址: # vim /etc/network/interfaces 原内容有如下4行:auto loiface lo inet loopback auto eth0iface eth0 inet dhcp 以上表示默认使用DHCP分配IP,修改为如下: auto loiface lo inet loopback # The primary network inte…
1.配置静态IP地址: # vim /etc/network/interfaces 原内容有如下4行:auto loiface lo inet loopback auto eth0iface eth0 inet dhcp 以上表示默认使用DHCP分配IP,修改为如下: auto loiface lo inet loopback # The primary network interfaceauto eth0#iface eth0 inet dhcp iface eth0 inet statica…
接着上一节继续搭建我们的LNMP平台,接下来我们安装PHP相关的服务 sudo apt-get install php5-cli php5-cgi php5-fpm php5-mcrypt php5-mysql 然后我们需要去进行一些PHP5的相关设定,修改指定的index page 和 默认的www路径 sudo vi /etc/nginx/sites-available/default 设定如下 root /var/www; index index.html index.htm index.…
本文记录下Ubuntu Server 16.04修改IP.DNS.hosts的方法 -------- 1. Ubuntu Server 16.04修改IP sudo vi /etc/network/interfaces 回显: # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address…
ubuntu Server 设置主机静态 ip地址 1:先输入 ifconfig 查看当前网络配置 2:然后关闭 eth0 网卡 sudo ifdown eth0 3:配置静态ip sudo vim /etc/network/interfaces 打开文件,修改eth0的配置,设置您的ip,网关,子网掩码 4:此时,如果不配置dns ,ping不通的: sudo vim /etc/resolv.conf 添加nameserver 即可 5:保存退出 6:激活网卡eth0 sudo ifup et…
怀揣着为中小企业量身定做一整套开源软件解决方案的梦想开始了一个网站的搭建.http://osssme.org/ OS环境准备 这次是从OS开始安装的.最开始装Ubuntu12.04这里就不再赘述, 唯一一点就是这次是裸装,所有的各类服务器都没有在安装OS时一起装上. 安装好OS后,执行下述命令,确保OS最新. $ sudo apt-get update$ sudo apt-get upgrade 重启,查看确认OS版本信息,截止到现在为止,OS版本信息为12.04.2lsb_release -a…
U盘安装ubuntu server 12.04的问题检测不到CDROM的解决 ========================== 我是u盘安装ubuntu 14 64Bit 也是出现同样的问题 用u盘安装ubuntu server的时候会遇到很多麻烦的比如cdrom无法挂载或者挂载的程序有错误,那么开始我的第一个步骤: 1 .刻录ubuntu server镜像ISO到U盘 ,然后再把ISO镜像文件再拷贝到u盘里. 2 .u盘插入电脑重启选择启动设备时从u盘启动 到cdrom程序检测出错,一般都…
接下来我们去下载 WorePress 用最新的 3.7.1 下载地址是:http://cn.wordpress.org/wordpress-3.7.1-zh_CN.zip 我们先建立一个文件夹 /var/www sudo mkdir /var/www 然后我们用 wget 命令来下载 zip文件 wget http://cn.wordpress.org/wordpress-3.7.1-zh_CN.zip 然后使用 unzip 命令来解压缩zip 如果看到如下提示: The program 'un…
Ubuntu server 12.04因为尝试安装过xfce,导致sudo apt-get install xxx 都会返回,如: vagrant@precise32:~$ sudo apt-get install phpunit Reading package lists... Done Building dependency tree Reading state information... Done phpunit is already the newest version. The fo…