「腾达签名」 - 解决苹果app/ipa/tf/ios企业超级签名下载掉签难题「腾达签名」

专注IOS苹果签名内测
解决APP签名下载难题

centos安装nginx的web环境

centos安装nginx的web环境-「腾达签名」

为什么要用nginx呢,apache处理动态页面确实不错,但是它占用资源确实是太大了.
而lighttpd据说存在大并发的时候内存溢出,所以综合考虑nginx是个不错的选择.
编译安装太麻烦,用一键安装包又慢的要死要死的.这里使用的yum安装,很方便.

1、导入外部软件库

centos-5 32位:

rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/epel-release-5-4.noarch.rpm
rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/ius-release-1.0-10.ius.el5.noarch.rpm
rpm -Uvh http://nginx.org/packages/centos/5/noarch/RPMS/nginx-release-centos-5-0.el5.ngx.noarch.rpm

centos-5 64位:

rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/epel-release-5-4.noarch.rpm
rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-10.ius.el5.noarch.rpm
rpm -Uvh http://nginx.org/packages/centos/5/noarch/RPMS/nginx-release-centos-5-0.el5.ngx.noarch.rpm

编辑/etc/yum.repos.d/ius.repo,注释以下行:

mirrorlist=http://dmirr.iuscommunity.org/mirrorlist?repo=ius-el5&arch=$basearch

删除注释以下行:

#baseurl=http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/$basearch

2、yum安装lnmp

yum install mysql55-server mysql55 php53u-fpm php53u-mysql nginx

3、配置lnmp

vi /etc/nginx/conf.d/default.conf

修改为:

location ~ .php$ {
    root html;
    fastcgi_pass 127.0.0.1:9000;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name;
    include fastcgi_params;
}

4、启动lnmp

chkconfig php-fpm on
chkconfig nginx on
chkconfig mysqld on
service php-fpm start
service nginx start
service mysqld start

这样基于nginx的web环境就搭建好了.
苹果签名www.nanti.net

企业签名www.nanti.net

超级签名www.nanti.net

TF签名www.nanti.net

centos安装nginx的web环境-「腾达签名」
本原创文章未经允许不得转载 | 当前页面:「腾达签名」 » centos安装nginx的web环境

评论