centos6 一键配置部署nginx php-fpm redis httpsqs
2014-10-27 14:26
555 查看
#安装163的源
/etc/yum.repos.d
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo[/code]yum makecacheyum update#关闭httpdchkconfig httpd offyum -y install vim (:set nu!)#安装nginx的源rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpmyum -y install nginxyum -y install gcc gcc-c++#安装phpyum -y install php-fpm php-common php-gd php-pdo php-cli php-devel php-xml php-mbstring php-ldap php-pear php-xmlrpc php-curl php-socketschkconfig php-fpm onchkconfig sshd onchkconfig nginx on/etc/init.d/php-fpm restart#下载phpredishttps://github.com/nicolasff/phpredishttps://github.com/nicolasff/phpredis/archive/master.zip./phpize./configuremake&&make install/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/#下载httpsqs扩展http://code.google.com/p/php-httpsqs-client/downloads/listhttp://php-httpsqs-client.googlecode.com/files/php_httpsqs_client_0.2.1.tar.gz./phpize./configuremake&&make install/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/vim /etc/php.iniextension=redis.so;extension=httpsqs.so;#防火墙vim /etc/sysconfig/iptables-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT/etc/init.d/iptables restart###############################################################httpsqs的类wget http://httpsqs.googlecode.com/files/libevent-2.0.12-stable.tar.gz tar zxvf libevent-2.0.12-stable.tar.gzcd libevent-2.0.12-stable/./configure --prefix=/usr/local/libevent-2.0.12-stable/makemake installcd ../ wget http://httpsqs.googlecode.com/files/tokyocabinet-1.4.47.tar.gz tar zxvf tokyocabinet-1.4.47.tar.gzcd tokyocabinet-1.4.47/./configure --prefix=/usr/local/tokyocabinet-1.4.47/#注1:在32位Linux操作系统上编译Tokyo cabinet,请使用./configure --enable-off64代替./configure,可以使数据库文件突破2GB的限制。 #./configure --enable-off64 --prefix=/usr/local/tokyocabinet-1.4.47/#注2:bzlib.h is required,如果出现这个错误,可以这样安装所需要的lib#yum install zlib* make*#yum install bzip* make*makemake installcd ../ #安装httpsqswget http://httpsqs.googlecode.com/files/httpsqs-1.7.tar.gz tar zxvf httpsqs-1.7.tar.gzcd httpsqs-1.7/makemake installcd ../ulimit -SHn 65535httpsqs -d -p 1218 -x /data0/queue ############################################################redis-server安装wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpmrpm -ivh epel-release-6-8.noarch.rpmyum install redis############################################################防火墙iptables -I INPUT -p tcp --dport 6379 -j ACCEPTiptables -I INPUT -p tcp --dport 1218 -j ACCEPTservice iptables save/etc/init.d/iptables restart###############################################################支持php路径和php优化mkdir -p /usr/local/php/ln -s /usr/bin /usr/local/php/binvim /etc/php.inidate.timezone = "Asia/Shanghai"error_reporting = E_ALL & ~E_NOTICE#################################################################开机后根据需要运行/etc/init.d/redis restartulimit -SHn 65535httpsqs -d -p 1218 -x /data0/queue
相关文章推荐
- centos6.5安装配置nginx+php+mysql+httpsqs+ttserver+redis
- linux(centos)上配置nginx、mysql、php-fpm、redis开机启动<转>
- linux后台服务器开发环境部署配置和验证(nginx+apache+php-fpm+FASTCGI(C/C++))
- CentOS6.4安装配置nginx+pcre+php/fpm
- linux(centos)上配置nginx、mysql、php-fpm开机启动
- centos 7 源码安装及 php-fpm 配置与 nginx 集成
- CentOS6.4安装配置nginx+pcre+php/fpm-- 这个配置的nginx
- centos 安装php-fpm , nginx二级域名配置 ,但为什么必须要 域名提供商 哪里解析新的二级域名一下 才能用呢?
- centos 7.2 安装Nginx 及配置php-fpm识别php文件
- centos7.2环境nginx+mysql+php-fpm+svn配置walle自动化部署系统详解
- linux7下centos6.8版本完全编译php7.17与nginx --后续,配置nginx.conf与php-fpm.conf,www.conf
- 详解 CentOS 安装配置 Nginx 0.8.33+PHP 5.3.1+php-fpm+MySQL 全过程【转】
- CentOS + Nginx + PHP-FPM(FastCGI) 配置CodeIgniter
- centos 配置php-fpm和nginx的通信
- centos7 nginx配置httpsCenos(6.6/7.1)下从源码安装Python+Django+uwsgi+nginx环境部署(二)
- CentOS7下PHP7,MySQL5.7,Nginx1.10以及对应的redis,swoole扩展的安装与配置
- centos安装php php-fpm 以及 配置nginx
- centos安装php php-fpm 以及 配置nginx
- centos 配置nginx php-fpm mysql 环境步骤
- CentOS 6.3下nginx、php-fpm、drupal快速部署