自动安装apache脚本
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-05-13
#!/bin/bash #witten by sys520084 2008 4 9 2 ########################################################################################## # NOTE: # The readme text is written by chinese. # Please see this scripts in your chinese System. ########################################################################################## #本脚本将帮助你自动安装apache服务器,如果你对本脚本有什么改进意见的话请通过下列方式和我联系 #email:sys520084@gmail.com #qq:402793645 #msn:sys520084@hotmail.com function HTTPINSTALL() { read -p "请输入下载目录: " LOCALADDRESS cd $LOCALADDRESS read -p "Please keyin your download web address: " DOWNLOAD_ADDRESS wget $DOWNLOAD_ADDRESS SOURCEADDRESS=/usr/local/src cd $SOURCEADDRESS tar -zvxf $LOCALADDRESS/httpd* #安装apache cd $SOURCEADDRESS/httpd* ./configure --prefix=/usr/local/apache2 --enable-modules=all --enable-mods-shared=all --enable-cache --enable-file-cache --enable-disk-cache --enable-mem-cache --enable-dbd --enable-logio --enable-mime-magic --enable-proxy --enable-proxy-connect --enable-proxy-ftp --enable-proxy-http --enable-proxy-ajp --enable-proxy-balancer --enable-ssl --enable-http --enable-dav --enable-cgi --enable-cgid --enable-dav-fs --enable-dav-lock --enable-rewrite --with-ssl=/usr/include/openssl/ --enable-so --with-mpm=worker make clean make make install ln -s /usr/local/apache*/bin/apachectl /etc/rc.d/init.d/httpd } netstat -tuln | grep ":80 " if [ "$?" == "0" ]; then rpm -qa | grep httpd if [ "$?" == "0" ]; then service httpd stop rpm -e httpd HTTPINSTALL else /usr/local/apache*/bin/apachectl stop rm -rf /usr/local/apache* HTTPINSTALL fi else HTTPINSTALL fi |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
关于自动安装apache脚本的所有评论