linux php mysql nginx_PHP_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > PHP > linux php mysql nginx

linux php mysql nginx

 2016/5/12 5:31:37  摇摇欲醉  程序员俱乐部  我要评论(0)
  • 摘要:sudoapt-getinstallfilezillavimscimautogenleafpadintltoolgrunalienrpmp7zip-fullrarvirtualbox-ose-qtchromium-browsermeldgstmchmseecifs-utilscurlg++curllibssl-devapache2-utilsgit-coresudoapt-getinstallphp-apcphp5-devphp5-fpmnginxmysql-servermysql
  • 标签:Linux PHP Nginx SQL MySQL
sudo apt-get install filezilla vim scim autogen leafpad intltool grun alien rpm p7zip-full rar virtualbox-ose-qt chromium-browser meld gstm chmsee cifs-utils curl g++ curl libssl-dev apache2-utils git-core


sudo apt-get install php-apc php5-dev php5-fpm nginx mysql-server mysql-client unzip make gcc g++ automake libtool libmysqlclient15-dev libexpat1-dev libpcrecpp0 zlib1g-dev libgd2-xpm libgd2-xpm-dev libxml2 libxml2-dev libxslt-dev  libgd2-xpm libgd2-xpm-dev geoip-database libgeoip-dev libpcre3 libpcre3-dev


sudo apt-get install php5-mysql php5-curl php5-gd php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-json

lihuanchun 2015/5/26 14:16:36
# nginx 安装concat 模块
$ nginx -v
----------------------------------
nginx version: nginx/1.1.19
----------------------------------

cd /tmp
wget http://sysoev.ru/nginx/nginx-1.1.19.tar.gz

tar -zxvf nginx-1.1.19.tar.gz
cd nginx-1.1.19


sudo chmod -R 777 /var/lib/nginx/
svn checkout http://code.taobao.org/svn/nginx_concat_module/trunk/ /var/lib/nginx/concat
nginx -V
----------------------------------
nginx version: nginx/1.1.19
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --with-debug --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-http_xslt_module --with-ipv6 --with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl --with-mail --with-mail_ssl_module --add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-auth-pam --add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-echo --add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-upstream-fair --add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-dav-ext-module
----------------------------------

./configure  --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --with-debug --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-http_xslt_module --with-ipv6 --with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl --with-mail --with-mail_ssl_module  --add-module=/var/lib/nginx/concat

注意:
如果报错 src/event/ngx_event_openssl.c: In function 'ngx_ssl_create':
http://trac.nginx.org/nginx/changeset/a73678f5f96ffead0b616b2c03dfcfd5445d443b/nginx

make
sudo apt-get remove nginx nginx-full nginx-common
sudo make install

ln -s /etc/nginx/sbin/nginx /usr/sbin/nginx

sudo /etc/init.d/php5-fpm start
sudo /etc/init.d/nginx restart
发表评论
用户名: 匿名