centos6.4x64 lnmp test serv
1 # vi /etc/sysconfig/network-scripts/ifcfg-eth0 2 DEVICE=eth0 3 BOOTPROTO=static 4 BROADCAST=192.168.0.255 5 HWADDR=08:00:00:00:00:01 6 IPADDR=192.168.1.10 7 IPV6INIT=no 8 IPV6_AUTOCONF=no 9 NETMASK=255.255.255.0 10 NETWORK=192.168.1.0 11 ONBOOT=yes 12 13 # vi /etc/sysconfig/network 14 NETWORKING=yes 15 HOSTNAME=localserver 16 GATEWAY=192.168.1.1 17 18 # vi /etc/resolv.conf 19 nameserver 8.8.8.8 20 nameserver 8.8.4.4 21 22 # service network restart 23 24 # yum -y install gcc gcc-c++ make openssl-devel bzip2-devel curl-devel libxml2-devel readline-devel libjpeg-devel libpng-devel freetype-devel cmake 25 26 # vi /etc/ld.so.conf.d/local.conf 27 /usr/local/lib 28 29 # cd /opt 30 # wget 31 http://nginx.org/download/nginx-1.5.6.tar.gz 32 https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz 33 ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.33.tar.bz2 34 http://zlib.net/zlib-1.2.8.tar.gz 35 ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/libmcrypt/libmcrypt-2.5.7.tar.gz 36 http://downloads.sourceforge.net/project/mcrypt/MCrypt/2.6.8/mcrypt-2.6.8.tar.gz 37 http://downloads.sourceforge.net/project/mhash/mhash/0.9.9.9/mhash-0.9.9.9.tar.bz2 38 http://cn2.php.net/distributions/php-5.3.27.tar.bz2 39 http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.14.tar.gz 40 41 # install 42 43 # groupadd www 44 # useradd www -g www 45 46 # cd /usr/local/src && tar xjf /opt/php<Tab> 47 # cd php<Tab> 48 # mkdir -p /usr/local/php/conf.d 49 # cp php.ini-dev<Tab> /usr/local/php/php.ini 50 # ./configure \ 51 --prefix=/usr/local/php \ 52 --enable-fpm \ 53 --with-fpm-user=www \ 54 --with-fpm-group=www \ 55 --with-config-file-path=/usr/local/php \ 56 --with-config-file-scan-dir=/usr/local/php/conf.d \ 57 --with-zlib \ 58 --enable-bcmath \ 59 --with-bz2 \ 60 --with-curl \ 61 --enable-exif \ 62 --enable-ftp \ 63 --with-openssl-dir \ 64 --with-gd \ 65 --with-mhash \ 66 --enable-mbstring \ 67 --with-mysql=mysqlnd \ 68 --with-mysqli=mysqlnd \ 69 --with-pdo-mysql=mysqlnd \ 70 --with-readline \ 71 --enable-sockets \ 72 --enable-sqlite-utf8 \ 73 --enable-zip \ 74 --with-pcre-dir \ 75 --without-pear \ 76 77 # cmake -DMYSQL_TCP_PORT=3306 -DMYSQL_UNIX_ADDR=/tmp/mysql.sock -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DMYSQL_USER=mysql 78 79 scripts/mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql/data --user=mysql 80 81 # vi /etc/sysconfig/svnserve 82 OPTIONS='-r /home/svn/repos' 83 84 # vi /home/svn/conf/authz 85 [groups] 86 pro = xxx,yyy 87 [/] 88 @pro = rw 89 * = 90 91 #vi /home/svn/conf/passwd 92 [users] 93 xxx = xxx 94 yyy = yyy 95 96 #vi /home/svn/conf/svnserve.conf.global 97 [general] 98 anon-access = none 99 auth-access = write 100 password-db = /home/svn/etc/passwd 101 authz-db = /home/svn/etc/authz