欢迎来到天天文库
浏览记录
ID:41007290
大小:38.99 KB
页数:11页
时间:2019-08-13
《社区应用安装》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、安装社区应用目录一.安装mysql2二.安装apache2三.安装php3四.安装java3五.安装tomcat3六.其他3方案选用apache2.2.10+php5.2.6+mysql5.0.77选用jdk-6u10-linux-i586-rpm+apache-tomcat-6.0.18一.安装mysql安装mysql使用pgcc编译(Pentium)+静态编译+定制字符集比正常编译提高30%的速度#tarzxvfmysql5.1.30.tar.gz#cdmysql5.1.30#CFLAGS="-O3"CXX=gccCXXFLAGS="-O3-felide-c
2、onstructors-fno-exceptions-fno-rtti-fomit-frame-pointer-ffixed-ebp"./configure--prefix=/usr/local/mysql--enable-assembler--with-mysqld-ldflags=-all-static--with-client-ldflags=-all-static--with-unix-socket-path=/usr/local/mysql/tmp/mysql.sock--with-charset=utf8--with-collation=utf8_g
3、eneral_ci--with-extra-charsets=all--with-innodb--without-debug#make#makeinstall#chown–Rmysql:mysql/usr/local/mysql#cdscripts#mysql_install_db#vi/etc/my.cnf禁用dns解析--skip-name-resolve二.安装apache#编译和安装apr1.2cdsrclib/apr./configure--prefix=/usr/local/webserver/apache/aprmakemakeinstall#编译
4、和安装apr-util1.2cd../apr-util./configure--prefix=/usr/local/webserver/apache/apr-util--with-apr=/usr/local/webserver/apache/aprmakemakeinstall更改2Glogs#exportCFLAGS="-O2-D_FILE_OFFSET_BITS=64-D_LARGEFILE_SOURCE-D_LARGEFILE64_SOURCE"#CHOST="i686-pc-linux-gnu"#CFLAGS="-march=pentium4-O3-p
5、ipe-fomit-frame-pointer"#CXXFLAGS="-march=pentium4-O3-pipe-fomit-frame-pointer"./configure--prefix=/usr/local/webserver/apache--enable-mods-shared=all--enable-so--enable-deflate--enable-cache--enable-disk-cache--enable-mem-cache--enable-file-cache--enable-rewrite--enable-charset-lite
6、--enable-suexec--with-suexec-bin=/usr/sbin/suexec--disable-ipv6--disable-dav--with-apr=/usr/local/webserver/apache/apr--with-apr-util=/usr/local/webserver/apache/apr-util/Make;makeinstall#安装防止ddos攻击模块#tarzxvfmod_evasive_1.10.1.tar.gz #cdmod_evasive#/usr/sbin/apxs-i-a-cmod_evasive20.c
7、LoadModuleevasive20_module lib/httpd/modules/mod_evasive20.so DOSHashTableSize 3097 DOSPageCount 2 DOSSiteCount 50 DOSPageInterval 1 DOSSiteInterval 1 DOSBlockingPeriod 10#vi/usr/local/apache/conf/httpd.conf把daemon
8、改为nobodyUser
此文档下载收益归作者所有