我的kvmla家的debian6
1039
- aite.me2012-05-24论坛元老42644
- 本帖最后由 aite.me 于 2012-10-9 00:27 编辑 *
- - apt-get update
- apt-get upgrade -y
- apt-get install mysql-server -y
- apt-get install -y build-essential libpcre++-dev libssl-dev libxslt1-dev libgeoip-dev libperl-dev python-dev libreadline-dev libbz2-dev libcurl4-gnutls-dev libvpx-dev libjpeg62-dev libpng12-dev libxpm-dev libfreetype6-dev libt1-dev libgmp3-dev libc-client2007e-dev libicu-dev libmcrypt-dev libedit-dev libsnmp-dev libtidy-dev libpspell-dev libenchant-dev
- wget http://nginx.org/download/nginx-1.2.0.tar.gz -O nginx.tar.gz
- tar -zxf ./nginx.tar.gz
- rm -rf nginx.tar.gz
- mv nginx-* nginx
- wget http://www.php.net/distributions/php-5.4.7.tar.gz -O php.tar.gz
- tar -zxf ./php.tar.gz
- rm -rf php.tar.gz
- mv php-* php
- wget http://ftp.postgresql.org/pub/source/v9.2.0beta1/postgresql-9.2beta1.tar.gz -O postgresql.tar.gz
- tar -zxf ./postgresql.tar.gz
- rm -rf postgresql.tar.gz
- mv postgresql-* postgresql
- cd ./nginx
- ./configure --group=nginx --user=nginx --with-ipv6 --with-file-aio --with-select_module --with-http_xslt_module --with-http_geoip_module --with-poll_module --with-rtsig_module --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_stub_status_module --with-http_perl_module --with-mail --with-mail_ssl_module
- make
- make install
- groupadd nginx
- useradd -g nginx nginx
- cd ../postgresql
- ./configure --with-openssl --with-libxslt --with-libxml --with-python --with-perl
- make
- make install
- groupadd postgres
- useradd -g postgres postgres
- mkdir /home/postgres
- chgrp postgres /home/postgres
- chown postgres /home/postgres
- chmod 0777 /home/postgres
- mkdir /usr/local/pgsql/data
- chgrp postgres /usr/local/pgsql/data
- chown postgres /usr/local/pgsql/data
- chmod 0777 /usr/local/pgsql/data
- su postgres -c 'cd /home/postgres;/usr/local/pgsql/bin/initdb -E UTF8 -D /usr/local/pgsql/data;/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l logfile start'
- cd ../php
- ./configure --enable-fpm --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-openssl --with-zlib --enable-bcmath --with-bz2 --enable-calendar --with-curl --with-curlwrappers --enable-exif --enable-ftp --with-gd --with-vpx-dir --with-jpeg-dir --with-png-dir --with-xpm-dir --with-freetype-dir --with-t1lib --enable-gd-native-ttf --enable-gd-jis-conv --with-gettext --with-gmp --with-mhash --with-imap --with-kerberos --with-imap-ssl --enable-intl --with-ldap --enable-mbstring --with-mcrypt --enable-pcntl --with-readline --with-libedit --enable-shmop --with-snmp --enable-soap --enable-sockets --with-tidy --enable-wddx --with-xmlrpc --with-xsl --enable-zip --with-pspell --with-enchant --with-pgsql --with-pdo-pgsql --enable-mysqlnd --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-mysql-sock=/var/run/mysqld/mysqld.sock
- make
- make install
- groupadd wwwroot
- useradd -g wwwroot wwwroot
- cp ./sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
- chmod +x /etc/init.d/php-fpm
- cp ./php.ini-pro* /usr/local/lib/php.ini
- cp /usr/local/etc/php-fpm.conf.default /usr/local/etc/php-fpm.conf
- mkdir /home/wwwroot
- chgrp wwwroot /home/wwwroot
- chown wwwroot /home/wwwroot
- chmod 0777 /home/wwwroot
- su wwwroot -c 'cd /home/wwwroot;wget http://ncu.dl.sourceforge.net/project/phppgadmin/phpPgAdmin%20%5Bstable%5D/phpPgAdmin-5.0/phpPgAdmin-5.0.4.tar.gz -O phppgadmin.tar.gz;tar -zxf phppgadmin.tar.gz;rm -rf phppgadmin.tar.gz;mv phpPgAdmin-* phppgadmin'
- 复制代码执行完后修改下相关的配置文件就能用了........