⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 1204.html

📁 著名的linux英雄站点的文档打包
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<p><FONT class=normalfont><B><font color=blue>linux开发服务器的安装</font></B></FONT><BR><FONT class=smallfont color=#ff9900>2004-04-23 15:18 pm</FONT><BR><FONT class=normalfont>作者:ajiefudan<br>来自:Linux知识宝库<br>联系方式:无名<br><br>发表时间:2002/05/09 05:44pm<br>
<br>
linux开发服务器的安装<br>
ajiefudan@sina.com<br>
对于一个开发系统,需要有一个良好的开发环境,比如必须的email,文件版本管理,错误追踪系统等。为了这个目的,我们需要建立一台开发服务器,提供上述功能。我花了两个星期的时间,才搞定。<br>
系统:RedHat 7.2。<br>
安装的服务有:sendmail&pop3&smtp,cvs&cvsweb,bugzilla&mysql,http,smb&swat<br>
<br>
安装过程:<br>
1完全安装红帽7.2。<br>
机器名:fileserver.comIP地址:192.168.0.70<br>
网关:192.168.0.1域名服务器:202.96.96.68   202.96.209.5<br>
setup打开sendmail,httpd,ipop3,smb,swat服务,添加测试用户,如ajie<br>
要保证你能连上互联网,否则先去花钱装ADSL吧(磨刀不误砍柴工)。reboot<br>
2配置sendmail<br>
2.1开放pop3和smtp服务<br>
2.1.1pop3<br>
如果完全安装,打开ipop3服务,修改/etc/xinetd.d/ipop3,把<br>
disable=yes<br>
改成<br>
disable=no<br>
2.1.2smtp<br>
修改/etc/sendmail.cf,查找SMTP,在<br>
O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA<br>
下添加<br>
O DaemonPortOptions=Port=smtp,Addr=192.168.0.70, Name=MTA<br>
2.2修改access<br>
2.2.1编辑/etc/hosts,添加<br>
192.168.0.70filserver.com fileserver<br>
2.2.2修改/etc/mail/access,添加<br>
filserver.com RELAY<br>
然后make access.db<br>
2.3/etc/rc.d/init.d/sendmail restart<br>
2.4测试或者使用<br>
2.4.1outlook中如下设置<br>
email:用户名@fileserver.com,账号:用户名,密码:登陆密码。<br>
Pop3和smtp服务器:192.168.0.70<br>
3配置cvs<br>
3.1groupadd cvs<br>
3.2useradd cvsroot –g cvs<br>
3.3passwd cvsroot<br>
3.4cd /<br>
3.5mkdir cvsroot<br>
3.6chown cvsroot.cvs /cvsroot<br>
3.7chmod 0775 /cvsroot<br>
3.8cvs –d /cvsroot init<br>
3.9cd /etc/xinetd.d<br>
3.10vi cvspserver,内容如下:<br>
service cvspserver<br>
{<br>
   socket_type = stream<br>
   wait = no<br>
   user = root<br>
   env = HOME=<br>
   server = /usr/bin/cvs<br>
   server_args = --allow-root=/cvsroot pserver<br>
}<br>
3.11/etc/rc.d/init.d/xinetd restart<br>
3.12测试或者使用<br>
在别的机器上<br>
export CVSROOT=:pserver:cvsroot@192.168.0.70:/cvsroot<br>
cvs login<br>
输入密码后如果没报错就可以了。<br>
4配置cvsweb<br>
4.1下在cvsweb包, http://stud.fh-heilbronn.de/~zeller/cgi/cvsweb.cgi/<br>
4.2cd /<br>
4.3tar xzvf cvsweb.tar.gz<br>
4.4chown –R apache.apache cvsweb<br>
4.5cd cvsweb<br>
4.6修改cvsweb.conf<br>
查找 CVSROOT,把<br>
‘Configuration’ =&gt; ‘/tmp/cvsroot/conf’,<br>
修改成<br>
'Configuration' =&gt; '/cvsroot',<br>
查找PATH,把<br>
#$ENV{'PATH'} = '/usr/local/bin';<br>
改成<br>
$ENV{'PATH'} = '/usr/bin';<br>
4.7修改cvsweb.cgi<br>
查找configuration,把<br>
$config = $ENV{'CVSWEB_CONFIG'} || '/usr/local/web/apache/conf/cvsweb.conf';<br>
改成<br>
$config = $ENV{'CVSWEB_CONFIG'} || '/cvsweb/cvsweb.conf';<br>
4.8修改httpd.conf<br>
cd /etc/httpd/conf<br>
vi httpd.conf<br>
在End of aliases后添加<br>
AddHandler cgi-script .cgi<br>
Alias /cvsweb/ "/cvsweb/"<br>
&lt;Directory "/cvsweb/"&gt;<br>
   Options ExecCGI<br>
   AllowOverride None<br>
