一、配置CentOS 第三方yum源(CentOS默认的标准源里没有nginx软件包)
[root@localhost ~]# yum install wget #安装下载工具wget
[root@localhost ~]#wget http://www.atomicorp.com/installers/atomic #下载atomic yum源
[root@localhost ~]#sh ./atomic #安装
[root@localhost ~]# yum check-update #更新yum软件包
二、安装开发包和库文件
[root@localhost ~]# yum -y install ntp make openssl openssl-devel pcre pcre-devel libpng libpng-devel libjpeg-6b libjpeg-devel-6b freetype freetype-devel gd gd-devel zlib zlib-devel gcc gcc-c++ libXpm libXpm-devel ncurses ncurses-devel libmcrypt libmcrypt-devel libxml2 libxml2-devel imake autoconf automake screen sysstat compat-libstdc++-33 curl curl-devel
三、