1 vi /etc/sysconfig/network-scripts/ifcfg-em1 编辑网卡配置
2 service network restart 重启网卡
3 ip addr 查看网卡信息
4 cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
5 cd /etc/yum.repos.d/
6 yum install wget
7 wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
8 yum makecache
9 yum -y update
10 yum -y install ant //配置163源,可选
11 yum -y install wget vim git texinfo patch make cmake gcc gcc-c++ gcc-g77 flex bison file libtool libtool-libs autoconf kernel-devel libjpeg libjpeg-devel libpng libpng-devel libpng10 libpng10-devel gd gd-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glib2 glib2-devel bzip2 bzip2-devel libevent libevent-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel vim-minimal nano fonts-chinese gettext gettext-devel ncurses-devel gmp-devel pspell-devel unzip libcap diffutils lrzsz net-tools traceroute //安装基础库
12 yum install ntpdate 安装时间同步工具
13 ntpdate cn.pool.ntp.org 同步时间
wdcp安装
wdcp支持两种安装方式
1 源码编译 此安装比较麻烦和耗时,一般是20分钟至一个小时不等,具体视机器配置情况而定
2 RPM包安装 简单快速,下载快的话,几分钟就可以完成
源码安装(ssh登录服务器,执行如下操作即可,需root用户身份安装)
wget http://dl.wdlinux.cn/lanmp_laster.tar.gz
tar zxvf lanmp_laster.tar.gz
sh lanmp.sh
默认安装N+A的引擎组合
可安装多版本PHP更灵活应用,参考http://www.wdlinux.cn/bbs/thread-57643-1-1.html
安装前,可先去演示站体验一番
http://demo.wdlinux.cn
admin/wdlinux.cn
卸载(注意备份数据,否则后果自负)
sh install.sh uninstall
就可以