&lt;/Directory&gt;<br>
4.9/etc/rc.d/init.d/httpd restart<br>
5配置smb和swat<br>
5.1修改/etc/xinetd.d/swat,去掉其中的only from =127.0.0.1,这样swat就可以从别的机器访问。<br>
5.2/etc/init.d/xinetd restart<br>
5.3从浏览器中打开http://192.168.0.70:901,用root账号登陆<br>
5.4修改global<br>
workgroup你所在的工作组<br>
netbios name 你共享的机器名<br>
5.5修改share<br>
5.5.1创建完全共享目录<br>
cd /home<br>
mkdir public<br>
chmod 0777 public<br>
5.5.2完全共享该目录<br>
创建新共享 public<br>
path /home/public<br>
create mask 0777<br>
security mask 0777<br>
directory mask 0777<br>
directory security mask 0777<br>
5.6添加用户<br>
选择passwd<br>
username ajie<br>
new passwd ******<br>
Re-type New Password ******<br>
点击 Add New User<br>
5.7重起smb<br>
6安装bugzilla<br>
6.1升级perl到最新版本5.6.1<br>
rpm 列表:(下载最新版本)<br>
perl-5.6.1-26.72.3.i386.rpm<br>
perl-DB_File-1.75-26.72.3.i386.rpm<br>
perl-CGI-2.752-26.72.3.i386.rpm<br>
perl-NDBM_File-1.75-26.72.3.i386.rpm<br>
perl-CPAN-1.59_54-26.72.3.i386.rpm<br>
6.2setup 启动mysqld服务,重起。<br>
6.3使用CPAN来安装需要的各种组件<br>
6.3.1perl -MCPAN -e 'install "Bundle::Bugzilla"'<br>
6.3.2一路回车到选择CPAN主机,<br>
(2) asia--à<br>
(1)China--à<br>
(2)ftp://ftp.shellhung.org/pub/CPAN这里一定要选2,如果选择了1,freesoft.cei.gov.cn站点上的模块列表已经很久没更新了,就找不到Bundle::Bugzilla,安装就会麻烦很多。我上当了之后,不知道怎么更改ftp的主机,只好重新安装系统。有哪位知道请告诉我。<br>
6.3.3问你是否要运行DBI测试,选择n<br>
6.3.4还有一些有关的组件,问你是否安装,都可以选择n,节省时间。<br>
6.4配置mysql<br>
bash# mysql -u root mysql<br>
mysql&gt; UPDATE user SET Password=PASSWORD ('new_password') WHERE user='root';  <br>
mysql&gt; FLUSH PRIVILEGES;  <br>
<br>
mysql&gt;GRANT SELECT, INSERT, UPDATE, DELETE, INDEX,  ALTER, CREATE, DROP, REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY 'bugs_password';  mysql&gt; FLUSH PRIVILEGES;  <br>
6.5下载bugzilla包http://www.bugzilla.org/<br>
cd /<br>
tar xzvf bugzilla-LATEST.tar.gz<br>
mv bugzilla-2.14.1 bugzilla<br>
chown –R apache.apache bugzilla<br>
6.6为bugzilla设置perl连接<br>
bash# mkdir /usr/bonsaitools  <br>
bash# mkdir /usr/bonsaitools/bin<br>
bash# ln -s /usr/bin/perl /usr/bonsaitools/bin/perl<br>
6.7cd /bugzilla<br>
6.8./checksetup.pl<br>
6.9修改localconfig<br>
server's host: "localhost"<br>
database name: "bugs"<br>
MySQL username: "bugs"<br>
Password for the "bugs" MySQL account above<br>
6.10再运行checksetup.pl<br>
你需要输入(bugzilla)管理员的email,名字,密码<br>
6.11修改httpd.conf<br>
vi /etc/httpd/conf/httpd.conf<br>
在End of aliases后添加<br>
Alias /bug/ "/bugzilla/"<br>
&lt;Directory "/bugzilla/"&gt;<br>
   Options ExecCGI<br>
   AllowOverride None<br>
&lt;/Directory&gt;<br>
6.12/etc/init.d/httpd restart<br>
6.13http://192.168.0.70/bug/就可以访问bugzilla了。<br>
6.14用上面的管理员mail和密码登陆以后,页面底下有Edit parameters,编辑参数,<br>
把usrbase改成http://192.168.0.70/bug/<br>
6.15ok,可以用了。<br>
此文章相关评论:<br>
该文章有1个相关评论如下:(点这儿可以发表评论)<br>
jerryesquire 发表于: 2002/05/16 05:40pm<br>
不错!<br>
 <br>
 <br>
