??xml version="1.0" encoding="utf-8" standalone="yes"?>精品美女一区,视频国产一区二区三区,亚洲国产天堂http://www.aygfsteel.com/gen-sky/category/51820.html勤思、}a、慎行、厚U、薄?/description>zh-cnThu, 01 Aug 2013 13:41:49 GMTThu, 01 Aug 2013 13:41:49 GMT60linux 学习记录(? apache服务器的安装、配|和使用http://www.aygfsteel.com/gen-sky/articles/401990.html星期?/dc:creator>星期?/author>Fri, 26 Jul 2013 02:46:00 GMThttp://www.aygfsteel.com/gen-sky/articles/401990.htmlhttp://www.aygfsteel.com/gen-sky/comments/401990.htmlhttp://www.aygfsteel.com/gen-sky/articles/401990.html#Feedback0http://www.aygfsteel.com/gen-sky/comments/commentRss/401990.htmlhttp://www.aygfsteel.com/gen-sky/services/trackbacks/401990.html安装下面是linux下安装apache的完整代码,pȝ是redhat5.5
下蝲httpd-2.2.6.tar.bz2  把httpd-2.2.6.tar.bz2攑ֈ/soft ?/span>
[root@localhost ~]#cd /soft
[root@localhost soft]#tar jxvf httpd-2.2.6.tar.bz2    //解压apache的压~包
[root@localhost soft]#cd httpd-2.2.6     //定位到httpd-2.2.6 文g夹下
[root@localhost httpd-2.2.6]#ls     //查看昄httpd-2.2.6 文g夹下内容
[root@localhost httpd-2.2.6]#./configure --help | more    //查看安装apache配置参数
[root@localhost httpd-2.2.6]#./configure  --prefix=/usr/local/apache  --enable-so    //  配置apache路径
[root@localhost httpd-2.2.6]#make     //~译apache
[root@localhost httpd-2.2.6]#make install    //安装apache
[root@localhost httpd-2.2.6]#cd /usr/local/apache   //q入apache的目?    
[root@localhost apache]#  cd conf/
[root@localhost conf]#cp -a httpd.conf httpd.conf-     //备䆾apache配置文g
[root@localhost conf]#chkconfig  --list httpd     //查看httpd服务是否已存?/span>
[root@localhost conf]#chkconfig httpd off    //关闭pȝ自带了httpd的服务,如果存在httpd服务   
[root@localhost conf]#service httpd status    //查看自带httpd服务状?/span>
[root@localhost conf]#/usr/local/apache/bin/apachectl -k start    //linux启动apache命o              
[root@localhost conf]#netstat -an | grep :80    //查看linux80端口是否开?/span>
[root@localhost conf]#ps -aux | grep httpd     //linux下查看apacheq程
[root@localhost conf]#cd ../..
[root@localhost local]#cp /usr/local/apache/bin/apachectl /etc/rc.d/init.d/apache //拯apache启动脚本
[root@localhost local]#vi /etc/rc.d/init.d/apache    // q里是编辑apache启动脚本
  在开头的#Q?bin/sh  下面加上
              #chkconfig: 2345  85  15
[root@localhost local]#chkconfig --add apache    //dapache服务
[root@localhost local]#chkconfig --list apache    //列出apache服务
[root@localhost local]#service apache stop    //停止apache服务
[root@localhost local]#netstat -an | grep :80     //查看linux?0端口是否关闭
[root@localhost local]#ps -aux | grep httpd     //查看是否存在httpd服务Q若果之前自带httpd服务启动的话会导致新d的apache服务启动p|
[root@localhost local]#service apache start    //启动apache服务
打开你的服务器ip地址Q看看是否出Ctomcat的默认首,如果出现的话Q那么恭喜你
linux下安装apache已经成功?/span>



