zoukankan      html  css  js  c++  java
  • lnmp免安装教程

      1   lnmp_jtr免安装教程
      2  
      3 export LDFLAGS="-L/zenghui/lib/zlib/lib"
      4 export CFLAGS="-I/zenghui/lib/zlib/"
      5  
      6 ./configure --prefix=/zenghui/lnmp/lib/jpeg
      7 ./configure --prefix=/zenghui/lnmp/lib/zlib
      8 ./configure --prefix=/zenghui/lnmp/lib/libpng
      9 vi pngstruct.h
     10 #include "/zenghui/lnmp/lib/zlib/include/zlib.h"  27行
     11  
     12 ./configure --prefix=/zenghui/lnmp/lib/freetype
     13 ./configure --prefix=/zenghui/lnmp/lib/gettext
     14 ./configure --prefix=/zenghui/lnmp/lib/libiconv
     15  
     16  cd libmcrypt-2.5.7/libltdl/
     17 ./configure --prefix=/zenghui/lnmp/lib/libmcrypt  --enable-ltdl-install
     18 ./configure --prefix=/zenghui/lnmp/lib/libxml2
     19 ./configure --prefix=/zenghui/lnmp/lib/pcre
     20 
     21 
     22 ./config --prefix=/zenghui/lnmp/lib/openssl shared zlib-dynamic    #openssl-1.0.0e.tar.gz
     23 vi crypto/comp/c_zlib.c
     24 #include </zenghui/lnmp/lib/zlib/include/zlib.h>
     25 POD document had syntax errors at /zenghui/lnmp/lib/perl/bin/pod2man line 69. make . 的解决方法
      rm /zenghui/lnmp/lib/perl/bin/pod2man

    26 27 ./configure --prefix=/zenghui/lnmp/lib/curl 28 ./configure --prefix=/wdzj/lnmp/lib/gd --with-png=/wdzj/lnmp/lib/libpng/ --with-jpeg=/wdzj/lnmp/lib/jpeg/ --with-libiconv=/wdzj/lnmp/lib/libiconv/ --with-freetype=/wdzj/lnmp/lib/freetype/ 29 vi gd_gd2.c 30 #include "/zenghui/lnmp/lib/zlib/include/zlib.h" 29行 31 gd_png.c 32 #include "/zenghui/lnmp/lib/libpng/include/png.h" 15行 33 34 nginx 35 useradd nginx 36 ./configure --prefix=/zenghui/lnmp/nginx --user=nginx --group=nginx --with-select_module --with-poll_module --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_image_filter_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_stub_status_module --add-module=/zenghui/source/ngx_cache_purge-2.1 --add-module=/zenghui/source/nginx-sticky-module-1.1 --with-pcre=/zenghui/source/pcre-8.36 --with-openssl=/zenghui/source/openssl-1.0.1j --with-zlib=/zenghui/source/zlib-1.2.8 37 38 vi auto/lib/libgd/conf 39 if [ $ngx_found = no ]; then 40 41 # FreeBSD port 42 43 ngx_feature="GD library in /usr/local/" 44 ngx_feature_path="/zenghui/lnmp/lib/gd/include" 45 46 if [ $NGX_RPATH = YES ]; then 47 ngx_feature_libs="-R/zenghui/lnmp/lib/gd/lib -L/zenghui/lnmp/lib/gd/lib -lgd" 48 else 49 ngx_feature_libs="-L/zenghui/lnmp/lib/gd/lib -lgd" 50 fi 51 52 . auto/feature 53 fi 54 55 mysql 56 yum -y install ncurses-devel 57 cmake -DCMAKE_INSTALL_PREFIX=/zenghui/lnmp/mysql -DMYSQL_UNIX_ADDR=/zenghui/lnmp/mysql/mysql.sock -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_EXTRA_CHARSETS=all -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_MEMORY_STORAGE_ENGINE=1 -DWITH_READLINE=1 -DENABLED_LOCAL_INFILE=1 -DMYSQL_DATADIR=/zenghui/lnmp/mysql/data -DMYSQL_USER=mysql -DWITH_DEBUG=0 58 useradd mysql 59 60 cp support-files/my-medium.cnf /zenghui/lnmp/mysql/my.cnf 61 cd /zenghui/lnmp/mysql/ 62 chown –R mysql.mysql ./ 63 chmod 755 scripts/mysql_install_db 64 scripts/mysql_install_db --user=mysql --basedir=/zenghui/lnmp/mysql --datadir=/zenghui/lnmp/mysql/data/ #此处指定用user用户运行 65 cp support-files/mysql.server /etc/init.d/mysq 66 chmod 755 /etc/init.d/mysqld 67 chkconfig --add mysqld 68 vi /etc/init.d/mysql 69 70 # Get arguments from the my.cnf file, 71 202 # the only group, which is read from now on is [mysqld] 72 203 #if test -x ./bin/my_print_defaults 73 204 #then 74 205 # print_defaults="./bin/my_print_defaults" 75 206 #elif test -x $bindir/my_print_defaults 76 207 #then 77 208 # print_defaults="$bindir/my_print_defaults" 78 209 #elif test -x $bindir/mysql_print_defaults 79 210 #then 80 211 # print_defaults="$bindir/mysql_print_defaults" 81 212 #else 82 213 # # Try to find basedir in /etc/my.cnf 83 214 # conf=/etc/my.cnf 84 215 # print_defaults= 85 216 # if test -r $conf 86 217 # then 87 218 # subpat='^[^=]*basedir[^=]*=(.*)$' 88 219 # dirs=`sed -e "/$subpat/!d" -e 's//1/' $conf` 89 220 # for d in $dirs 90 221 # do 91 222 # d=`echo $d | sed -e 's/[ ]//g'` 92 223 # if test -x "$d/bin/my_print_defaults" 93 224 # then 94 225 # print_defaults="$d/bin/my_print_defaults" 95 226 # break 96 227 # fi 97 228 # if test -x "$d/bin/mysql_print_defaults" 98 229 # then 99 230 # print_defaults="$d/bin/mysql_print_defaults" 100 231 # break 101 232 # fi 102 233 # done 103 234 # fi 104 235 # 105 236 # # Hope it's in the PATH ... but I doubt it 106 237 # test -z "$print_defaults" && print_defaults="my_print_defaults" 107 238 #fi 108 109 110 256#parse_server_arguments `$print_defaults $extra_args mysqld server mysql_server mysql.server` 111 根据上面的行数在最前面加“#” 112 service mysql start 113 php5.3.28 114 ./configure --prefix=/zenghui/lnmp/php5 --with-mysql=/zenghui/lnmp/mysql --with-mysqli=/zenghui/lnmp/mysql/bin/mysql_config --with-mysql-sock=/zenghui/lnmp/mysql/mysql.sock --with-gd --with-iconv-dir=/zenghui/lnmp/lib/libiconv --with-freetype-dir=/zenghui/lnmp/lib/freetype/ --with-jpeg-dir=/zenghui/lnmp/lib/jpeg --with-png-dir=/zenghui/lnmp/lib/libpng --with-zlib-dir=/zenghui/lnmp/lib/zlib/ --with-libxml-dir=/zenghui/lnmp/lib/libxml2/ --enable-xml --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curlwrappers --enable-mbregex --enable-fpm --enable-mbstring --enable-ftp --enable-gd-native-ttf --with-openssl-dir=/zenghui/lnmp/lib/openssl/ --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext=/zenghui/lnmp/gettext --enable-session --with-mcrypt=/zenghui/lnmp/lib/libmcrypt/ --with-curl=/zenghui/lnmp/lib/curl/ --with-openssl 115 cp php.ini-production /zenghui/lnmp/php5/lib/php.ini 116 cd /zenghui/lnmp/php5 117 cp etc/php-fpm.conf.default php-fpm.conf 118 119 php扩展 120 121 cd /zenghui/source/php-5.3.28/ext/openssl 122 /zenghui/lnmp/php5/bin/phpize 123 ./configure --with-openssl --with-openssl=/zenghui/lnmp/lib/openssl --with-php-config=/zenghui/lnmp/php5/bin/php-config 124 make && make install 125 vi php.ini 126 extension_dir = "/zenghui/lnmp/php5/lib/php/extensions/no-debug-non-zts-20090626/" 127 extension = "openssl.so" 128 129 130 zendopcache-7.0.3.tgz 131 tar zendopcache-7.0.3.tgz 132 cd zendopcache-7.0.3 133 /zenghui/lnmp/php5/bin/phpize 134 ./configure --with-php-config=/zenghui/lnmp/php5/bin/php-config 135 make && make install 136 vi php.ini 最后添加 137 [Opcache] 138 zend_extension=/zenghui/lnmp/php5/lib/php/extensions/no-debug-non-zts-20100525/opcache.so 139 opcache.memory_consumption=128 140 opcache.interned_strings_buffer=8 141 opcache.max_accelerated_files=4000 142 opcache.revalidate_freq=60 143 opcache.fast_shutdown=1kill -USR2 23887 144 145 opcache.enable_cli=1 146 147 148 149 tomcat 150 mv /zenghui/source/apache-tomcat-7.0.53 /zenghui/java/tomcat 151 mv /zenghui/source/jdk1.7.0_40 jdk /zenghui/java/ 152 ./configure --prefix=/zenghui/java/lib/cronolog 153 154 vi /zenghui/lnmp/java/tomcat/bin/catalina.sh 155 156 org.apache.catalina.startup.Bootstrap "$@" start 157 >> "$CATALINA_OUT" 2>&1 & 158 替换 159 org.apache.catalina.startup.Bootstrap "$@" start 2>&1 160 | /zenghui/lnmp/java/tomcat/lib/cronolog/sbin//cronolog "$CATALINA_BASE"/logs/catalina.out.%Y-%m-%d.out >> /dev/null & 161 重启tomcat,观察logs/catalina.out文件有没有分割成功。 162 163 redis 164 make 165 make PREFIX=/zenghui/java/lib/redis install 166 cp redis.conf wdzj/java/lib/redis/ 167 vi redis.conf 168 # masterauth <master-password> 169 masterauth www2014 170 171 # requirepass foobared 172 requirepass www2014 173 174 daemonize yes 175 176 177
    tar zxvf perl-5.20.1.tar.gz
    cd perl-5.20.1
    ./Configure -des -Dprefix=/usr/local/lib/perl
    make
    make install
  • 相关阅读:
    利用Response.Buffer做类似异步效果
    web集群时session同步的3种方法
    LVS之DR跨网段实战及高可用性
    LVS之DR模式实战及高可用性
    LVS-DR实现web调度模式
    LVS之-LAMP搭建wordpress
    LVS-NAT搭建HTTP及HTTPS
    实现NFS共享wordpress
    LAMP一键安装
    在centos6上实现编译安装lamp和wordpress,并编译xcache
  • 原文地址:https://www.cnblogs.com/zenghui940/p/4231760.html
Copyright © 2011-2022 走看看