Copyright ? ChinaUnix.net  *  转载请注明出处及作者<br>
</FONT><br>
                                      </TD>
                                    </TR>
                                <TR>
                                <TD colSpan=2><FONT 
                                class=middlefont></FONT><BR>
                                        <FONT 
                                class=normalfont>全文结束</FONT> </TD>
                                    </TR>
                                <TR>
                                <TD background="images/dot.gif" tppabs="http://www.linuxhero.com/docs/images/dot.gif" colSpan=2 
                                height=10></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV></TD>
                        <TD vAlign=top width="20%" 
                      background="images/line.gif" tppabs="http://www.linuxhero.com/docs/images/line.gif" rowSpan=2> 
                          <DIV align=center> 
                            <table class=tableoutline cellspacing=1 cellpadding=4 
                        width="100%" align=center border=0>
                              <tr class=firstalt> 
                                <td noWrap background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif" colspan=2 height=21>
                                <font class=normalfont><b>所有分类</b></font></td>
                              </tr>
<tr class=secondalt> <td noWrap width=27%> <font class=normalfont>1:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type1.html" tppabs="http://www.linuxhero.com/docs/type1.html">非技术类</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>2:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type2.html" tppabs="http://www.linuxhero.com/docs/type2.html">基础知识</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>3:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type3.html" tppabs="http://www.linuxhero.com/docs/type3.html">指令大全</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>4:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type4.html" tppabs="http://www.linuxhero.com/docs/type4.html">shell</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>5:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type5.html" tppabs="http://www.linuxhero.com/docs/type5.html">安装启动</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>6:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type6.html" tppabs="http://www.linuxhero.com/docs/type6.html">xwindow</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>7:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type7.html" tppabs="http://www.linuxhero.com/docs/type7.html">kde</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>8:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type8.html" tppabs="http://www.linuxhero.com/docs/type8.html">gnome</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>9:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type9.html" tppabs="http://www.linuxhero.com/docs/type9.html">输入法类</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>10:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type10.html" tppabs="http://www.linuxhero.com/docs/type10.html">美化汉化</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>11:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type11.html" tppabs="http://www.linuxhero.com/docs/type11.html">网络配置</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>12:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type12.html" tppabs="http://www.linuxhero.com/docs/type12.html">存储备份</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>13:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type13.html" tppabs="http://www.linuxhero.com/docs/type13.html">杂项工具</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>14:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type14.html" tppabs="http://www.linuxhero.com/docs/type14.html">编程技术</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>15:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type15.html" tppabs="http://www.linuxhero.com/docs/type15.html">网络安全</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>16:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type16.html" tppabs="http://www.linuxhero.com/docs/type16.html">内核技术</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>17:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type17.html" tppabs="http://www.linuxhero.com/docs/type17.html">速度优化</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>18:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type18.html" tppabs="http://www.linuxhero.com/docs/type18.html">apache</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>19:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type19.html" tppabs="http://www.linuxhero.com/docs/type19.html">email</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>20:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type20.html" tppabs="http://www.linuxhero.com/docs/type20.html">ftp服务</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>21:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type21.html" tppabs="http://www.linuxhero.com/docs/type21.html">cvs服务</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>22:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type22.html" tppabs="http://www.linuxhero.com/docs/type22.html">代理服务</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>23:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type23.html" tppabs="http://www.linuxhero.com/docs/type23.html">samba</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>24:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type24.html" tppabs="http://www.linuxhero.com/docs/type24.html">域名服务</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>25:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type25.html" tppabs="http://www.linuxhero.com/docs/type25.html">网络过滤</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>26:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type26.html" tppabs="http://www.linuxhero.com/docs/type26.html">其他服务</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>27:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type27.html" tppabs="http://www.linuxhero.com/docs/type27.html">nfs</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>28:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type28.html" tppabs="http://www.linuxhero.com/docs/type28.html">oracle</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>29:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type29.html" tppabs="http://www.linuxhero.com/docs/type29.html">dhcp</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>30:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type30.html" tppabs="http://www.linuxhero.com/docs/type30.html">mysql</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>31:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type31.html" tppabs="http://www.linuxhero.com/docs/type31.html">php</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>32:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type32.html" tppabs="http://www.linuxhero.com/docs/type32.html">ldap</a></font></td>    </tr>  </table></td></tr>                            </table>
                          </DIV></TD></TR>
                    <TR vAlign=top>
                        <TD width="80%"> 
                          <DIV align=center><BR>
                          </DIV>
                        </TD></TR></TBODY></TABLE></TD></TR>
                </TABLE></TD></TR>
          </TABLE>
      <TABLE cellSpacing=0 cellPadding=4 width="100%" bgColor=#eeeeee 
        border=0><TBODY>
        <TR>
          <TD width="50%">
              <P><FONT class=middlefont>版权所有 &copy; 2004 <A 
            href="mailto:bjchenxu@sina.com">linux知识宝库</A><BR>
                违者必究. </FONT></P>
            </TD>
          <TD width="50%">
              <DIV align=right><FONT class=middlefont>Powered by: <A 
            href="mailto:bjchenxu@sina.com">Linux知识宝库</A> Version 0.9.0 </FONT></DIV>
            </TD></TR></TBODY></TABLE>
      <CENTER></CENTER></TD></TR>
    </TABLE></CENTER></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -