<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[虫虫的blog  SINCE2004]]></title> 
<link>http://www.zhenghe.biz/index.php</link> 
<description><![CDATA[人生幻灯片  -   前半生(身)，不要怕；后半生(身)，不要悔！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[虫虫的blog  SINCE2004]]></copyright>
<item>
<link>http://www.zhenghe.biz/read.php/.htm</link>
<title><![CDATA[[转官方]Discuz!/SupeSite/MySQL 三方服务器分离部署]]></title> 
<author>网络毛毛虫 &lt;admin@yourname.com&gt;</author>
<category><![CDATA[技术文章]]></category>
<pubDate>Sat, 23 Jun 2007 07:59:51 +0000</pubDate> 
<guid>http://www.zhenghe.biz/read.php/.htm</guid> 
<description>
<![CDATA[ 
	<h2>Discuz!/SupeSite/MySQL 三方服务器分离部署</h2><div id="postmessage_2676954" class="t_msgfont"><strong><span style="color: red">本文的部署方法适用于 Windows/Linux<br /></span></strong><br /><strong>一、环境概述<br /></strong><br />本文所叙述的安装方法可以使<a href="http://www.discuz.net/misc.php?action=tag&amp;tagname=Discuz" target="_blank" class="t_tag" onclick="tagshow(event)">Discuz</a>!、<a href="http://www.discuz.net/misc.php?action=tag&amp;tagname=SupeSite" target="_blank" class="t_tag" onclick="tagshow(event)">SupeSite</a>、数据库(MySQL) 分别<br />位于3台服务器中独立运行，而三者又形成一个社区整体，以提高网站社区的<br />响应<a href="http://www.discuz.net/misc.php?action=tag&amp;tagname=%CB%D9%B6%C8" target="_blank" class="t_tag" onclick="tagshow(event)">速度</a>和运行效率。<br /><br /><span style="color: red">如果需要进行三方服务器分离部署，请务必确认三台服务器位于同一网段<br />或者说三台服务器之间互联的网络条件非常好，<a href="http://www.discuz.net/misc.php?action=tag&amp;tagname=%BD%A8%D2%E9" target="_blank" class="t_tag" onclick="tagshow(event)">建议</a>三台服务器位于同一个<br />100M/Bps局域网内。</span><br /><br />假想环境：<br /><br /><span style="color: blue">* Discuz! <a href="http://www.discuz.net/misc.php?action=tag&amp;tagname=%C2%DB%CC%B3" target="_blank" class="t_tag" onclick="tagshow(event)">论坛</a>服务器&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;222.36.123.1&nbsp; &nbsp; http://bbs.abc.com</span><br /><span style="color: blue">* SupeSite 服务器&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;222.36.123.2&nbsp; &nbsp; http://space.abc.com</span><br /><span style="color: blue">* MySQL 数据库服务器&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;222.36.123.3<br />* 三台机器同处于一个网段内<br />* MySQL 服务器已经安装完毕<br />* 2台Web服务器已经安装好IIS/Apache + PHP + Zend Optimizer<br />* MySQL服务器必须对 222.36.123.1 和 222.36.123.2 开放 3306 端口<br /></span><br /><br /><strong>二、部署步骤</strong><br /><br /><strong>1. 部署MySQL服务器<br /></strong><br />对于MySQL服务器，默认情况下是禁止远程计算机进行连接的，所以MySQL服务器的<br />部署主要是对2台运行 Discuz! 和 SupeSite 的Web服务器进行远程连接授权，按照<br />以下步骤操作：<br /><br />(1) 以root身份登录MySQL控制台(Windows 打开CMD，<a href="http://www.discuz.net/misc.php?action=tag&amp;tagname=Linux" target="_blank" class="t_tag" onclick="tagshow(event)">Linux</a> 直接在控制台输入) <div class="blockcode"><span class="headactions">Copy to clipboard</span> <h5>CODE:</h5><span style="font-family: Courier New">mysql -u root -p</span></div>(2) 登陆后，建立一个新数据库(discuz) <div class="blockcode"><span class="headactions">Copy to clipboard</span> <h5>CODE:</h5><span style="font-family: Courier New">&gt; create database discuz;</span></div>(3) 对2台WEB服务器进行远程连接授权 <div class="blockcode"><span class="headactions">Copy to clipboard</span> <h5>CODE:</h5><span style="font-family: Courier New">&gt; grant all privileges on discuz.* to dzuser@222.36.123.1 identified by &quot;password&quot;;</span></div>上面这行命令为222.36.123.1 (Discuz! 论坛服务器) 进行授权，同时建立一个普通用户。<br />&nbsp; &nbsp;&nbsp; &nbsp;其中，discuz为数据库名称，dzuser为用户名，password为密码。 <div class="blockcode"><span class="headactions">Copy to clipboard</span> <h5>CODE:</h5><span style="font-family: Courier New">&gt; grant all privileges on discuz.* to dzuser@222.36.123.2 identified by &quot;password&quot;;</span></div>为SupeSite服务器进行授权。 <div class="blockcode"><span class="headactions">Copy to clipboard</span> <h5>CODE:</h5><span style="font-family: Courier New">&gt; FLUSH PRIVILEGES;</span></div>刷新MySQL授权表。 <div class="blockcode"><span class="headactions">Copy to clipboard</span> <h5>CODE:</h5><span style="font-family: Courier New">&gt; quit</span></div>退出MySQL控制台。<br /><br /><strong>2. 部署Discuz!论坛服务器</strong><br />首先请确认服务器已经部署好 Apache + PHP + Zend Optimizer，之后直接将Discuz!论坛程序上传到<br />服务器的网站目录中，按照常规方法安装好Discuz!论坛即可。注意：安装论坛过程中的填写数据库信<br />息部分，要按照上一步建立的MySQL普通用户信息进行填写。<br /><br /><strong>3. 部署SupeSite服务器</strong><br />首先请确认服务器已经部署好 Apache + PHP + Zend Optimizer，之后直接将SupeSite程序上传到<br />服务器的网站目录中，并且运行install.php程序开始安装，第一步&ldquo;参数设置&rdquo;按照如下填写： <div class="blockcode"><span class="headactions">Copy to clipboard</span> <h5>CODE:</h5><br /><span style="font-family: Courier New">论坛数据库服务器：222.36.123.3<br />论坛数据库用户名：dzuser<br />论坛数据库密码：password<br />论坛数据库名：discuz<br />论坛表名前缀：cdb_<br />论坛URL地址：http://bbs.abc.com<br /><br />站点表名前缀：supe_<br />站点URL访问地址：http://space.abc.com<br /></span><a href="http://www.discuz.net/misc.php?action=tag&amp;tagname=%CF%B5%CD%B3" target="_blank" class="t_tag" onclick="tagshow(event)"><span style="font-family: Courier New">系统</span></a><a href="http://www.discuz.net/misc.php?action=tag&amp;tagname=Email" target="_blank" class="t_tag" onclick="tagshow(event)"><span style="font-family: Courier New">Email</span></a><span style="font-family: Courier New">：webmaster@abc.com</span></div>按照上述进行配置后，后面的步骤按照<a href="http://www.discuz.net/misc.php?action=tag&amp;tagname=%CC%E1%CA%BE" target="_blank" class="t_tag" onclick="tagshow(event)">提示</a>进行安装即可。<br /><br />全部安装完成后，分别打开http://bbs.abc.com和http://space.abc.com进行<a href="http://www.discuz.net/misc.php?action=tag&amp;tagname=%B2%E2%CA%D4" target="_blank" class="t_tag" onclick="tagshow(event)">测试</a>，如果均正常则说明<br />分离部署成功。<br /><br />另外，有关论坛推送<a href="http://www.discuz.net/misc.php?action=tag&amp;tagname=%B9%A6%C4%DC" target="_blank" class="t_tag" onclick="tagshow(event)">功能</a>，只要按照SupeSite中的相关说明操作即可！<br /><br /><span style="color: red">总之，处理好 MySQL 服务器的远程连接授权是最重要的！做好连接授权是整个部署的基础。</span></div><br/>Tags - <a href="http://www.zhenghe.biz/go.php/tags/discuz/" rel="tag">discuz</a> , <a href="http://www.zhenghe.biz/go.php/tags/supesite/" rel="tag">supesite</a> , <a href="http://www.zhenghe.biz/go.php/tags/mysql/" rel="tag">mysql</a> , <a href="http://www.zhenghe.biz/go.php/tags/win/" rel="tag">win</a> , <a href="http://www.zhenghe.biz/go.php/tags/%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8/" rel="tag">服务器</a> , <a href="http://www.zhenghe.biz/go.php/tags/%25E5%2588%2586%25E7%25A6%25BB/" rel="tag">分离</a> , <a href="http://www.zhenghe.biz/go.php/tags/%25E5%2586%2585%25E7%25BD%2591/" rel="tag">内网</a>
]]>
</description>
</item><item>
<link>http://www.zhenghe.biz/read.php/.htm#blogcomment</link>
<title><![CDATA[[评论] [转官方]Discuz!/SupeSite/MySQL 三方服务器分离部署]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.zhenghe.biz/read.php/.htm#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>