add install-nginx and install-phpredis.sh

This commit is contained in:
Guobao Jiang 2014-02-14 12:39:36 +08:00
parent 98b2dfb507
commit 844bc60a44
3 changed files with 47 additions and 1 deletions

37
nginx/install-nginx.sh Executable file
View File

@ -0,0 +1,37 @@
#!/bin/bash
###############################################################
## NAME
## install.sh install nginx in server
##
## USAGE
## ./install.sh
###############################################################
## following is recommanded configure and modules.
## iUser="`whoami`"
iUser="vagrant"
make clean
./configure \
--prefix=/home/${iUser}/nginx \
--sbin-path=/home/${iUser}/nginx/sbin/nginx \
--conf-path=/home/${iUser}/nginx/conf/nginx.conf \
--pid-path=/home/${iUser}/nginx/pid/nginx.pid \
--error-log-path=/home/${iUser}/nginx/log/error.log \
--http-log-path=/home/${iUser}/nginx/log/access.log \
--user=${iUser} --group=${iUser} \
--with-http_ssl_module \
--with-http_stub_status_module \
--with-pcre=/home/${iUser}/sw/pcre-8.34 \
--with-zlib=/home/${iUser}/sw/zlib-1.2.8 \
--with-openssl=/home/${iUser}/sw/openssl-1.0.1c \
--add-module=/vagrant_data/sw/memcached-1.4.17
## compile nginx form source code
make
## install nginx
make install

9
phpd/install-phpredis.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
#############################################
# install phpredis
#############################################
wget https://github.com/nicolasff/phpredis/tarball/master
cd src
~/php5/bin/phpize
./configure --with-php-config=/home/vagrant/php5/bin/php-config

View File

@ -22,7 +22,7 @@ echo "postinstall start."
echo "install some necessary software."
sudo apt-get install -y \
emacs zsh vim g++ build-essential \
make git ghostscript
make git ghostscript autoconf
# install php5
# sudo apt-get install php5-common php5-cli php5-fpm