<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[淘宝nginx（Tnginx）使用记录]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Web服务器]]></category>
<pubDate>Tue, 24 Jun 2014 02:59:16 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	<br/>其实和nginx没什么区别，发现好久没有记录东西了，百度blog改版之后太恶心了。。。。<br/>流水帐，给自己看的，就不整理了，破烂百度编辑器，我linux mint下的火狐编辑的时候是好的，发布出来样式差这么多。<br/>地址，介绍和文档：<br/>http://tengine.taobao.org/index_cn.html<br/><br/>先下载最新的安装包，我安装的时候最新为Tengine-1.4.6，更新说明写了包含了CVE-2013-2070补丁<br/><br/>我的环境为centos6.4 X64 精简安装<br/>所以需要先安装依赖<br/>yum install gcc<br/>yum install pcre-devel<br/>yum install openssl-devel<br/>yum install make<br/>yum install perl<br/>wget http://tengine.taobao.org/download/tengine-1.4.6.tar.gz<br/>tar -zxvf tengine-1.4.6.tar.gz<br/>cd tengine-1.4.6<br/>./configure<br/>make<br/>make install<br/>这就安装完了。<br/><br/>运行看看<br/>1<br/>/usr/local/nginx/sbin/nginx<br/>看看服务器端口开没<br/>1<br/>netstat -npltg<br/><br/><br/>80端口开放<br/>1<br/>2<br/>3<br/>/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT<br/>/etc/init.d/iptables save<br/>service&nbsp;&nbsp;iptables restart<br/><br/>用浏览器访问下<br/>Welcome to tengine!<br/>If you see this page, the tengine web server is successfully installed and working. Further configuration is required.<br/><br/>For online documentation and support please refer totengine.taobao.org.<br/><br/>Thank you for using tengine.<br/><br/>ok，服务正常，接下來是自启脚本。改别人的。。找不到原作者的来源了。。<br/>建立脚本<br/>cd /etc/init.d/<br/>vi nginx<br/>编写内容<br/>#!/bin/sh<br/># chkconfig: 345 86 14<br/># description: Startup and shutdown script for nginx<br/>NGINX_DIR=/usr/local/nginx<br/>export NGINX_DIR<br/> <br/>case $1 in<br/>&#039;start&#039; )<br/>echo &quot;Starting nginx...&quot;<br/>$NGINX_DIR/sbin/nginx<br/>;;<br/>&#039;reload&#039; )<br/>echo &quot;Reload nginx configuration...&quot;<br/>kill -HUP `cat $NGINX_DIR/logs/nginx.pid`<br/>;;<br/>&#039;stop&#039; )<br/>echo &quot;Stopping nginx...&quot;<br/>kill -15 `cat $NGINX_DIR/logs/nginx.pid`<br/>;;<br/>&#039;list&#039; )<br/>ps aux &#124; egrep &#039;(PID&#124;nginx)&#039;<br/>;;<br/>&#039;testconfig&#039; )<br/>$NGINX_DIR/sbin/nginx -t<br/>;;<br/>*)<br/>echo &quot;usage: `basename $0` &#123;start&#124;reload&#124;stop&#124;list&#124;testconfig&#125;&quot;<br/>esac<br/>修改权限<br/>chmod +x nginx<br/>chkconfig --add nginx<br/><br/><br/>来自：http://hi.baidu.com/xpiaoxue/item/3598f00260bc087fbee97ee6
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] 淘宝nginx（Tnginx）使用记录]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>