资料Q?br />http://zhidao.zgsj.com/article/4/2011119113716.shtml



]]>
Apache安装详解http://www.aygfsteel.com/gen-sky/articles/310831.html星期?/dc:creator>星期?/author>Tue, 26 Jan 2010 03:12:00 GMThttp://www.aygfsteel.com/gen-sky/articles/310831.htmlhttp://www.aygfsteel.com/gen-sky/comments/310831.htmlhttp://www.aygfsteel.com/gen-sky/articles/310831.html#Feedback0http://www.aygfsteel.com/gen-sky/comments/commentRss/310831.htmlhttp://www.aygfsteel.com/gen-sky/services/trackbacks/310831.html      
     q行下蝲好的“apache_2.0.55-win32-x86

  出现Apache HTTP Server 2.0.55的安装向导界面,?#8220;Next”l箋

  认同意软g安装使用许可条例Q选择“I accept the terms in the license agreement”Q点“Next”l箋

  Apache安装到Windows上的使用ȝQ请阅读完毕后,?#8220;Next”l箋

     

  讄pȝ信息Q在Network Domain下填入您的域名(比如Qgoodwaiter.comQ,在Server Name下填入您的服务器名称Q比如:www.goodwaiter.comQ也是L名加上域名)Q在Administrator's Email Address下填入系l管理员的联pȝ子邮件地址Q比如:yinpeng@xinhuanet.comQ,上述三条信息仅供参考,其中联系电子邮g地址会在当系l故障时提供l访问者,三条信息均可L填写Q无效的也行。下面有两个选择Q图片上选择的是为系l所有用户安装,使用默认?0端口Qƈ作ؓpȝ服务自动启动Q另外一个是仅ؓ当前用户安装Q用端?080Q手动启动。一般选择如图所C?span style="color: red;">apache_2.2.4-win32-x86 我用q个版本q行安装Ӟ如果不填?Email Ӟ常常无法启动Q会?/span>the requested operation has failed错误?/span>?#8220;Next”l箋?/p>

  选择安装cdQTypical为默认安装,Custom为用戯定义安装Q我们这里选择CustomQ有更多可选项。按“Next”l箋

  出现选择安装选项界面Q如图所C,左键炚w?#8220;Apache HTTP Server 2.0.55”Q选择“This feature, and all subfeatures, will be installed on local hard drive.”Q即“此部分,及下属子部分内容Q全部安装在本地盘?#8221;。点?#8220;Change...”Q手动指定安装目录?/p>

  我这里选择安装?#8220;D:"”Q各位自行选取了,一般徏议不要安装在操作pȝ所在盘Q免得操作系l坏了之后,q原操作把Apache配置文g也清除了。?#8220;OK”l箋?/p>

  q回刚才的界面,?#8220;Next”l箋?/p>

  认安装选项无误Q如果您认ؓ要再查一遍,可以?#8220;Back”一步步q回查。点“Install”开始按前面讑֮的安装选项安装?/p>

  正在安装界面Q请耐心{待Q直到出C面的画面?/p>

  安装向导成功完成Q这时右下角状态栏应该出现了下面的q个l色图标Q表CApache服务已经开始运行,?#8220;Finish”l束Apache的Y件安?nbsp; 

                                       

  我们来熟悉一下这个图标,很方便的Q在图标上左键单击,出现如下界面Q有“StartQ启动)”?#8220;StopQ停止)”?#8220;RestartQ重启动Q?#8221;三个选项Q可以很方便的对安装的Apache服务器进行上q操作?/p>

                                      

  好了现在我们来测试一下按默认配置q行的网站界面,在IE地址栏打“http://127.0.0.1”Q点“转到”Q就可以看到如下面Q表CApache服务器已安装成功?/p>

  现在开始配|Apache服务器,使它更好的替我们服务Q事实上Q如果不配置Q你的安装目录下的Apache2"htdocs文g夹就是网站的默认根目录,在里面放入文件就可以了。这里我们还是要配置一下,有什么问题或修改Q配|始l是要会的,如图所C,“开?#8221;?#8220;所有程?#8221;?#8220;Apache HTTP Server 2.0.55”?#8220;Configure Apache Server”?#8220;Edit the Apache httpd conf Configuration file”Q点L开?/p>

  XP的记事本有了些小变化Q很实用的一个功能就是可以看到文件内容的行、列位置Q按下图所C,?#8220;查看”Q勾?#8220;状态栏”Q界面右下角多了个标记Q?#8220;Ln 78, Col 10”pC?#8220;?78Q列 10”Q这样可以迅速的在文件中定位Q方便解说。当Ӟ你也可以通过“~辑”Q?#8220;查找”输入关键字来快速定位。每ơ配|文件的改变Q保存后Q必dApache服务器重启动后生效,可以用前面讲的小图标方便的控制服务器随时“重启?#8221;?/p>

  现在正式开始配|Apache服务器,“Ln 228”Q或者查扑օ键字“DocumentRoot”Q也是|站根目录)Q找到如下图所C地方,然后?"内的地址Ҏ你的|站根目录,地址格式L图上的写Q主要是一般文件地址?#8220;"”在Apache里要Ҏ“/”?/p>

  “Ln 253”Q同P你也可以通过查找“<Directory />”来定位,以后不再说明Q将""内的地址Ҏ跟DocumentRoot的一栗?/p>

  “Ln321”QDirectoryIndexQ目录烦引,也就是在仅指定目录的情况下,默认昄的文件名Q,可以d很多Q系l会Ҏ从左臛_的顺序来优先昄Q以单个半角I格隔开Q比如有些网站的首页是index.htmQ就在光标那里加?#8220;index.htm ”文g名是L的,不一定非?#8220;index.html”Q比?#8220;test.php”{,都可以?/p>

  q里有一个选择配置选项Q以前可能要配置Q现在好像修正过来了Q不用配|了Q就是强制所有输出文件的语言~码Qhtml文g里有语言标记Q?lt;META http-equiv="Content-Type" content="text/html; charset=gb2312">Q这个就是设定文档语a为gb2312Q的也会强制转换。如果打开的网出Cؕ码,请先查网内有没有上qhtml语言标记Q如果没有,d上去p正常昄了。把“# DefaultLanguage nl”前面?#8220;# ”LQ把“nl”Ҏ你要强制输出的语aQ中文是“zh-cn”Q保存,关闭?/p>

  好了Q简单的Apache配置到此结束了Q现在利用先前的图标重启动Q所有的配置q效了Q你的网站就成了一个网站服务器Q如果你加蝲了防火墙Q请打开80?080端口Q或者允许ApacheE序讉K|络Q否则别Z能访问。如果你有公|IPQ一般ADSL或电话拨号上|的都是Q,可以邀h有能上网的朋友访问用http://你的IP地址QIP地址查询可访问http://www.goodwaiter.comQ查询内容内xQ你的网站了Q如果你没有公网IPQ也可以把内|IP地址告诉局域网内的其它用户Q让他们通过http://你的内网IP地址Q访问你的网站?/p>

]]>
php 上下文修改\?/title><link>http://www.aygfsteel.com/gen-sky/articles/php.html</link><dc:creator>星期?/dc:creator><author>星期?/author><pubDate>Thu, 19 Nov 2009 04:39:00 GMT</pubDate><guid>http://www.aygfsteel.com/gen-sky/articles/php.html</guid><wfw:comment>http://www.aygfsteel.com/gen-sky/comments/302906.html</wfw:comment><comments>http://www.aygfsteel.com/gen-sky/articles/php.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/gen-sky/comments/commentRss/302906.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/gen-sky/services/trackbacks/302906.html</trackback:ping><description><![CDATA[打开  apache   conf/httpd.conf 文gQ修改其中的默认属性:<span style="color: #000000;">DocumentRoot <br /> </span> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #008000;">#<br /> #</span><span style="color: #008000;"> DocumentRoot: The directory out of which you will serve your</span><span style="color: #008000;"><br /> #</span><span style="color: #008000;"> documents. By default, all requests are taken from this directory, but</span><span style="color: #008000;"><br /> #</span><span style="color: #008000;"> symbolic links and aliases may be used to point to other locations.</span><span style="color: #008000;"><br /> #<br /> </span><span style="color: #000000;">DocumentRoot </span><span style="color: #000000;">"</span><span style="color: #000000;">D:/php/project/</span><span style="color: #000000;">"<br /> <br /> </span></div> <br /> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #000000;"><br /> </span><span style="color: #008000;">#<br /> #</span><span style="color: #008000;"> Each directory to which Apache has access can be configured with respect</span><span style="color: #008000;"><br /> #</span><span style="color: #008000;"> to which services and features are allowed and/or disabled in that</span><span style="color: #008000;"><br /> #</span><span style="color: #008000;"> directory (and its subdirectories). </span><span style="color: #008000;"><br /> #<br /> #</span><span style="color: #008000;"> First, we configure the "default" to be a very restrictive set of </span><span style="color: #008000;"><br /> #</span><span style="color: #008000;"> features.  </span><span style="color: #008000;"><br /> #<br /> </span><span style="color: #000000;"><</span><span style="color: #000000;">Directory </span><span style="color: #000000;">/></span><span style="color: #000000;"><br />     Options FollowSymLinks<br />     AllowOverride None<br />     </span><span style="color: #008000;">#</span><span style="color: #008000;">Order deny,allow</span><span style="color: #008000;"><br /> </span><span style="color: #000000;">    </span><span style="color: #008000;">#</span><span style="color: #008000;"> Deny from all</span><span style="color: #008000;"><br /> </span><span style="color: #000000;">    </span><span style="color: #008000;">#</span><span style="color: #008000;"> Satisfy all</span><span style="color: #008000;"><br /> </span><span style="color: #000000;"></</span><span style="color: #000000;">Directory</span><span style="color: #000000;">></span></div> 指向修改后的路径 记得注释掉一些属性?br /> <img src ="http://www.aygfsteel.com/gen-sky/aggbug/302906.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/gen-sky/" target="_blank">星期?/a> 2009-11-19 12:39 <a href="http://www.aygfsteel.com/gen-sky/articles/php.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ǩ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ǭ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Դ</a>| <a href="http://" target="_blank">ƽ</a>| <a href="http://" target="_blank">կ</a>| <a href="http://" target="_blank">ͩ®</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">׿</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ֶ</a>| <a href="http://" target="_blank">ѽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ʱ</a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">˱</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ȫ</a>| <a href="http://" target="_blank">ͼʲ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>