📄 1704.html
字号:
<br>
#cp james-2.1.3.tar.gz /usr/local <br>
//把james-2.1.3.tar.gz拷贝到/usr/local目录中。<br>
#cd /usr/local<br>
#tar -xvzf james-2.1.3.tar.gz <br>
//解压此文件,并自动产生/usr/local/james-2.1.3目录。<br>
#ln -s /usr/local/james-2.1.3 james <br>
//产生连接快捷目录。<br>
#cd /usr/local/james/bin<br>
#chmod +x run.sh <br>
//改变run.sh文件属性。<br>
#chmod +x phoenix.sh <br>
//改变phoenix.sh文件属性。<br>
<br>
⑤ 主体软件配置:(注意:以下各配置文件只能用命令行下运行vi软件来编辑,去除多余的空行,尤其必须清除行尾的"^@"等字符!)<br>
<br>
1. #vi /etc/profile编辑系统环境配置文件,加入以下各行:<br>
<br>
<br>
PATH=$PATH:/opt/SUNWappserver/jdk/bin:/opt/SUNWappserver/bin:/usr/local/james/bin<br>
export PATH<br>
<br>
JAVA_HOME = /opt/SUNWappserver/jdk<br>
export JAVA_HOME<br>
<br>
<br>
<br>
2. #vi /etc/bashrc编辑系统自动批处理文件,加入以下行:<br>
<br>
<br>
run.sh<br>
//表示当系统自启时也启动james服务,注意:POP3(110),SMTP(25),IMAP(143),<br>
//NNTP(119),Sockets(1024),Telnet(4555)不能有冲突。<br>
/opt/SUNWappserver/bin/asadmin start-domain domain1 <br>
//表示当系统自启时也启动J2EE Application Server服务。<br>
//注:停止服务 /opt/SUNWappserver/bin/asadmin stop-domain domain1<br>
<br>
注意:以上各配置文件只能用命令行下运行vi软件来编辑,去除多余的空行,尤其必须清除行尾的"^@"等字符!,否则J2EE Application Server无法正常启动。 <br>
<br>
3. 可修改/opt/SUNWappserver/domains/domain1/config目录下的domain.xml和default-web.xml两个配置文件内容:<br>
<br>
...... <br>
<br>
4.安装和配置好后需要重新启动Linux,当再次进入Linux后系统会自动启动J2EE Application Server,James和MySQL,可采用vi /opt/SUNWappserver/domains/domain1/logs/server.log来查看启动情况。 <br>
<br>
⑥ 主体软件使用简介:<br>
<br>
1. J2EE Application Server:<br>
<br>
1) 可执行目录: /opt/SUNWappserver/bin。<br>
<br>
2) J2SE SDK目录: /opt/SUNWappserver/jdk。<br>
<br>
3) 用户Web根目录: /opt/SUNWappserver/domains/domain1/docroot。<br>
<br>
4) 公共class库目录: /opt/SUNWappserver/lib。<br>
<br>
5) 用户class库目录: /opt/SUNWappserver/domains/domain1/docroot/ 用户Web目录/WEB-INF/classes。<br>
<br>
6) 配置文件: /opt/SUNWappserver/domains/domain1/config目录中的domain.xml和default-web.xml。<br>
<br>
7) 存放用户JSP被自动编译的Servlet文件:<br>
<br>
/opt/SUNWappserver/domains/domain1/generated/ jsp/j2ee-modules/default-web-module-server/org/apache/jsp/用户Web目录名/。<br>
<br>
8) 超级用户管理界面: http://localhost:4848/asamin/index.html。 <br>
<br>
9) 注意事项:公共class库有变动时需要重启J2EE Application Server。<br>
<br>
2. MySQL:<br>
<br>
1) MySQL数据库的备份:#mysqldump 数据库名[| gzip] > 备份文件名[.gz](如:*.sql) <br>
<br>
2) MySQL数据库的恢复:<br>
<br>
<br>
#mysql -u root<br>
mysql>create database 数据库名;<br>
mysql>quit <br>
[#tar xvzf 备份文件名.gz](解压用)<br>
#mysql 数据库 < 备份文件名(如:*.sql)<br>
<br>
3) MySQL数据库的删除:mysql>drop database 数据库名;<br>
<br>
4) MySQL数据库表的删除:mysql>drop tables 表名; <br>
<br>
5) MySQL数据库记录的删除:mysql>delete from 表名 where 字段名[=|<|>]值;<br>
<br>
6) MySQL数据库记录的查询:mysql>select 字段列表 from 表名 where 字段名[=|<|>]值 ORDER BY [DESC|ASC];<br>
<br>
7) MySQL数据库的使用:mysql>use 数据库名;<br>
<br>
8) MySQL数据库的显示:mysql>show databases;<br>
<br>
9) MySQL数据库表的显示:mysql>use 数据库名;<br>
<br>
mysql>show tables;<br>
<br>
10) MySQL数据库的版本:mysql>select version();<br>
<br>
11) MySQL数据库的权限:<br>
<br>
<br>
#mysql -u root //为root用户添加或修改口令<br>
Mysql>use mysql;<br>
Mysql>set password for root=PASSWORD('口令');<br>
<br>
<br>
<br>
12) 用户的MySQL数据库应放在/var/lib/mysql/用户数据库名的目录中。<br>
<br>
13) /etc/my.cnf文件是mysql的配置文件,含有数据库的用户名和口令等。<br>
<br>
Jawa 2004年1月22日<br>
<br>
E-Mail:Jawa168@163.com<br>
<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>版权所有 © 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 + -