1 lnmp_jtr Free Installation Tutorial2 3 export ldflags= "-l/zenghui/lib/zlib/lib"4 export cflags= "-i/zenghui/lib/zlib/"5 6 ./configure--prefix=/zenghui/lnmp/lib/jpeg7 ./configure--prefix=/zenghui/lnmp/lib/zlib8 ./configure--prefix=/zenghui/lnmp/lib/libpng9 VI pngstruct.hTen #include "/zenghui/lnmp/lib/zlib/include/zlib.h" 27 lines One A ./configure--prefix=/zenghui/lnmp/lib/freetype - ./configure--prefix=/zenghui/lnmp/lib/gettext - ./configure--prefix=/zenghui/lnmp/lib/libiconv the - CD libmcrypt-2.5.7/libltdl/ - ./configure--prefix=/zenghui/lnmp/lib/libmcrypt--enable-ltdl-install - ./configure--PREFIX=/ZENGHUI/LNMP/LIB/LIBXML2 + ./configure--prefix=/zenghui/lnmp/lib/pcre - + A ./config--prefix=/zenghui/lnmp/lib/openssl shared zlib-dynamic #openssl -1.0.0e.tar.gz at VI crypto/comp/c_zlib.c -#include</Zenghui/lnmp/lib/zlib/include/zlib.h> - - - ./configure--prefix=/zenghui/lnmp/lib/curl - ./configure--prefix=/zenghui/lnmp/lib/gd in VI gd_gd2.c - #include "/zenghui/lnmp/lib/zlib/include/zlib.h" 29 lines to gd_png.c + #include "/zenghui/lnmp/lib/libpng/include/png.h" 15 lines - the Nginx * useradd Nginx $ ./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.8Panax Notoginseng - VI auto/lib/libgd/conf the if [$ngx _found = no]; Then + A # FreeBSD Port the + ngx_feature= "GD Library in/usr/local/" - ngx_feature_path= "/zenghui/lnmp/lib/gd/include" $ $ if [$NGX _rpath = YES]; Then - ngx_feature_libs= "-R/ZENGHUI/LNMP/LIB/GD/LIB-L/ZENGHUI/LNMP/LIB/GD/LIB-LGD" - Else the ngx_feature_libs= "-L/ZENGHUI/LNMP/LIB/GD/LIB-LGD" - fiWuyi the . Auto/feature - fi Wu - MySQL About yum-y Install Ncurses-devel $ 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 - useradd MySQL - - CP support-files/my-medium.cnf/zenghui/lnmp/mysql/my.cnf A cd/zenghui/lnmp/mysql/ + chown–r mysql.mysql./ the chmod 755 scripts/mysql_install_db - scripts/mysql_install_db--user=mysql--basedir=/zenghui/lnmp/mysql--datadir=/zenghui/lnmp/mysql/data/# Specify here to run with user users $ CP support-files/mysql.server/etc/init.d/mysq the chmod 755/etc/init.d/mysqld the chkconfig--add mysqld the Vi/etc/init.d/mysql the - # Get arguments from the my.cnf file, in 202 # The only group, which are read from now on IS [mysqld] the 203 #if test-x./bin/my_print_defaults the 204 #then About 205 # print_defaults= "./bin/my_print_defaults" the 206 #elif test-x $bindir/my_print_defaults the 207 #then the 208 # print_defaults= "$bindir/my_print_defaults" + 209 #elif test-x $bindir/mysql_print_defaults - #then the 211 # print_defaults= "$bindir/mysql_print_defaults"Bayi 212 #else the 213 # # Try to find Basedir in/etc/my.cnf the 214 # CONF=/ETC/MY.CNF - 215 # print_defaults= - 216 # if Test-r $conf the 217 # Then the 218 # subpat= ' ^[^=]*basedir[^=]*=\ (. *\) $ ' the 219 # dirs= ' sed-e "/$subpat/!d"-e ' s//\1/' $conf ' the # for D in $dirs - 221 # do the 222 # d= ' echo $d | sed-e ' s/[]//g ' the 223 # If Test-x "$d/bin/my_print_defaults" the 224 # Then94 225 # print_defaults= "$d/bin/my_print_defaults" the 226 # Break the 227 # Fi the 228 # If Test-x "$d/bin/mysql_print_defaults"98 229 # Then About # print_defaults= "$d/bin/mysql_print_defaults" - 231 # break101 232 # Fi102 233 # Done103 234 # fi104 235 # the 236 # # Hope It's in the PATH ... but I doubt it106 237 # test-z "$print _defaults" && print_defaults= "My_print_defaults"107 238 #fi108 109 the 256#parse_server_arguments ' $print _defaults $extra _args mysqld server mysql_server mysql.server '111 Add "#" to the top line based on the number of lines above the service MySQL start113 php5.3.28 the ./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 the CP Php.ini-production/zenghui/lnmp/php5/lib/php.ini the CD/ZENGHUI/LNMP/PHP5117 CP Etc/php-fpm.conf.default php-fpm.conf118 119 PHP Extensions - 121 Cd/zenghui/source/php-5.3.28/ext/openssl122 /zenghui/lnmp/php5/bin/phpize123 ./configure--with-openssl--with-openssl=/zenghui/lnmp/lib/openssl--with-php-config=/zenghui/lnmp/php5/bin/ Php-config124 Make && make install the VI php.ini126 Extension_dir = "/zenghui/lnmp/php5/lib/php/extensions/no-debug-non-zts-20090626/"127 extension = "openssl.so" - 129 the zendopcache-7.0.3.tgz131 Tar zendopcache-7.0.3.tgz the CD zendopcache-7.0.3133 /zenghui/lnmp/php5/bin/phpize134 ./configure--with-php-config=/zenghui/lnmp/php5/bin/php-config135 Make && make install136 vi php.ini last added137 [Opcache]138 zend_extension=/zenghui/lnmp/php5/lib/php/extensions/no-debug-non-zts-20100525/opcache.so139 opcache.memory_consumption=128 $ opcache.interned_strings_buffer=8141 opcache.max_accelerated_files=4000142 opcache.revalidate_freq=60143 OPCACHE.FAST_SHUTDOWN=1KILL-USR2 23887144 145 Opcache.enable_cli=1146 147 148 149 Tomcat Max Mv/zenghui/source/apache-tomcat-7.0.53/zenghui/java/tomcat151 mv/zenghui/source/jdk1.7.0_40 jdk/zenghui/java/ the ./configure--prefix=/zenghui/java/lib/cronolog153 154 vi/zenghui/lnmp/java/tomcat/bin/catalina.sh155 will be156 org.apache.catalina.startup.Bootstrap "[email protected]" Start157>> "$CATALINA _out" 2>&1&158 Replace159Org.apache.catalina.startup.Bootstrap "[email protected]" Start 2>&1 the |/zenghui/lnmp/java/tomcat/lib/cronolog/sbin//cronolog "$CATALINA _base"/logs/catalina.out.%y-%m-%d.out > >/dev/null &161 Restart Tomcat to see if the Logs/catalina.out file has been successfully split. 162 163 Redis164 Make165 Make Prefix=/zenghui/java/lib/redis166 CP redis.conf wdzj/java/lib/redis/167 VI redis.conf168# Masterauth<Master-password>169 Masterauth www2014 the 171 # Requirepass foobared172 Requirepass www2014173 174Daemonize Yes
LNMP Free Installation Tutorial