mv /etc/sysconfig/i18n /etc/sysconfig/i18n.default
vim /etc/sysconfig/i18n
LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"
SUPPORTED="zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"
export LC_ALL="zh_CN.GB18030"
rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
reboot
yum remove httpd php mysql
yum install gcc pcre pcre-devel OpenSSL openssl-devel openssl-perl openssl-static openssl-devel libxml2 libxml2-devel libxslt libxslt-devel libgcrypt-devel gd gd-devel zlib-devel
/usr/sbin/groupadd www
/usr/sbin/useradd -s /sbin/nologin -g www www
ulimit -SHn 65535
mkdir /usr/src/lnmp2014-1-2
GeoIP安装
cd /usr/src/lnmp2014-1-2
wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.6.0.tar.gz
gunzip GeoIP-1.6.0.tar.gz
cd GeoIP-1.6.0
./configure
make && make install
echo "/usr/local/lib">>/etc/ld.so.conf
/sbin/ldconfig /etc/ld.so.conf
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
gunzip GeoIP.dat.gz
mv GeoIP.dat /var/lib/
NGINX 安装
cd /usr/src/lnmp2014-1-2
wget http://nginx.org/download/nginx-1.4.4.tar.gz
tar xvf nginx-1.4.4.tar.gz
cd nginx-1.4.4
./configure --user=www --group=www \
--with-http_ssl_module \
--with-http_realip_module \
--with-http_addition_module \
--with-http_xslt_module \
--with-http_image_filter_module \
--with-http_geoip_module \
--with-http_sub_module \
--with-http_dav_module \
--with-http_flv_module \
--with-http_gzip_static_module \
--with-http_random_index_module \
--with-http_secure_link_module \
--with-http_stub_status_module
make && make install
vi /usr/local/nginx/conf/nginx.conf
/usr/local/nginx/sbin/nginx