??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产精品无码久久一区二区,国产成人亚洲毛片,亚洲精品国产国语http://www.tkk7.com/icewee/category/49013.htmlThere is nothing too difficult if you put your heart into it.zh-cnTue, 01 Apr 2014 04:16:31 GMTTue, 01 Apr 2014 04:16:31 GMT60ORA-01438: value larger than specified precision allowed for this column & Could not synchronize database state with sessionhttp://www.tkk7.com/icewee/archive/2014/03/28/411644.htmlIceWeeIceWeeFri, 28 Mar 2014 10:54:00 GMThttp://www.tkk7.com/icewee/archive/2014/03/28/411644.htmlhttp://www.tkk7.com/icewee/comments/411644.htmlhttp://www.tkk7.com/icewee/archive/2014/03/28/411644.html#Feedback0http://www.tkk7.com/icewee/comments/commentRss/411644.htmlhttp://www.tkk7.com/icewee/services/trackbacks/411644.html有段日子没做记录了,q段日子一直在排雷Q前人埋下的隐患代码Q或者直接说bugQ,今天q个雯我排了将q大半天Q因为是正式上线的系l,只能看后台日志,不能调试Q打印出的异怿息不完整Q种U的条g不充分,D问题很难定位。标题上的两个异常,W一个一看就明白是插入的数值大于数据库字段长度Q第二个多是因ؓNumbercd的字D导_比如_ֺ不?/span>

我们的这ơ问题原因是E序员在做除法运时没有寚w数进行非零判断,D计算出来的数值非法,插入数据库失败,L代码Q?
public static void main(String[] args) {
        
double a = 10;
        
double b = 0;
        
double c = 0;
        
        
double m = a/c;
        
double n = b/c;
        
        System.out.println(m);
        System.out.println(n);
    }

l过计算后,m和n的值分别是多少Q没在实际开发中遇到的可能不知道Q或者你有个好习惯不会出现这LbugQ请看结果:
Infinity
NaN

被除数非Ӟ除数为零做除法的l果是字W串“Infinity”Q翻译成中文是“无限”Q你的中学数学老师可能说过Q?br />被除CؓӞ除数为零做触发的l果是字W串“NaN”Q即不是有效的数字?br />
是q个“Infinity”p了我一天的时间才定位。下面详q问题定位的Ҏ?br />
异常1QORA-01438: value larger than specified precision allowed for this column
了解Ҏ据库的打g看就知道插入的数Dq了表字D长度,但你知道是哪个表哪个字段吗?我不知道Q于是网上查阅了下,Oracle数据库服务器在Linux上?br />
命o行登陆到数据库所在服务器Q进入Oracle的安装目录,假设?opt/oracle/
q入到如下目录:/opt/oracle/admin/实例?udump
中间的数据库实例名根据实际情况修改,udump目录下会有一堆的.trc文gQ这些文件记录了所有操作当前数据库出现异常的堆栈信息。ؓ了定位问题,我将该目录下的所?trc文g都删除了Q当Ӟ删除之前把udump目录整个备䆾了)Q再q行一ơ系l的业务操作Q查看一下udump目录Q发现立ȝ成一个新 ?trc文gQ打开查看Q内容片D)Q?br />
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning
, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
ORACLE_HOME 
= /u01/app/oracle/product/10.2/db_1
System name:    AIX
Node name
:    gsdj1
Release
:    1
Version
:    6
Machine
:    00CFD4644C00
Instance name
: bjwd1
Redo thread mounted by this instance: 1
Oracle process number
: 132
Unix process pid
: 48300280, image: oracle@gsdj1

*** SERVICE NAME:(bjwd) 2014-03-28 16:48:05.683
*** SESSION ID:(2969.439612014-03-28 16:48:05.683
*** 2014-03-28 16:48:05.683
ksedmp
: internal or fatal error
ORA
-01438: value larger than specified precision allowed for this column
Current SQL statement 
for this session:
insert into CP_TEMP_STOCKTRAN (APPLY_ID, ALIEN, CER_TYPE, CER_NO, TRANS_AM, TRANS_AM_PR, TRANS_TYPE, TRANS_DATE, ENDORSOR, BLIC_TYPE, ALIEN_ID, ENDORSOR_ID, STOCKTRAN_ID) values (:1, :2, :3, :4, :5, :6, :7, :8, :9, :10, :11, :12, :13)

黄色背景U色字体的SQL是|魁RQ这仅仅能定位发生问题的数据库表Q字D还得自己排查。异?让我定位Cq里Q这时想起了异常2?br />

异常2Q?nbsp;Could not synchronize database state with session
之前也搜索过q个异常Q多数是׃Numbercd的字D导致。冷静的思考一下,q_我们在做表设计时Q会把文字类型的字段讄大一些,Numbercd的精度也会根据实际业务进行设计,但往往Numbercd的字D|Ҏ出问题:
1、如果将非Number值插入该字段Q比如字W串
2、如果插入的数值精度过多,如字D设计Number(10,2)Q也是最大支?为整数和两位数Q要插入34.121313׃p|

Ҏ表名定位到hibernate的映文件以及实体类Q再从业务功能入口(一个actionҎQ搜索,l于定位C个业务接口做了该实体cȝ保存代码Q定位到了那个字D,定位C做除法没有判断除数是否ؓ0?br />









IceWee 2014-03-28 18:54 发表评论
]]>
Debian |络讄以及非法x后无法联|?connect: network is unreachablehttp://www.tkk7.com/icewee/archive/2014/01/24/409301.htmlIceWeeIceWeeFri, 24 Jan 2014 02:50:00 GMThttp://www.tkk7.com/icewee/archive/2014/01/24/409301.htmlhttp://www.tkk7.com/icewee/comments/409301.htmlhttp://www.tkk7.com/icewee/archive/2014/01/24/409301.html#Feedback0http://www.tkk7.com/icewee/comments/commentRss/409301.htmlhttp://www.tkk7.com/icewee/services/trackbacks/409301.html |络配置Q?/span>
临时Q重?/span>丢失Q?/span>
ifconfig eth0 192.168.1.xxx netmask 255.255.xxx.0


怹Q重启有效)
vi /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
        address 192.168.1.xxx
        netmask 255.255.xxx.0
        network 192.168.1.1
        broadcast 192.168.1.255
        gateway 192.168.1.1
        
# dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 202.106.196.115


׃非法xD重启后无法联|?/span>

ifconfig eth0 192.168.1.xxx netmask 255.255.xxx.0 

route add default gw 192.168.1.1

重启后配|丢失,所以必d重启之前执行Q?br />
apt-get update

apt-get install ifupdown

不能联网是因为非法关机导致ifup脚本丢失







IceWee 2014-01-24 10:50 发表评论
]]>
SVN(Subversion)自动同步备䆾配置http://www.tkk7.com/icewee/archive/2014/01/23/409261.htmlIceWeeIceWeeThu, 23 Jan 2014 03:08:00 GMThttp://www.tkk7.com/icewee/archive/2014/01/23/409261.htmlhttp://www.tkk7.com/icewee/comments/409261.htmlhttp://www.tkk7.com/icewee/archive/2014/01/23/409261.html#Feedback0http://www.tkk7.com/icewee/comments/commentRss/409261.htmlhttp://www.tkk7.com/icewee/services/trackbacks/409261.html备䆾机器Q?92.168.1.2

前提条gQ?br />1、两台机器的|络是连通的
2、两台机器必d时安装了SVN服务?br />
假设Q?br />源机器上需要同步的库名为autoSyncQ访问地址为:svn://192.168.1.1/autoSyncQ对其具备读写权限的账户Qsync/sync

备䆾机器配置Q?br />1、创Z源机器库名相同的I库
# 假设备䆾机器的SVN根目录徏立在 /home/backup/svn/repository?/span>
svnadmin create /home/backup/svn/repository/autoSync

2、配|备份机器上的autoSync
分别修改conf下的svnserve.conf、passwd、authzQ根据实际情况配|,假设创徏了用户sync/syncQ对库autoSync具备d权限Q配|方法略Q配|完成后启动SVN服务

3、创建ƈ修改pre-revprop-change文g
cd /home/backup/svn/repository/autoSync/hooks
cp pre
-revprop-change.tmpl pre-revprop-change
vi pre-revprop-change

文件末?/span>?#8220;exit 1”?/span>改ؓ“exit 0”卛_Q保存退?br />
REPOS="$1"
REV
="$2"
USER
="$3"
PROPNAME
="$4"
ACTION
="$5"

if
[ "$ACTION" = "M" -a "$PROPNAME" = "svn:log" ]; then exit 0; fi

echo
"Changing revision properties other than svn:log is prohibited" >&2
exit
0

增加可执行权?br />
chmod 755 pre-revprop-change

4、初始化
命oQ?br />svnsync init --username 用户?--password 密码 备䆾机器库URL 源机器库URL

说明Q?br />用户名和密码是对源机器SVN库具备读写权限的SVN用户

CZQ?br />
svnsync init --username sync --password sync svn://192.168.1.2/autoSync svn://192.168.1.1/autoSync

5、首ơ同?br />首次同步即ؓ一ơ全备䆾q程Q在此期间请停止客户端段源机器哦一切操作(提交代码{)
命oQ?br />svnsync sync 备䆾机器库URL
CZQ?br />
svnsync sync svn://192.168.1.2/autoSync

源机器配|?br />6、增量自动同步配|?br />创徏q修改post-commit文g
# 假设源机器的SVN根目录徏立在 /home/svn/repository?/span>
cd /home/svn/repository/autoSync/hooks
cp post
-commit.tmpl post-commit
vi post
-commit

在文件末追加:svnsync sync --non-interactive 备䆾机器库URL --username 用户?--password 密码

说明Q?br />用户名和密码是对备䆾机器SVN库具备读写权限的SVN用户

CZQ?br />
svnsync sync --non-interactive svn://192.168.1.2/autoSync --username sync --password sync

7、术?br />配置完成Q今后客L再向SVNQ?92.168.1.1Q提交文件时Q会自动触发源机器(192.168.1.1Q向备䆾机器Q?92.168.1.2Q提交更?br />
8、版本库UUID一致?br />首先查看源机器库的UUIDQ假讑־到的是:fcdcbee9-6be3-4575-8d4a-681ec15ad8e0
svnlook uuid svn://192.168.1.1/autoSync

更新备䆾机器库的UUID为源机器库的UUID
svnadmin setuuid svn://192.168.1.2/autoSync fcdcbee9-6be3-4575-8d4a-681ec15ad8e0






IceWee 2014-01-23 11:08 发表评论
]]>
Debian Subversion(SVN)的安?/title><link>http://www.tkk7.com/icewee/archive/2014/01/17/409059.html</link><dc:creator>IceWee</dc:creator><author>IceWee</author><pubDate>Fri, 17 Jan 2014 07:48:00 GMT</pubDate><guid>http://www.tkk7.com/icewee/archive/2014/01/17/409059.html</guid><wfw:comment>http://www.tkk7.com/icewee/comments/409059.html</wfw:comment><comments>http://www.tkk7.com/icewee/archive/2014/01/17/409059.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/icewee/comments/commentRss/409059.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/icewee/services/trackbacks/409059.html</trackback:ping><description><![CDATA[<span style="font-size: 12pt;"> </span><span style="font-size: 12pt;"> </span><span style="font-size: 12pt;"> 本文记录的安装步骤是Z基本安装后的DebianQ启动后漆黑一片,只有命o行,采用在线安装方式Q因此配|中国的镜像软g源能提高软g的下载速度Q首先配|Y件源?/span><br /><br /><span style="color: red; font-size: 12pt;">备䆾源文?/span><br /><span style="font-size: 12pt;"># </span><span style='color: rgb(51, 51, 51); font-family: "Tahoma","sans-serif"; font-size: 12pt; mso-fareast-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;' lang="EN-US">cp /etc/apt/sources.list /etc/apt/sources.list.bak<br /></span><br /><span style="font-size: 12pt;">~辑源文?/span><br /><span style="font-size: 12pt;"># </span><span style='color: rgb(51, 51, 51); font-family: "Tahoma","sans-serif"; font-size: 12pt;'>nano /etc/apt/sources.list<br /></span><br /><span style="font-size: 12pt;">注释掉本地光盘源q一行,注释后如Q?/span><br /><span style="font-size: 12pt;"># deb cdrom:[Debian GNU/Linux 6.0.7 _Squeeze_ - Official amd64 NETINST Binary-1 20130223-18:50]/ squeeze main</span><br /><br /><span style="font-size: 12pt;">取消下面两行官方源前面的注释</span><br /><span style="font-size: 12pt;">deb </span><a ><span style="font-size: 12pt;">http://security.debian.org/</span></a><span style="font-size: 12pt;"> squeeze/updates main</span><br /><span style="font-size: 12pt;">deb-src </span><a ><span style="font-size: 12pt;">http://security.debian.org/</span></a><span style="font-size: 12pt;"> squeeze/updates main</span><br /><br /><span style="font-size: 12pt;">q加163的镜像源地址</span><br /><span style="font-size: 12pt;">deb </span><a ><span style="font-size: 12pt;">http://mirrors.163.com/debian/</span></a><span style="font-size: 12pt;"> squeeze main non-free contrib </span><br /><span style="font-size: 12pt;">deb </span><a ><span style="font-size: 12pt;">http://mirrors.163.com/debian/</span></a><span style="font-size: 12pt;"> squeeze-proposed-updates main contrib non-free </span><br /><span style="font-size: 12pt;">deb </span><a ><span style="font-size: 12pt;">http://mirrors.163.com/debian-security/</span></a><span style="font-size: 12pt;"> squeeze/updates main contrib non-free </span><br /><span style="font-size: 12pt;">deb-src </span><a ><span style="font-size: 12pt;">http://mirrors.163.com/debian/</span></a><span style="font-size: 12pt;"> squeeze main non-free contrib </span><br /><span style="font-size: 12pt;">deb-src </span><a ><span style="font-size: 12pt;">http://mirrors.163.com/debian/</span></a><span style="font-size: 12pt;"> squeeze-proposed-updates main contrib non-free </span><br /><span style="font-size: 12pt;">deb-src </span><a ><span style="font-size: 12pt;">http://mirrors.163.com/debian-security/</span></a><span style="font-size: 12pt;"> squeeze/updates main contrib non-free </span><br /><span style="font-size: 12pt;">deb </span><a ><span style="font-size: 12pt;">http://ftp.sjtu.edu.cn/debian/</span></a><span style="font-size: 12pt;"> squeeze main non-free contrib </span><br /><span style="font-size: 12pt;">deb </span><a ><span style="font-size: 12pt;">http://ftp.sjtu.edu.cn/debian/</span></a><span style="font-size: 12pt;"> squeeze-proposed-updates main contrib non-free </span><br /><span style="font-size: 12pt;">deb </span><a ><span style="font-size: 12pt;">http://ftp.sjtu.edu.cn/debian-security/</span></a><span style="font-size: 12pt;"> squeeze/updates main contrib non-free </span><br /><span style="font-size: 12pt;">deb-src </span><a ><span style="font-size: 12pt;">http://ftp.sjtu.edu.cn/debian/</span></a><span style="font-size: 12pt;"> squeeze main non-free contrib </span><br /><span style="font-size: 12pt;">deb-src </span><a ><span style="font-size: 12pt;">http://ftp.sjtu.edu.cn/debian/</span></a><span style="font-size: 12pt;"> squeeze-proposed-updates main contrib non-free </span><br /><span style="font-size: 12pt;">deb-src </span><a ><span style="font-size: 12pt;">http://ftp.sjtu.edu.cn/debian-security/</span></a><span style="font-size: 12pt;"> squeeze/updates main contrib non-free</span><br /><br /><span style="font-size: 12pt;">保存修改</span><br /><span style="font-size: 12pt;"># ctrl + o 回R</span><br /><span style="font-size: 12pt;">退?/span><br /><span style="font-size: 12pt;"># ctrl + x</span><br /><br /><span style="font-size: 12pt;">更新?/span><br /><span style="font-size: 12pt;"># apt-get update</span><br /><br /><span style="font-size: 12pt;">更新pȝ</span><br /><span style="font-size: 12pt;"># apt-get upgrade</span><br /><br /><span style="font-size: 12pt;"><strong>安装SVN服务?/strong></span><br /><span style="font-size: 12pt;"># apt-get install subversion subversion-tools</span><br /><br /><span style="font-size: 12pt;">安装完成后可以运行命令查看SVN服务器版本信?/span><br /><span style="font-size: 12pt;"># svnserve --version</span><br /><br /><span style="font-size: 12pt;"><strong>配置SVN</strong></span><br /><span style="font-size: 12pt;">首先创徏版本库的根目录,如位|:/home/svn/repositoryQ所有项目都在该目录下创徏相应子文件夹</span><br /><span style="font-size: 12pt;"># mkdir –p /home/svn/repository</span><br /><br /><span style="font-size: 12pt;">创徏目版本库testQ仅为演C)</span><br /><span style="font-size: 12pt;"># svnadmin create /home/svn/repository/test</span><p><br /><span style="font-size: 12pt;">修改SVN配置文g</span><br /><span style="font-size: 12pt;">nano /home/svn/repository/test/conf/svnserve.conf</span></p><p><span style="font-size: 12pt;">以下为文件内容:</span><br /><span style="font-size: 12pt;">### This file controls the configuration of the svnserve daemon, if you</span><br /><span style="font-size: 12pt;">### use it to allow access to this repository.  (If you only allow</span><br /><span style="font-size: 12pt;">### access through http: and/or file: URLs, then this file is</span><br /><span style="font-size: 12pt;">### irrelevant.)</span></p><p><span style="font-size: 12pt;">### Visit </span><a ><span style="font-size: 12pt;">http://subversion.tigris.org/</span></a><span style="font-size: 12pt;"> for more information.</span></p><p><span style="font-size: 12pt;">[general]</span><br /><span style="font-size: 12pt;">### These options control access to the repository for unauthenticated</span><br /><span style="font-size: 12pt;">### and authenticated users.  Valid values are "write", "read",</span><br /><span style="font-size: 12pt;">### and "none".  The sample settings below are the defaults</span><br /><span style="font-size: 12pt;"># 未授权配|ؓ止讉KnoneQ已授权配置为可以读写write</span><br /><span style="color: red; font-size: 12pt;">anon-access = none</span><br /><span style="color: red; font-size: 12pt;">auth-access = write</span><br /><span style="font-size: 12pt;">### The password-db option controls the location of the password</span><br /><span style="font-size: 12pt;">### database file.  Unless you specify a path starting with a /,</span><br /><span style="font-size: 12pt;">### the file's location is relative to the directory containing</span><br /><span style="font-size: 12pt;">### this configuration file.</span><br /><span style="font-size: 12pt;">### If SASL is enabled (see below), this file will NOT be used.</span><br /><span style="font-size: 12pt;">### Uncomment the line below to use the default password file.</span><br /><span style="font-size: 12pt;"># 用户数据库文Ӟ配置授权用户Q当前用的文g是和svnserve.conf在相同目录下的passwd文gQ也可以指定其他l对路径文gQ如Q?home/svn/passwd</span><br /><span style="color: red; font-size: 12pt;">password-db = passwd</span><br /><span style="font-size: 12pt;">### The authz-db option controls the location of the authorization</span><br /><span style="font-size: 12pt;">### rules for path-based access control.  Unless you specify a path</span><br /><span style="font-size: 12pt;">### starting with a /, the file's location is relative to the the</span><br /><span style="font-size: 12pt;">### directory containing this file.  If you don't specify an</span><br /><span style="font-size: 12pt;">### authz-db, no path-based access control is done.</span><br /><span style="font-size: 12pt;">### Uncomment the line below to use the default authorization file.</span><br /><span style="font-size: 12pt;"># 授权文gQ配|如同用户配|?/span><br /><span style="color: red; font-size: 12pt;">authz-db = authz</span><br /><span style="font-size: 12pt;">### This option specifies the authentication realm of the repository.</span><br /><span style="font-size: 12pt;">### If two repositories have the same authentication realm, they should</span><br /><span style="font-size: 12pt;">### have the same password database, and vice versa.  The default realm</span><br /><span style="font-size: 12pt;">### is repository's uuid.</span><br /><span style="font-size: 12pt;"># realm = My First Repository</span></p><p><span style="font-size: 12pt;">[sasl]</span><br /><span style="font-size: 12pt;">### This option specifies whether you want to use the Cyrus SASL</span><br /><span style="font-size: 12pt;">### library for authentication. Default is false.</span><br /><span style="font-size: 12pt;">### This section will be ignored if svnserve is not built with Cyrus</span><br /><span style="font-size: 12pt;">### SASL support; to check, run 'svnserve --version' and look for a line</span><br /><span style="font-size: 12pt;">### reading 'Cyrus SASL authentication is available.'</span><br /><span style="font-size: 12pt;"># use-sasl = true</span><br /><span style="font-size: 12pt;">### These options specify the desired strength of the security layer</span><br /><span style="font-size: 12pt;">### that you want SASL to provide. 0 means no encryption, 1 means</span><br /><span style="font-size: 12pt;">### integrity-checking only, values larger than 1 are correlated</span><br /><span style="font-size: 12pt;">### to the effective key length for encryption (e.g. 128 means 128-bit</span><br /><span style="font-size: 12pt;">### encryption). The values below are the defaults.</span><br /><span style="font-size: 12pt;"># min-encryption = 0</span><br /><span style="font-size: 12pt;"># max-encryption = 256</span></p><p><br /><span style="font-size: 12pt;">保存</span><br /><span style="font-size: 12pt;"># ctrl + o 回R</span></p><p><span style="font-size: 12pt;">退?/span><br /><span style="font-size: 12pt;"># ctrl + x</span><br /></p><p><span style="font-size: 12pt;">配置用户</span><br /><span style="font-size: 12pt;"># nano passwd</span></p><p><span style="font-size: 12pt;">以下为文件内容:</span><br /><span style="font-size: 12pt;">### This file is an example password file for svnserve.</span><br /><span style="font-size: 12pt;">### Its format is similar to that of svnserve.conf. As shown in the</span><br /><span style="font-size: 12pt;">### example below it contains one section labelled [users].</span><br /><span style="font-size: 12pt;">### The name and password for each user follow, one account per line.</span></p><p><span style="font-size: 12pt;">[users]</span><br /><span style="font-size: 12pt;"># harry = harryssecret</span><br /><span style="font-size: 12pt;"># sally = sallyssecret</span><br /><span style="font-size: 12pt;">IceWee = IceWee</span></p><p><span style="font-size: 12pt;">增加用户IceWeeQ密码也为IceWeeQ?号两侧需要有I格Q保?ctrl + o 回R)退?ctrl + x)</span><br /></p><p><span style="font-size: 12pt;">配置讉K权限</span><br /><span style="font-size: 12pt;"># nano authz</span></p><p><span style="font-size: 12pt;">以下为文件内容:</span><br /><span style="font-size: 12pt;">### This file is an example authorization file for svnserve.</span><br /><span style="font-size: 12pt;">### Its format is identical to that of mod_authz_svn authorization</span><br /><span style="font-size: 12pt;">### files.</span><br /><span style="font-size: 12pt;">### As shown below each section defines authorizations for the path and</span><br /><span style="font-size: 12pt;">### (optional) repository specified by the section name.</span><br /><span style="font-size: 12pt;">### The authorizations follow. An authorization line can refer to:</span><br /><span style="font-size: 12pt;">###  - a single user,</span><br /><span style="font-size: 12pt;">###  - a group of users defined in a special [groups] section,</span><br /><span style="font-size: 12pt;">###  - an alias defined in a special [aliases] section,</span><br /><span style="font-size: 12pt;">###  - all authenticated users, using the '$authenticated' token,</span><br /><span style="font-size: 12pt;">###  - only anonymous users, using the '$anonymous' token,</span><br /><span style="font-size: 12pt;">###  - anyone, using the '*' wildcard.</span><br /><span style="font-size: 12pt;">###</span><br /><span style="font-size: 12pt;">### A match can be inverted by prefixing the rule with '~'. Rules can</span><br /><span style="font-size: 12pt;">### grant read ('r') access, read-write ('rw') access, or no access</span><br /><span style="font-size: 12pt;">### ('').</span></p><p><span style="font-size: 12pt;">[aliases]</span><br /><span style="font-size: 12pt;"># joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average</span></p><p><span style="font-size: 12pt;">[groups]</span><br /><span style="font-size: 12pt;"># harry_and_sally = harry,sally</span><br /><span style="font-size: 12pt;"># harry_sally_and_joe = harry,sally,&joe</span><br /><span style="color: red; font-size: 12pt;">developers = IceWee</span></p><p><span style="font-size: 12pt;"># [/foo/bar]</span><br /><span style="font-size: 12pt;"># harry = rw</span><br /><span style="font-size: 12pt;"># &joe = r</span><br /><span style="font-size: 12pt;"># * =</span></p><p><span style="font-size: 12pt;"># [repository:/baz/fuz]</span><br /><span style="font-size: 12pt;"># @harry</span><span style="font-size: 12pt;">_a</span><span style="font-size: 12pt;">nd_sally = rw</span><br /><span style="font-size: 12pt;"># * = r</span></p><p><span style="color: red; font-size: 12pt;">[/]</span><br /><span style="color: red; font-size: 12pt;">* = r</span><br /><span style="color: red; font-size: 12pt;">IceWee = rw<br /></span><span style="color: red; font-size: 12pt;">@developers = rw</span></p><p><span style="color: red; font-size: 12pt;">[/tags]</span><br /><span style="color: red; font-size: 12pt;">IceWee = rw</span></p><p><span style="font-size: 12pt;">默认所有用户可d根,IceWee可以d栏V可以分别对子目录进行授权,如上的tags目录QIceWeehd权限Q以及IceWee所在的ldevelopers也具备读写权限?/span><br /><br /><span style="font-size: 12pt;">启动SVN服务?/span><br /><span style="font-size: 12pt;"># svnserve -d -r /home/svn/repository</span><br /><span style="font-size: 12pt;">-d含义为后台运行(daemonQ,-r指定的根目录Q如讉Ktest应该使用q样的地址 </span><a href="svn"><span style="font-size: 12pt;">svn</span></a><span style="font-size: 12pt;">://hostname:port/test</span><br /><br /><span style="font-size: 12pt;">停止SVN服务</span><br /><span style="font-size: 12pt;"># killall svnserve</span><br /><br /><span style="font-size: 12pt;">备䆾q原命oQ与oracle的备份有些类?/span><br /><span style="font-size: 12pt;">导出</span><br /><span style="font-size: 12pt;"># svnadmin dump /home/svn/repository/test > /home/bak/test.dump</span><br /><br /><span style="font-size: 12pt;">导入</span><br /><span style="font-size: 12pt;"># svn</span><span style="font-size: 12pt;">admin load /home/svn/repository/demo < /home/bak/demo.dump</span><br /><span style="font-size: 12pt;">导入前提Q?/span><br /><span style="font-size: 12pt;">必须先创导入版本库目录,如上的demoQ则需要做以下操作</span><br /><span style="font-size: 12pt;"># svnadmin create /home/svn/respository/demo</span><br /><span style="font-size: 12pt;">修改svnserve.conf、passwd、authz{文Ӟ前面已介l?/span><br /></p><p><br /> </p><br /><br /><br /><br /> <img src ="http://www.tkk7.com/icewee/aggbug/409059.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/icewee/" target="_blank">IceWee</a> 2014-01-17 15:48 <a href="http://www.tkk7.com/icewee/archive/2014/01/17/409059.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Linux VNC服务安装与配|?/title><link>http://www.tkk7.com/icewee/archive/2013/02/22/395594.html</link><dc:creator>IceWee</dc:creator><author>IceWee</author><pubDate>Fri, 22 Feb 2013 09:46:00 GMT</pubDate><guid>http://www.tkk7.com/icewee/archive/2013/02/22/395594.html</guid><wfw:comment>http://www.tkk7.com/icewee/comments/395594.html</wfw:comment><comments>http://www.tkk7.com/icewee/archive/2013/02/22/395594.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.tkk7.com/icewee/comments/commentRss/395594.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/icewee/services/trackbacks/395594.html</trackback:ping><description><![CDATA[ <p><span style="font-size: 18pt;"><strong>一、Redhat上VNC Server配置</strong></span><br /><font size="3">本文以当前Linuxpȝ未安装VNC服务器ؓ基本Q如果已安装误q第1节!<br /></font></p><p><span style="font-size: 12pt;"></span><font size="3"><span style="font-size: 14pt;"><strong>前提Q?/strong></span><br /></font><span style="font-size: 12pt;">1.q接C联网Q将使用yum在线安装VNC服务?/span><br /><span style="font-size: 12pt;">2. 认 SSH 在运?/span><br /><span style="font-size: 12pt;"><br /></span><span style="font-size: 14pt;"><strong>1.安装 TigerVNC Server</strong></span></p><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" /><span style="color: rgb(0, 128, 0);">#</span><span style="color: rgb(0, 128, 0);"> yum search tigervnc-server</span></div><p><br /><span style="font-size: 12pt;">q回大概如下内容Q?/span></p><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" /><span style="color: rgb(0, 0, 0);">tigervnc-server.x86_64 : A TigerVNC Server<br /><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" />tigervnc-server-applet.noarch : Java TigerVNC Viewer applet for TigerVNC Server<br /><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" />tigervnc-server-module.x86._</span><span style="color: rgb(0, 0, 0);">64</span><span style="color: rgb(0, 0, 0);"> : TigerVNC Mode to Xorg<br /><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" />...</span></div><p><br /><span style="font-size: 12pt;">W一行即是我们要安装的VNS服务器,W二行是客户端,执行</span></p><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" /><span style="color: rgb(0, 128, 0);">#</span><span style="color: rgb(0, 128, 0);"> yum install tigervnc-server.x86_64</span></div><p><br /><span style="font-size: 12pt;">回R后会有一ơ安装确认,输入y后回车即可安装,安装完毕后返回到命o行输入光标,执行</span><span style="font-size: 12pt;"></span></p><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" /><span style="color: rgb(0, 128, 0);">#</span><span style="color: rgb(0, 128, 0);"> vncserver</span></div><p><br /><span style="font-size: 12pt;">会提C入验证密码,臛_6位,该密码是客户端连接时用到的?/span></p><p><span style="font-size: 12pt;"><br /></span><span style="font-size: 14pt;"><strong>2.</strong></span><span style="font-size: 14pt;"><strong>配置囑Ş界面</strong></span><span style="font-size: 12pt;"><span style="font-size: 12pt;"><span style="font-size: 12pt;"><span style="font-size: 12pt;"><br /></span><span style="font-size: 12pt;">修改配置文gQ激zd形界面,执行命oQ?/span></span></span></span></p><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" /><span style="color: rgb(0, 128, 0);">#</span><span style="color: rgb(0, 128, 0);"> vi /root/.vnc/xstartup</span></div><p><span style="font-size: 12pt;"><br />注释掉这?/span><span style="font-size: 12pt;"></span></p><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" /><span style="color: rgb(0, 0, 0);">#twm & // 注释该行</span></div><p><span style="font-size: 12pt;"><br />末尾增加一?/span></p><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" /><span style="color: rgb(0, 0, 0);">gnome-session & // 增加该行</span></div><p><span style="font-size: 12pt;"><br />保存退?/span></p><p><span style="font-size: 12pt;"><br /></span><span style="font-size: 14pt;"><strong>3.启动VNC服务<br /></strong></span>执行命o</p><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" /><span style="color: rgb(0, 128, 0);">#</span><span style="color: rgb(0, 128, 0);"> /etc/init.d/vncserver start</span></div><p><span style="font-size: 12pt;">?/span><span style="font-size: 12pt;"></span></p><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" /><span style="color: rgb(0, 128, 0);">#</span><span style="color: rgb(0, 128, 0);"> service vncserver start</span></div><p><br /><span style="font-size: 12pt;">启动后提C:</span></p><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" /><span style="color: rgb(0, 0, 0);">Starting VNC server: no displays configured </span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">FAILED</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span></div><p><br /><span style="font-size: 12pt;">解决ҎQ?/span><br /><span style="font-size: 12pt;">执行命o<span style="font-size: 12pt;"></span></span></p><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" /><span style="color: rgb(0, 128, 0);">#</span><span style="color: rgb(0, 128, 0);"> vim /etc/sysconfig/vncservers</span></div><p><span style="font-size: 12pt;"><br />修改最后两行如Q?/span></p><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" /><span style="color: rgb(0, 0, 0);">VNCSERVERS</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">1:root</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"><br /><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" />VNCSERVERARGS</span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">1</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">-geometry 1024x768</span><span style="color: rgb(0, 0, 0);">"</span></div><p><span style="font-size: 12pt;"><br />说明Q?/span><br /><span style="font-size: 12pt;">W一行ؓ服务配置Q当前只配置了一个VNC服务Q用用户root启动Q如果还需要用其他用L陆,可以修改VNCSERVERS的值如Q?#8220;1:root 2:tiger”Qtiger为系l另一存在用户Q。第二行可以注释Q是配置H口分L率的Q需要去掉后面的-localhost</span></p><p><span style="font-size: 12pt;"><br /></span><span style="font-size: 12pt;"><em><strong>VNC Server随系l自动启?/strong></em></span><span style="font-size: 12pt;"><br /></span><span style="font-size: 12pt;">执行命o<span style="font-size: 12pt;"></span></span></p><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" /><span style="color: rgb(0, 128, 0);">#</span><span style="color: rgb(0, 128, 0);"> sudo chkconfig --level 345 vncserver on</span></div><p><span style="font-size: 14pt;"><strong><br />4.停止VNC服务</strong></span><br /><span style="font-size: 12pt;">执行命o</span></p><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" /><span style="color: rgb(0, 128, 0);">#</span><span style="color: rgb(0, 128, 0);"> /etc/init.d/vncserver stop</span></div><p><span style="font-size: 12pt;">?/span></p><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" /><span style="color: rgb(0, 128, 0);">#</span><span style="color: rgb(0, 128, 0);"> service vncserver stop</span></div><p><br /><span style="font-size: 18pt;"><strong>二、Windows借助VNC Viewer讉KLinux</strong></span><br /><span style="font-size: 12pt;">首先安装RealVNCQ从互联|下载获?/span><br /><span style="font-size: 12pt;">开?- Run VNC ViewerQ输入IP地址Q后面的:1代表使用root用户登陆Q在RH上配|的1:rootQ如果想使用其他用户登陆则调整冒号后的数字即可,密码是先前配置的?/span><span style="font-size: 12pt;"><br /></span><img border="0" alt="" src="http://www.tkk7.com/images/blogjava_net/icewee/vnc/vnc.png" width="342" height="135" /> </p><p><span style="font-size: 12pt;"><br /><strong>解决q接不上问题的方?/strong></span><br /><span style="font-size: 12pt;">执行命oQ查看VNC监听的端口是什么,在防火墙中开攄口即?/span></p><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" /><span style="color: rgb(0, 128, 0);">#</span><span style="color: rgb(0, 128, 0);"> netstat -ntupl|grep vnc</span></div><p><span style="font-size: 12pt;"><br />q回列表如:</span><span style="font-size: 12pt;"></span></p><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" /><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">. tcp </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0.0.0.0</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">5901</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0.0.0.0</span><span style="color: rgb(0, 0, 0);">:* LISTEN </span><span style="color: rgb(0, 0, 0);">4411</span><span style="color: rgb(0, 0, 0);">/Xvnc <br /><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" /></span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">. tcp </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0.0.0.0</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">6001</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0.0.0.0</span><span style="color: rgb(0, 0, 0);">:* LISTEN </span><span style="color: rgb(0, 0, 0);">4411</span><span style="color: rgb(0, 0, 0);">/Xvnc <br /><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" /></span><span style="color: rgb(0, 0, 0);">3</span><span style="color: rgb(0, 0, 0);">. tcp </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);"> :::</span><span style="color: rgb(0, 0, 0);">6001</span><span style="color: rgb(0, 0, 0);"> :::* LISTEN </span><span style="color: rgb(0, 0, 0);">4411</span><span style="color: rgb(0, 0, 0);">/Xvnc</span></div><p><span style="font-size: 12pt;"><br />修改防火墙配|文Ӟ开?901端口卛_</span></p><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" /><span style="color: rgb(0, 128, 0);">#</span><span style="color: rgb(0, 128, 0);"> vi /etc/sysconfig/iptables</span></div><p><span style="font-size: 12pt;"><br />可以复制22端口一行,黏脓修改卛_Q重新启动防火墙服务</span></p><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" /><span style="color: rgb(0, 128, 0);">#</span><span style="color: rgb(0, 128, 0);"> service iptables restart</span></div><p><br /> </p><p><br /> </p> <img src ="http://www.tkk7.com/icewee/aggbug/395594.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/icewee/" target="_blank">IceWee</a> 2013-02-22 17:46 <a href="http://www.tkk7.com/icewee/archive/2013/02/22/395594.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Linux 64bit下JBoss7安装手册http://www.tkk7.com/icewee/archive/2013/02/22/395589.htmlIceWeeIceWeeFri, 22 Feb 2013 09:12:00 GMThttp://www.tkk7.com/icewee/archive/2013/02/22/395589.htmlhttp://www.tkk7.com/icewee/comments/395589.htmlhttp://www.tkk7.com/icewee/archive/2013/02/22/395589.html#Feedback0http://www.tkk7.com/icewee/comments/commentRss/395589.htmlhttp://www.tkk7.com/icewee/services/trackbacks/395589.html基本信息
操作pȝQCentOS Release 6.3 (Final)
内核版本QKernel Linux 2.6.32-279.el6.x86_64
JDK版本QOracle ®Java SE Development Kit 7u15 (1.7.0_15-b03)
JBoss版本QJBoss Application Server 7.1.1
安装包: jdk-7u15-linux-x64.rpm、jboss-as-7.1.1.Final.zip

安装准备
上传安装文g
JDK和JBoss安装文g(先解压成目录)上传到服务器Q目录随意,如:/home/?

开始安?/strong>
JDK安装
使用root登陆pȝQ打开命o行窗口,先ؓ安装文g授权

# chmod 755 jdk-7u15-linux-x64.rpm


执行安装

# rpm -ivh jdk-7u15-linux-x64.rpm


自动安装到目?/usr/java ?/p>

 

JDK配置
Root登陆执行

# vi /etc/profile


增加下面内容

JAVA_HOME=/usr/java/jdk1.7.0_15
CLASSPATH
=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
PATH
=$JAVA_HOME/bin:$PATH


保存退出,执行如下命o立即生效以上环境配置

# source /etc/profile


JDK版本,执行Q?/span>

# java – version

q回JDK版本信息

JBoss安装
JBoss为绿色版本,不需要安装,解压卛_使用Q和Tomcat一P下面JBoss目录UdC个相对规范的位置QRoot登陆执行

# mv /home/jboss-as-7.1.1.Final /usr/jboss-as-7.1.1.Final


OKQ安装完毕,配置一下环境变量,执行

# vi /etc/profile


增加下面内容

JBOSS_HOME=/usr/jboss-as-7.1.1.Final


启动服务

# /usr/jboss-as-7.1.1.Final/bin/standalone.sh

讉KQ在览器地址栏中输入Q?/span>http://127.0.0.1:8080Q出现欢q界面,证明启动成功Q?br />
停止服务
可以在启动终端窗口按?CTRL + CQ即可完全停止JBoss服务

局域网讉K
http://xxx.xx.xx.xxx:8080是不能访问的Q如果想让局域网内的其他机器讉K必须要修改JBoss配置Q方法如下:
~辑jboss-as-7.1.1.Final\standalone\configuration\standalone.xmlQ找?/span>

<interface name="public">
    <inet-address value
="${jboss.bind.address:127.0.0.1}"/>
</interface>


?/span>127.0.0.1修改为JBoss所在机器的IP地址卛_Q但是依旧无法访问,是因为Linux防火墙没有开?080端口Q执行:

# vi /etc/sysconfig/iptables


发现有一?/span>
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
复制它把22Ҏ8080q加该行后面保存退出!

创徏理员用?/strong>

# ./add-user.sh

 

What type of user do you wish to add?
 a) Management User (mgmt-users.properties)
 b) Application User (application-users.properties)
(a):

回R

Enter the details of the new user to add.
Realm (ManagementRealm) :                      //回RQ默?br />Username :                                               // 理员用户名Q如Qadmin
Password :                                                // 理员密码,如:jboss
Re-enter Password :                                  // 重复密码


理员控制台讉K

http://127.0.0.1:9990/console
如果也想在其他局域网机器上访问管理员控制収ͼ防火墙需要开攄?/span>9990Q修改standalone.xml

<interface name="management">
  <inet-address value
="${jboss.bind.address.management:127.0.0.1}"/>
</interface>


同样?27.0.0.1修改为JBoss所在机器的IP地址



IceWee 2013-02-22 17:12 发表评论
]]>
CXF+Spring+Tomcat明示?/title><link>http://www.tkk7.com/icewee/archive/2012/07/06/382399.html</link><dc:creator>IceWee</dc:creator><author>IceWee</author><pubDate>Fri, 06 Jul 2012 09:29:00 GMT</pubDate><guid>http://www.tkk7.com/icewee/archive/2012/07/06/382399.html</guid><wfw:comment>http://www.tkk7.com/icewee/comments/382399.html</wfw:comment><comments>http://www.tkk7.com/icewee/archive/2012/07/06/382399.html#Feedback</comments><slash:comments>16</slash:comments><wfw:commentRss>http://www.tkk7.com/icewee/comments/commentRss/382399.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/icewee/services/trackbacks/382399.html</trackback:ping><description><![CDATA[ 多系l(异构pȝQ进行交互时Q一U良好的方式便是调用Web ServiceQ本CZZApachel织的CXFQؓ了方便v见特服务端和客L写在同一个工E下Q实际项目中是不可能的,但是客户端却依赖于服务端的Web Service接口Q那么可以通过导出jar的方式?br /><br />环境Q?br />MyEclipse10<br />JDK6<br />Tomcat7<br />CXF2.5<br />Spring3<br /><br />CZ目l构图:<br /><img border="0" alt="" src="http://www.tkk7.com/images/blogjava_net/icewee/cxf/2012-07-06_164811.png" width="340" height="602" /><br /><br />如上图所C,全部依赖的第三方库都在lib中,下面贴出全部代码?br />IHelloService.java<br /><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /><span style="color: rgb(0, 0, 255);">package</span><span style="color: rgb(0, 0, 0);"> bing.server;<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: rgb(0, 0, 255);">import</span><span style="color: rgb(0, 0, 0);"> javax.jws.WebService;<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /><br /><img id="Codehighlighter1_52_145_Open_Image" onclick="this.style.display='none'; Codehighlighter1_52_145_Open_Text.style.display='none'; Codehighlighter1_52_145_Closed_Image.style.display='inline'; Codehighlighter1_52_145_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/Images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none;" id="Codehighlighter1_52_145_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_52_145_Closed_Text.style.display='none'; Codehighlighter1_52_145_Open_Image.style.display='inline'; Codehighlighter1_52_145_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/Images/OutliningIndicators/ContractedBlock.gif"></span><span style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);" id="Codehighlighter1_52_145_Closed_Text">/** */</span><span id="Codehighlighter1_52_145_Open_Text"><span style="color: rgb(0, 128, 0);">/**</span><span style="color: rgb(0, 128, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /> * <p><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /> * WebService接口<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /> * </p><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /> * <br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /> * </span><span style="color: rgb(128, 128, 128);">@author</span><span style="color: rgb(0, 128, 0);"> IceWee<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /> * @date 2012-7-6<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /> * </span><span style="color: rgb(128, 128, 128);">@version</span><span style="color: rgb(0, 128, 0);"> 1.0<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" /> </span><span style="color: rgb(0, 128, 0);">*/</span></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />@WebService<br /><img id="Codehighlighter1_190_237_Open_Image" onclick="this.style.display='none'; Codehighlighter1_190_237_Open_Text.style.display='none'; Codehighlighter1_190_237_Closed_Image.style.display='inline'; Codehighlighter1_190_237_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/Images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none;" id="Codehighlighter1_190_237_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_190_237_Closed_Text.style.display='none'; Codehighlighter1_190_237_Open_Image.style.display='inline'; Codehighlighter1_190_237_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/Images/OutliningIndicators/ContractedBlock.gif"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">interface</span><span style="color: rgb(0, 0, 0);"> IHelloService </span><span style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);" id="Codehighlighter1_190_237_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_190_237_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" />    </span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> String sayHello(String username);<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" />    <br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />}</span></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /></span></div><br />HelloServiceImpl.java<br /><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /><span style="color: rgb(0, 0, 255);">package</span><span style="color: rgb(0, 0, 0);"> bing.server;<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: rgb(0, 0, 255);">import</span><span style="color: rgb(0, 0, 0);"> javax.jws.WebService;<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /><br /><img id="Codehighlighter1_52_146_Open_Image" onclick="this.style.display='none'; Codehighlighter1_52_146_Open_Text.style.display='none'; Codehighlighter1_52_146_Closed_Image.style.display='inline'; Codehighlighter1_52_146_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/Images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none;" id="Codehighlighter1_52_146_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_52_146_Closed_Text.style.display='none'; Codehighlighter1_52_146_Open_Image.style.display='inline'; Codehighlighter1_52_146_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/Images/OutliningIndicators/ContractedBlock.gif"></span><span style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);" id="Codehighlighter1_52_146_Closed_Text">/** */</span><span id="Codehighlighter1_52_146_Open_Text"><span style="color: rgb(0, 128, 0);">/**</span><span style="color: rgb(0, 128, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /> * <p><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /> * WebService实现c?br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /> * </p><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /> * <br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /> * </span><span style="color: rgb(128, 128, 128);">@author</span><span style="color: rgb(0, 128, 0);"> IceWee<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /> * @date 2012-7-6<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /> * </span><span style="color: rgb(128, 128, 128);">@version</span><span style="color: rgb(0, 128, 0);"> 1.0<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" /> </span><span style="color: rgb(0, 128, 0);">*/</span></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />@WebService(endpointInterface </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">bing.server.IHelloService</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">, serviceName </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">HelloService</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)<br /><img id="Codehighlighter1_294_386_Open_Image" onclick="this.style.display='none'; Codehighlighter1_294_386_Open_Text.style.display='none'; Codehighlighter1_294_386_Closed_Image.style.display='inline'; Codehighlighter1_294_386_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/Images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none;" id="Codehighlighter1_294_386_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_294_386_Closed_Text.style.display='none'; Codehighlighter1_294_386_Open_Image.style.display='inline'; Codehighlighter1_294_386_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/Images/OutliningIndicators/ContractedBlock.gif"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);"> HelloServiceImpl </span><span style="color: rgb(0, 0, 255);">implements</span><span style="color: rgb(0, 0, 0);"> IHelloService </span><span style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);" id="Codehighlighter1_294_386_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_294_386_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" />    @Override<br /><img id="Codehighlighter1_349_383_Open_Image" onclick="this.style.display='none'; Codehighlighter1_349_383_Open_Text.style.display='none'; Codehighlighter1_349_383_Closed_Image.style.display='inline'; Codehighlighter1_349_383_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none;" id="Codehighlighter1_349_383_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_349_383_Closed_Text.style.display='none'; Codehighlighter1_349_383_Open_Image.style.display='inline'; Codehighlighter1_349_383_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/Images/OutliningIndicators/ContractedSubBlock.gif">    </span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> String sayHello(String username) </span><span style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);" id="Codehighlighter1_349_383_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_349_383_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">hello, </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> username;<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />}</span></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /></span></div><br />HelloServiceClient.java<br /><span id="Codehighlighter1_294_386_Open_Text"><span style="color: rgb(0, 0, 0);"><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /><span style="color: rgb(0, 0, 255);">package</span><span style="color: rgb(0, 0, 0);"> bing.client;<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: rgb(0, 0, 255);">import</span><span style="color: rgb(0, 0, 0);"> org.springframework.context.ApplicationContext;<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: rgb(0, 0, 255);">import</span><span style="color: rgb(0, 0, 0);"> org.springframework.context.support.ClassPathXmlApplicationContext;<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: rgb(0, 0, 255);">import</span><span style="color: rgb(0, 0, 0);"> bing.server.IHelloService;<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /><br /><img id="Codehighlighter1_188_286_Open_Image" onclick="this.style.display='none'; Codehighlighter1_188_286_Open_Text.style.display='none'; Codehighlighter1_188_286_Closed_Image.style.display='inline'; Codehighlighter1_188_286_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/Images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none;" id="Codehighlighter1_188_286_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_188_286_Closed_Text.style.display='none'; Codehighlighter1_188_286_Open_Image.style.display='inline'; Codehighlighter1_188_286_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/Images/OutliningIndicators/ContractedBlock.gif"></span><span style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);" id="Codehighlighter1_188_286_Closed_Text">/** */</span><span id="Codehighlighter1_188_286_Open_Text"><span style="color: rgb(0, 128, 0);">/**</span><span style="color: rgb(0, 128, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /> * <p><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /> * WebService调用?客户?br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /> * </p><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /> * <br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /> * </span><span style="color: rgb(128, 128, 128);">@author</span><span style="color: rgb(0, 128, 0);"> IceWee<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /> * @date 2012-7-6<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /> * </span><span style="color: rgb(128, 128, 128);">@version</span><span style="color: rgb(0, 128, 0);"> 1.0<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" /> </span><span style="color: rgb(0, 128, 0);">*/</span></span><span style="color: rgb(0, 0, 0);"><br /><img id="Codehighlighter1_320_627_Open_Image" onclick="this.style.display='none'; Codehighlighter1_320_627_Open_Text.style.display='none'; Codehighlighter1_320_627_Closed_Image.style.display='inline'; Codehighlighter1_320_627_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/Images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none;" id="Codehighlighter1_320_627_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_320_627_Closed_Text.style.display='none'; Codehighlighter1_320_627_Open_Image.style.display='inline'; Codehighlighter1_320_627_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/Images/OutliningIndicators/ContractedBlock.gif"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);"> HelloServiceClient </span><span style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);" id="Codehighlighter1_320_627_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_320_627_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /><br /><img id="Codehighlighter1_363_624_Open_Image" onclick="this.style.display='none'; Codehighlighter1_363_624_Open_Text.style.display='none'; Codehighlighter1_363_624_Closed_Image.style.display='inline'; Codehighlighter1_363_624_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none;" id="Codehighlighter1_363_624_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_363_624_Closed_Text.style.display='none'; Codehighlighter1_363_624_Open_Image.style.display='inline'; Codehighlighter1_363_624_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/Images/OutliningIndicators/ContractedSubBlock.gif">    </span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">static</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);"> main(String[] args) </span><span style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);" id="Codehighlighter1_363_624_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_363_624_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" />        ApplicationContext context </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);"> ClassPathXmlApplicationContext(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">applicationContext-client.xml</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" />        IHelloService helloService </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> (IHelloService) context.getBean(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">client</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" />        String response </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> helloService.sayHello(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Peter</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" />        System.out.println(response);<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/InBlock.gif" alt="" /><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />}</span></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /></span></div></span></span><br />applicationContext-server.xml<br /><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /><span style="color: rgb(0, 0, 255);"><?</span><span style="color: rgb(255, 0, 255);">xml version="1.0" encoding="UTF-8"</span><span style="color: rgb(0, 0, 255);">?></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">beans </span><span style="color: rgb(255, 0, 0);">xmlns</span><span style="color: rgb(0, 0, 255);">="http://www.springframework.org/schema/beans"</span><span style="color: rgb(255, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    xmlns:xsi</span><span style="color: rgb(0, 0, 255);">="http://www.w3.org/2001/XMLSchema-instance"</span><span style="color: rgb(255, 0, 0);"> <br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    xmlns:jaxws</span><span style="color: rgb(0, 0, 255);">="http://cxf.apache.org/jaxws"</span><span style="color: rgb(255, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    xsi:schemaLocation</span><span style="color: rgb(0, 0, 255);">="http://www.springframework.org/schema/beans<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />                       http://www.springframework.org/schema/beans/spring-beans.xsd<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />                       http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: rgb(0, 128, 0);"><!--</span><span style="color: rgb(0, 128, 0);"> <br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />        ***注意*** <br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />        手动d的内容:<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />        xmlns:jaxws="http://cxf.apache.org/jaxws"<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />        http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />     </span><span style="color: rgb(0, 128, 0);">--></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    <br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">import </span><span style="color: rgb(255, 0, 0);">resource</span><span style="color: rgb(0, 0, 255);">="classpath:META-INF/cxf/cxf.xml"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">import </span><span style="color: rgb(255, 0, 0);">resource</span><span style="color: rgb(0, 0, 255);">="classpath:META-INF/cxf/cxf-extension-soap.xml"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">import </span><span style="color: rgb(255, 0, 0);">resource</span><span style="color: rgb(0, 0, 255);">="classpath:META-INF/cxf/cxf-servlet.xml"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">jaxws:endpoint </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">="helloService"</span><span style="color: rgb(255, 0, 0);"> implementor</span><span style="color: rgb(0, 0, 255);">="bing.server.HelloServiceImpl"</span><span style="color: rgb(255, 0, 0);"> address</span><span style="color: rgb(0, 0, 255);">="/helloService"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />        <br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">beans</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /></span></div><br />applicationContext-client.xml<br /><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /><span style="color: rgb(0, 0, 255);"><?</span><span style="color: rgb(255, 0, 255);">xml version="1.0" encoding="UTF-8"</span><span style="color: rgb(0, 0, 255);">?></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">beans </span><span style="color: rgb(255, 0, 0);">xmlns</span><span style="color: rgb(0, 0, 255);">="http://www.springframework.org/schema/beans"</span><span style="color: rgb(255, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    xmlns:xsi</span><span style="color: rgb(0, 0, 255);">="http://www.w3.org/2001/XMLSchema-instance"</span><span style="color: rgb(255, 0, 0);"> <br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    xmlns:jaxws</span><span style="color: rgb(0, 0, 255);">="http://cxf.apache.org/jaxws"</span><span style="color: rgb(255, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    xsi:schemaLocation</span><span style="color: rgb(0, 0, 255);">="http://www.springframework.org/schema/beans<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />                       http://www.springframework.org/schema/beans/spring-beans.xsd<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />                       http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: rgb(0, 128, 0);"><!--</span><span style="color: rgb(0, 128, 0);"> <br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />        ***注意*** <br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />        手动d的内容:<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />        xmlns:jaxws="http://cxf.apache.org/jaxws"<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />        http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"<br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />     </span><span style="color: rgb(0, 128, 0);">--></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    <br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">import </span><span style="color: rgb(255, 0, 0);">resource</span><span style="color: rgb(0, 0, 255);">="classpath:META-INF/cxf/cxf.xml"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">import </span><span style="color: rgb(255, 0, 0);">resource</span><span style="color: rgb(0, 0, 255);">="classpath:META-INF/cxf/cxf-extension-soap.xml"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">import </span><span style="color: rgb(255, 0, 0);">resource</span><span style="color: rgb(0, 0, 255);">="classpath:META-INF/cxf/cxf-servlet.xml"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">bean </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">="client"</span><span style="color: rgb(255, 0, 0);"> class</span><span style="color: rgb(0, 0, 255);">="bing.server.IHelloService"</span><span style="color: rgb(255, 0, 0);"> factory-bean</span><span style="color: rgb(0, 0, 255);">="clientFactory"</span><span style="color: rgb(255, 0, 0);"> factory-method</span><span style="color: rgb(0, 0, 255);">="create"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">bean </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">="clientFactory"</span><span style="color: rgb(255, 0, 0);"> class</span><span style="color: rgb(0, 0, 255);">="org.apache.cxf.jaxws.JaxWsProxyFactoryBean"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="serviceClass"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="bing.server.IHelloService"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="address"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="http://localhost:8080/CXFDemo/ws/helloService"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">bean</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">beans</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /></span></div><br />web.xml<br /><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /><span style="color: rgb(0, 0, 255);"><?</span><span style="color: rgb(255, 0, 255);">xml version="1.0" encoding="UTF-8"</span><span style="color: rgb(0, 0, 255);">?></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">web-app </span><span style="color: rgb(255, 0, 0);">version</span><span style="color: rgb(0, 0, 255);">="3.0"</span><span style="color: rgb(255, 0, 0);"> <br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    xmlns</span><span style="color: rgb(0, 0, 255);">="http://java.sun.com/xml/ns/javaee"</span><span style="color: rgb(255, 0, 0);"> <br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    xmlns:xsi</span><span style="color: rgb(0, 0, 255);">="http://www.w3.org/2001/XMLSchema-instance"</span><span style="color: rgb(255, 0, 0);"> <br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    xsi:schemaLocation</span><span style="color: rgb(0, 0, 255);">="http://java.sun.com/xml/ns/javaee <br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />  </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">display-name</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">CXFDemo</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">display-name</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />  <br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />  </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">context-param</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />      </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">param-name</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">contextConfigLocation</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">param-name</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />      </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">param-value</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">classpath:applicationContext-server.xml</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">param-value</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />  </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">context-param</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /> <br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />  </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">listener</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">listener-class</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">org.springframework.web.context.ContextLoaderListener</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">listener-class</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />  </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">listener</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />  <br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />  </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">servlet</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">servlet-name</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">CXFServlet</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">servlet-name</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">display-name</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">CXFServlet</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">display-name</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">servlet-class</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">org.apache.cxf.transport.servlet.CXFServlet</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">servlet-class</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">load-on-startup</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">load-on-startup</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />  </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">servlet</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />  </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">servlet-mapping</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">servlet-name</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">CXFServlet</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">servlet-name</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">url-pattern</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">/ws/*</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">url-pattern</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />  </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">servlet-mapping</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />  </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">welcome-file-list</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">welcome-file</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">index.jsp</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">welcome-file</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" />  </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">welcome-file-list</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">web-app</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" alt="" /></span></div><br />所有项目都已配|完成,可以发布到Tomcat了,在浏览器中输入:<a href="http://localhost:8080/CXFDemo/ws">http://localhost:8080/CXFDemo/ws</a>Q返回如图:<br /><img border="0" alt="" src="http://www.tkk7.com/images/blogjava_net/icewee/cxf/2012-07-06_170337.png" width="735" height="427" /><br /><br />从上图中可以看到我们对外发布的WebService接口Q点击蓝色超链接Q返回如图:<br /><img border="0" alt="" src="http://www.tkk7.com/images/blogjava_net/icewee/cxf/2012-07-06_170411.png" /><br />到此Q证明我们的Web Service已经发布成功Q可以进行调用测试了。运行HelloServiceClientQ返回如图:<br /><img border="0" alt="" src="http://www.tkk7.com/images/blogjava_net/icewee/cxf/2012-07-06_170754.png" /><br /><br />全文完!<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><img src ="http://www.tkk7.com/icewee/aggbug/382399.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/icewee/" target="_blank">IceWee</a> 2012-07-06 17:29 <a href="http://www.tkk7.com/icewee/archive/2012/07/06/382399.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>几款JQuery实现的右键菜单插?/title><link>http://www.tkk7.com/icewee/archive/2011/05/01/353195.html</link><dc:creator>IceWee</dc:creator><author>IceWee</author><pubDate>Sun, 01 May 2011 08:49:00 GMT</pubDate><guid>http://www.tkk7.com/icewee/archive/2011/05/01/353195.html</guid><wfw:comment>http://www.tkk7.com/icewee/comments/353195.html</wfw:comment><comments>http://www.tkk7.com/icewee/archive/2011/05/01/353195.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/icewee/comments/commentRss/353195.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/icewee/services/trackbacks/353195.html</trackback:ping><description><![CDATA[<span style="font-family: Tahoma; font-size: 12pt;"> </span><p><span style="font-family: Tahoma; font-size: 12pt;">在网中使用自定义右键菜单,实现上皆Z用javascript用览器默认的右键菜单Q然后在|页中响应鼠标右键事Ӟ弹出自定义的菜单?/span></p> <p><span style="font-family: Tahoma; font-size: 12pt;">cM右键菜单的组件网上很多。一般而言Q改变浏览器的默认菜单应当慎用,q会使多数用hC习惯。但是在企业Web应用中,用户的用环境更加可控,在这U应用中使用自定义右键菜单会更加适合?/span></p> <p><span style="font-family: Tahoma; font-size: 12pt;">以下列D几款比较成熟的jQuery右键菜单插gQ我们将逐一介绍Q请读者自行比较,q根据自q需求选择?/span></p> <p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 14px;"><a class="cnblogs_code" onclick="window.open('http://team.verytao.net/%e5%87%a0%e6%ac%bejquery%e5%8f%b3%e9%94%ae%e8%8f%9c%e5%8d%95%e6%8f%92%e4%bb%b6%e4%bb%8b%e7%bb%8d/','几款JQuery右键菜单插g介绍','scrollbars=yes,resizable=yes,width=1024,height=768,left=0,top=0');return false;" target="_blank"><span style="font-family: Tahoma; font-size: 12pt;">?/span>文直通R</a><br /></span></p> <img src ="http://www.tkk7.com/icewee/aggbug/353195.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/icewee/" target="_blank">IceWee</a> 2011-05-01 16:49 <a href="http://www.tkk7.com/icewee/archive/2011/05/01/353195.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>C#操作wordȝhttp://www.tkk7.com/icewee/archive/2011/04/16/353222.htmlIceWeeIceWeeSat, 16 Apr 2011 05:38:00 GMThttp://www.tkk7.com/icewee/archive/2011/04/16/353222.htmlhttp://www.tkk7.com/icewee/comments/353222.htmlhttp://www.tkk7.com/icewee/archive/2011/04/16/353222.html#Feedback0http://www.tkk7.com/icewee/comments/commentRss/353222.htmlhttp://www.tkk7.com/icewee/services/trackbacks/353222.html最q有个小目中自p责word报表的生成,开发语a是C#Q我是做JAVA的,临时用一下而已。发现微软的在线MSDN是个好东西,很强大,基本需要的东西都在里面可以扑ֈQ比如word的创建、打开、关闭等{一pd的操作DEMO代码?/span>

我主要是现有的模板填入数据保存文档卛_。主题是TABLE填|索TABLE主要是通过下标Q如Q?/span>

WordDoc.Tables[6]

其中WordDoc的类型是Word.DocumentQ就是当前操作的word文Q上面的代码是获取当前文中的第六个表格Q这里要注意一下, 我们惯性会认ؓ是第七个表格Q但q就是微软的不同Q没有采用数l烦引的方式Q如果当初数l也q么设计Q下标从1开始,我们学习的时候不知道省多事?/span>

开发过E中遇到了一个小N是合ƈ单元|U向Q,没有设计横向的合qӞ现将合ƈ的代码脓出来备用Q?/span>

/// <summary>
/// U向单元格合q?nbsp;
/// 说明Q如合ƈ了第一行第一列和W二行第一列两个单元格Q则单元格cell(2, 1)已经不存在,l箋操作会有异常Q?nbsp;
/// 只有通过cell(1, 1)来获取合q后的单元格 
/// /<summary>
/// <param name="table"></param>
/// <param name="startRowIndex"></param>
/// <param name="columnIndex"></param>

private static void verticalCellMerge(Word.Table table, int startRowIndex, int columnIndex)
{    
    
string previousText = table.Cell(startRowIndex++, columnIndex).Range.Text;    // 保存Ҏ文字    
    int previousRowIndex = startRowIndex - 1;    // 因刚已经+1了,所以再减回?nbsp;   
    for (int i = startRowIndex; i <= table.Rows.Count; ++i) // 遍历所有行的columnIndex列,发现相同的合qӞ从v始行的下一行开始对?nbsp;   
    {        
        
string currentText = table.Cell(i, columnIndex).Range.Text;        
        
if (previousText.Equals(currentText))        
        
{            
            table.Cell(previousRowIndex, columnIndex).Merge(table.Cell(i, columnIndex)); 
// 合ƈ先前单元格和当前单元?nbsp;           
            table.Cell(previousRowIndex, columnIndex).Range.Text = currentText;    // 因ؓ合ƈ后ƈ没有单元格内容去除Q需要手动修?nbsp;           
            table.Cell(previousRowIndex, columnIndex).Select();            
            WordApp.Selection.ParagraphFormat.Alignment 
= WdParagraphAlignment.wdAlignParagraphCenter;    // 水^居中昄            
            table.Cell(previousRowIndex, columnIndex).VerticalAlignment = Word.WdCellVerticalAlignment.wdCellAlignVerticalCenter; // 垂直居中        
        }
        
        
else        
        
{            
            previousText 
= currentText; // 对比文字替换ؓ当前的内?nbsp;           
            previousRowIndex = i;   // 索到不同的内容,当前行下标|ؓ先前行下标,用于合ƈ        
        }
    
    }

}


/// <summary>
/// 横向单元格合q?br />/// 注意Q在合ƈ单元格后必须纵列数减去1
/// 如第一行第一列和W一行第二列合ƈ后,原第一行第三列变成第一行第二列Q这是在合q后i不加1的原?br />/// </summary>
/// <param name="WordApp"></param>
/// <param name="table"></param>
/// <param name="startColumnIndex"></param>
/// <param name="rowIndex"></param>

private static void horizontalCellMerge(Word.Application WordApp, Word.Table table, int startColumnIndex, int rowIndex)
{    
    
string previousText = table.Cell(rowIndex, startColumnIndex).Range.Text;    // 保存Ҏ文字    
    int previousColumnIndex = startColumnIndex++;    // 保存先前Ҏ列下?nbsp;   
    int colCount = table.Columns.Count;    
    
for (int i = startColumnIndex; i <= colCount;) // 遍历所有行的columnIndex列,发现相同的合qӞ从v始行的下一行开始对?nbsp;   
    {        
        
string currentText = table.Cell(rowIndex, i).Range.Text;        
        
if (previousText.Equals(currentText))        
        
{            
            table.Cell(rowIndex, previousColumnIndex).Merge(table.Cell(rowIndex, i)); 
// 合ƈ先前单元格和当前单元?nbsp;           
            table.Cell(rowIndex, previousColumnIndex).Range.Text = currentText;    // 因ؓ合ƈ后ƈ没有单元格内容去除Q需要手动修?nbsp;           
            table.Cell(rowIndex, previousColumnIndex).Select();            
            WordApp.Selection.ParagraphFormat.Alignment 
= WdParagraphAlignment.wdAlignParagraphCenter;    // 水^居中昄            
            table.Cell(rowIndex, previousColumnIndex).VerticalAlignment = Word.WdCellVerticalAlignment.wdCellAlignVerticalCenter; // 垂直居中            
            --colCount;        
        }
        
        
else        
        
{            
            previousText 
= currentText; // 对比文字替换ؓ当前的内?nbsp;           
            previousColumnIndex = i++;   // 索到不同的内容,当前行下标|ؓ先前行下标,用于合ƈ        
        }
    
    }

}

Ҏ注释已经很详l就不再赘述?/span>

最后遇到的问题是无格式的段落检索,因ؓ在生成报告的时候需要在某些D落后填写测试的l论Q这下又把我难住了,最l终于发Cbookmarkq个东东Qv始我对wordq不熟悉Q都不知道它有书{功能。顺便就׃个检索书{Ҏ贴出来:

/// <summary>
/// 在整个文档中Ҏ书签名检索书{֯?br />/// </summary>
/// <param name="name"></param>

private static Word.Bookmark getBookmarkByName(string name)  
{      
    
foreach (Word.Bookmark bm in WordDoc.Bookmarks)      
    
{          
        
if (bm.Name.Equals(name))              
            
return bm;          
        }
          
        
return null;      
    }
  
?/span>


例:

Word.Bookmark bm = getBookmarkByName(bookmarkName);  
bm.Range.Text 
= "你好"// 检索到书签的内Ҏ换ؓ“你好”

q就是这ơ用C#做word报表的全部问题,貌似都是问题?/span>

最后需要看具体的word操作demo代码误问MSDNQ脓个网址Q?/span>

http://msdn.microsoft.com/zh-cn/library/78whx7s6(VS.80).aspx



IceWee 2011-04-16 13:38 发表评论
]]>
Adobe Photoshop CS4打开囄错位Q出现横竖的条纹、拉?/title><link>http://www.tkk7.com/icewee/archive/2011/04/16/353224.html</link><dc:creator>IceWee</dc:creator><author>IceWee</author><pubDate>Sat, 16 Apr 2011 05:29:00 GMT</pubDate><guid>http://www.tkk7.com/icewee/archive/2011/04/16/353224.html</guid><wfw:comment>http://www.tkk7.com/icewee/comments/353224.html</wfw:comment><comments>http://www.tkk7.com/icewee/archive/2011/04/16/353224.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/icewee/comments/commentRss/353224.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/icewee/services/trackbacks/353224.html</trackback:ping><description><![CDATA[ <span style="font-size: 12pt;"> </span><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;">我的电脑上安装的Adobe Photoshop CS4l色版,压羃文g?0多MQ比安装版小?0倍,最q打开囄发现变成如下样子了? </span> <p><span style="font-family: tahoma,arial,helvetica,sans-serif;"><img border="0" alt="" src="http://www.tkk7.com/images/blogjava_net/icewee/ps/1.jpg" width="856" height="536" /></span></p> <p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;">~小可能会变成这?/span></p> <p><span style="font-family: tahoma,arial,helvetica,sans-serif;"><img border="0" alt="" src="http://www.tkk7.com/images/blogjava_net/icewee/ps/2.png" width="401" height="251" /></span></p> <p><span style="font-family: tahoma,arial,helvetica,sans-serif;"><img border="0" alt="" src="http://www.tkk7.com/images/blogjava_net/icewee/ps/3.png" width="440" height="276" /></span></p> <p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;"><br />以前用的好好的,最q也没用它,怎么变成q个样子了,最后终于在|络上找到解x法,害的我下了一?00多M的安装版Q安装完成后发现q是一P早看到解x法就好了Q?br /></span></p> <p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;">原文引用Q?/span></p> <p><span style="font-family: tahoma,arial,helvetica,sans-serif;"> </span><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;"><strong>1、打开Photoshop CS4Q呵呵,废话哈! </strong></span></p> <p><span style="font-family: tahoma,arial,helvetica,sans-serif;"><strong><img border="0" alt="" src="http://www.tkk7.com/images/blogjava_net/icewee/ps/4.png" width="790" height="478" /></strong></span></p> <p align="left"><span style="font-family: tahoma,arial,helvetica,sans-serif;"><strong><br /></strong></span><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;"><strong>2、找到Preferences -> Performance -> LEnable OpenGL Drawing选中?/strong></span></p> <p><br /><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;"> 看来作者是用的英文版,中文版如下:</span></p> <p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;">~辑->首选项->性能Q弹出窗口如下:</span></p> <span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;"> 看到右侧的复选框了吗Q启用Op</span><span style="font-family: tahoma,arial,helvetica,sans-serif;">enGLl图(D)Q只要把勑֎掉就好了?/span> <img src ="http://www.tkk7.com/icewee/aggbug/353224.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/icewee/" target="_blank">IceWee</a> 2011-04-16 13:29 <a href="http://www.tkk7.com/icewee/archive/2011/04/16/353224.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>独立昑֍没有信号输出http://www.tkk7.com/icewee/archive/2011/04/16/353225.htmlIceWeeIceWeeSat, 16 Apr 2011 05:24:00 GMThttp://www.tkk7.com/icewee/archive/2011/04/16/353225.htmlhttp://www.tkk7.com/icewee/comments/353225.htmlhttp://www.tkk7.com/icewee/archive/2011/04/16/353225.html#Feedback0http://www.tkk7.com/icewee/comments/commentRss/353225.htmlhttp://www.tkk7.com/icewee/services/trackbacks/353225.html前不久在昄器公司工作的哥们送了两块讯景的显卡,用上了独立显卡就是比集成昑֍爽,玩极品飞车可以把画面调节得更加细腻,而且不卡Q钱花到q是有好处的啊,不过俺是借了哥们的光了?/span>

今晚下班回家开机,发现昄器指C灯亮着Q主机启动了Q但是没有信可出,我第一反应是显卡坏了,因ؓ朋友l我的显卡都是有问题l过l修后的Qƈ? 是新卡。当前插在电脑上的是8500GTQ于是我有把7300GTM出来换上Q开机,依旧无信可出,晕了。。。再显C器插到集成插槽里,可以昄? 7300q没有坏啊!Q怎么回事Q一神搜,什么在BIOS里设|,Ҏ׃是,默认插上独显后集昑ְ不工作的。于是关机,拔电源,拆机Q内存拔掉,昑֍ 拔掉Q找块纸分别擦擦内存条的金手指和昑֍的金手指。插上内存,插上昑֍Q开机,“嘟嘟嘟。。。嘟嘟嘟”报警了。。。。l拆Ql拔Q最后发现是因ؓ? 存条没有插紧D开机报警,内存条那个热啊,烫手都,最后安装完毕后Q开机,perfectQ一切恢复到从前?/span>样子了?/span>



IceWee 2011-04-16 13:24 发表评论
]]>
【分享】在U生成ajax{待GIF囄的网?/title><link>http://www.tkk7.com/icewee/archive/2011/04/16/353226.html</link><dc:creator>IceWee</dc:creator><author>IceWee</author><pubDate>Sat, 16 Apr 2011 05:22:00 GMT</pubDate><guid>http://www.tkk7.com/icewee/archive/2011/04/16/353226.html</guid><wfw:comment>http://www.tkk7.com/icewee/comments/353226.html</wfw:comment><comments>http://www.tkk7.com/icewee/archive/2011/04/16/353226.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.tkk7.com/icewee/comments/commentRss/353226.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/icewee/services/trackbacks/353226.html</trackback:ping><description><![CDATA[ <span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;">|站或者系l开发常免不了用ajaxQ但׃|络或其他原因难免造成操作{待Q一个好看的{待囄l对提高次Q偶然撞到的q个|站Q我正打在|上搜点cM的图片呢Q没惛_可以生了,真是不错Q?/span> <div class="fz7bt13" id="blog_text" class="cnt"> <p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;">地址Q?a ><span style="font-size: 12pt;">http://ajaxload.info/</span></a></span></p> <p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;">可以自定义前景和背景Ԍ以及是否背景透明</span></p> </div> <img src ="http://www.tkk7.com/icewee/aggbug/353226.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/icewee/" target="_blank">IceWee</a> 2011-04-16 13:22 <a href="http://www.tkk7.com/icewee/archive/2011/04/16/353226.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>q接到localhost提示Q位于XDB的服务器localhost要求用户名和密码http://www.tkk7.com/icewee/archive/2011/04/16/353228.htmlIceWeeIceWeeSat, 16 Apr 2011 05:17:00 GMThttp://www.tkk7.com/icewee/archive/2011/04/16/353228.htmlhttp://www.tkk7.com/icewee/comments/353228.htmlhttp://www.tkk7.com/icewee/archive/2011/04/16/353228.html#Feedback0http://www.tkk7.com/icewee/comments/commentRss/353228.htmlhttp://www.tkk7.com/icewee/services/trackbacks/353228.htmlq接到localhost 提示Q位?XDB 的服务器 localhost 要求用户名和密码

机器上装了Tomcat6.0.18和Oracle10gQ单独启动Tomcat6.0Q输?a href="http://localhost:8080/">http://localhost:8080可以到TomcatƢ迎c而启动Oracle的有兛_L务后Q再输入http://localhost:8080弹Z对话框如图:



产生原因Q?080端口被其他服务占?/span>
解决ҎQ?/span>
1、更改Tomcat的端口,q个比较单。其Ҏ如下Q?/span>
(1)、在Tomcat安装根目录下的字文g夹conf中找到文件server.xml
(2)、将其用C本程序打开Q找到这D|字:
    

<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector port="8080" maxHttpHeaderSize="8192"
                    maxThreads
="150" minSpareThreads="25" maxSpareThreads="75" 
                    enableLookups
="false" redirectPort="8443" acceptCount="100" 
                    connectionTimeout
="20000" disableUploadTimeout="true" />

 以上代码中的Connector port="8080"中的8080更改?088卛_Q重新启动TomcatQ?a href="http://localhost:8088/">http://localhost:8088dQ发现问题已解决?/span>


2?用Oracle服务。在“计算机管?#8221;中的“服务”中找到OracleServiceORCLQ停止掉OK了。但是这q不是一U好的解x法,因ؓ很多时候我们是同时需要用到Tomcat和Oracle两种服务的?/span>


文章出处Q?a >http://www.diybl.com/course/3_program/java/javashl/2008913/142707.html



IceWee 2011-04-16 13:17 发表评论
]]>
实现tomcat做服务器在windows\linux下开动运?/title><link>http://www.tkk7.com/icewee/archive/2011/04/16/353229.html</link><dc:creator>IceWee</dc:creator><author>IceWee</author><pubDate>Sat, 16 Apr 2011 05:14:00 GMT</pubDate><guid>http://www.tkk7.com/icewee/archive/2011/04/16/353229.html</guid><wfw:comment>http://www.tkk7.com/icewee/comments/353229.html</wfw:comment><comments>http://www.tkk7.com/icewee/archive/2011/04/16/353229.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/icewee/comments/commentRss/353229.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/icewee/services/trackbacks/353229.html</trackback:ping><description><![CDATA[<span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt">Tomcat做服务器在windows下开动运?</span> <p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt">免安装版本的tomcat,要徏立环境变?</span><br /><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt">要有JAVA_HOME变量是你是JDK安装目录 </span><br /><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt">要有JRE_HOME变量 是你的JRE安装目录</span></p> <p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt">新徏变量:CATALINA_HOME=你的TOMCAT的目?/span></p> <p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt">在PATH变量最后加? ;%CATALINA_HOME%\bin</span></p> <p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt">q行 CMD </span><br /><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt">?CMD 下运?service.bat install </span><br /><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt">然后q行 service.msc 扑ֈApache Tomcat..... 修改它的q行U别p?/span></p> <p><br /><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt">linux:讄tomcat开动启?/span></p> <p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt">linux:讄tomcat开动启?/span><br /><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt">    分公司的一台服务器Q重新启动后Q老是忘记启动tomcat, 开发的同事要求讄为开动启动,感觉很简单,但还是花了点旉修改才完成?/span><br /><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt"> 参考了|上的几个帖子,但都不是很适合要求Q还是要自己修改一下,大概如下<span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 14px"></span></p> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #000000">Q?br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />[root</span><span style="color: #800080">@appsit</span><span style="color: #000000"> init</span><span style="color: #000000">.</span><span style="color: #000000">d]</span><span style="color: #008000">#</span><span style="color: #008000"> pwd</span><span style="color: #008000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">/</span><span style="color: #000000">etc</span><span style="color: #000000">/</span><span style="color: #000000">init</span><span style="color: #000000">.</span><span style="color: #000000">d<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />[root</span><span style="color: #800080">@appsit</span><span style="color: #000000"> init</span><span style="color: #000000">.</span><span style="color: #000000">d]</span><span style="color: #008000">#</span><span style="color: #008000"> cat tomcatd <br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />#!/bin/sh<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /># chkconfig: 345 99 10<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /># description: Auto-starts tomcat<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /># /etc/init.d/tomcatd<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /># Tomcat auto-start<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /># Source function library.</span><span style="color: #008000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">.</span><span style="color: #000000"> </span><span style="color: #000000">/</span><span style="color: #000000">etc</span><span style="color: #000000">/</span><span style="color: #000000">init</span><span style="color: #000000">.</span><span style="color: #000000">d</span><span style="color: #000000">/</span><span style="color: #000000">functions<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #008000">#</span><span style="color: #008000"> source networking configuration.</span><span style="color: #008000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">.</span><span style="color: #000000"> </span><span style="color: #000000">/</span><span style="color: #000000">etc</span><span style="color: #000000">/</span><span style="color: #000000">sysconfig</span><span style="color: #000000">/</span><span style="color: #000000">network<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />RETVAL</span><span style="color: #000000">=</span><span style="color: #800000">0</span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #008000">#</span><span style="color: #008000"> CATALINA_HOME="/usr/apps/apache/tomcat/jakarta-tomcat-4.0.4"</span><span style="color: #008000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">export JAVA_HOME</span><span style="color: #000000">=/</span><span style="color: #000000">tomcat</span><span style="color: #000000">/</span><span style="color: #000000">java</span><span style="color: #000000">/</span><span style="color: #000000">jdk1</span><span style="color: #000000">.</span><span style="color: #800000">5</span><span style="color: #000000">.</span><span style="color: #000000">0_09<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />export CATALINA_HOME</span><span style="color: #000000">=/</span><span style="color: #000000">tomcat</span><span style="color: #000000">/</span><span style="color: #000000">tomcat</span><span style="color: #000000">/</span><span style="color: #000000">apache</span><span style="color: #000000">-</span><span style="color: #000000">tomcat</span><span style="color: #000000">-</span><span style="color: #800000">5.5</span><span style="color: #000000">.</span><span style="color: #800000">20</span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />export CATALINA_BASE</span><span style="color: #000000">=/</span><span style="color: #000000">tomcat</span><span style="color: #000000">/</span><span style="color: #000000">tomcat</span><span style="color: #000000">/</span><span style="color: #000000">apache</span><span style="color: #000000">-</span><span style="color: #000000">tomcat</span><span style="color: #000000">-</span><span style="color: #800000">5.5</span><span style="color: #000000">.</span><span style="color: #800000">20</span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />TOMCATUSER</span><span style="color: #000000">=</span><span style="color: #000000">tomcat<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />start()<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />{<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #0000ff">if</span><span style="color: #000000"> [ </span><span style="color: #000000">-</span><span style="color: #000000">f </span><span style="color: #800080">$CATALINA_HOME</span><span style="color: #000000">/</span><span style="color: #000000">bin</span><span style="color: #000000">/</span><span style="color: #000000">startup</span><span style="color: #000000">.</span><span style="color: #000000">sh ];<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />          then<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            echo $</span><span style="color: #000000; font-weight: bold">"</span><span style="color: #000000; font-weight: bold">Starting Tomcat</span><span style="color: #000000; font-weight: bold">"</span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #000000">/</span><span style="color: #000000">bin</span><span style="color: #000000">/</span><span style="color: #000000">su </span><span style="color: #800080">$TOMCATUSER</span><span style="color: #000000"> </span><span style="color: #000000">-</span><span style="color: #000000">c </span><span style="color: #800080">$CATALINA_HOME</span><span style="color: #000000">/</span><span style="color: #000000">bin</span><span style="color: #000000">/</span><span style="color: #000000">startup</span><span style="color: #000000">.</span><span style="color: #000000">sh<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            RETVAL</span><span style="color: #000000">=</span><span style="color: #000000">$</span><span style="color: #000000">?</span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            echo </span><span style="color: #000000; font-weight: bold">"</span><span style="color: #000000; font-weight: bold"> OK</span><span style="color: #000000; font-weight: bold">"</span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800080">$RETVAL</span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        fi<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />}<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />stop()<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />{<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #0000ff">if</span><span style="color: #000000"> [ </span><span style="color: #000000">-</span><span style="color: #000000">f </span><span style="color: #800080">$CATALINA_HOME</span><span style="color: #000000">/</span><span style="color: #000000">bin</span><span style="color: #000000">/</span><span style="color: #0000ff">shutdown</span><span style="color: #000000">.</span><span style="color: #000000">sh ];<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />          then<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            echo $</span><span style="color: #000000; font-weight: bold">"</span><span style="color: #000000; font-weight: bold">Stopping Tomcat</span><span style="color: #000000; font-weight: bold">"</span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #000000">/</span><span style="color: #000000">bin</span><span style="color: #000000">/</span><span style="color: #000000">su </span><span style="color: #800080">$TOMCATUSER</span><span style="color: #000000"> </span><span style="color: #000000">-</span><span style="color: #000000">c </span><span style="color: #800080">$CATALINA_HOME</span><span style="color: #000000">/</span><span style="color: #000000">bin</span><span style="color: #000000">/</span><span style="color: #0000ff">shutdown</span><span style="color: #000000">.</span><span style="color: #000000">sh<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            RETVAL</span><span style="color: #000000">=</span><span style="color: #000000">$</span><span style="color: #000000">?</span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #0000ff">sleep</span><span style="color: #000000"> </span><span style="color: #800000">1</span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            ps </span><span style="color: #000000">-</span><span style="color: #000000">fwwu tomcat </span><span style="color: #000000">|</span><span style="color: #000000"> </span><span style="color: #0000ff">grep</span><span style="color: #000000"> apache</span><span style="color: #000000">-</span><span style="color: #000000">tomcat</span><span style="color: #000000">|</span><span style="color: #0000ff">grep</span><span style="color: #000000"> </span><span style="color: #000000">-</span><span style="color: #000000">v </span><span style="color: #0000ff">grep</span><span style="color: #000000"> </span><span style="color: #000000">|</span><span style="color: #000000"> </span><span style="color: #0000ff">grep</span><span style="color: #000000"> </span><span style="color: #000000">-</span><span style="color: #000000">v PID </span><span style="color: #000000">|</span><span style="color: #000000"> awk </span><span style="color: #000000; font-weight: bold">'</span><span style="color: #000000; font-weight: bold">{print $2}</span><span style="color: #000000; font-weight: bold">'</span><span style="color: #000000">|</span><span style="color: #000000">xargs </span><span style="color: #0000ff">kill</span><span style="color: #000000"> </span><span style="color: #000000">-</span><span style="color: #800000">9</span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            echo </span><span style="color: #000000; font-weight: bold">"</span><span style="color: #000000; font-weight: bold"> OK</span><span style="color: #000000; font-weight: bold">"</span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #008000">#</span><span style="color: #008000"> [ $RETVAL -eq 0 ] && rm -f /var/lock/<img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span style="color: #008000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">            </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800080">$RETVAL</span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        fi<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />}<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />case </span><span style="color: #000000; font-weight: bold">"</span><span style="color: #000000; font-weight: bold">$1</span><span style="color: #000000; font-weight: bold">"</span><span style="color: #000000"> in<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />start) <br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        start<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        ;;<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />stop) <br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        stop<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        ;;<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                                                <br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />restart)<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />         echo $</span><span style="color: #000000; font-weight: bold">"</span><span style="color: #000000; font-weight: bold">Restaring Tomcat</span><span style="color: #000000; font-weight: bold">"</span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />         $</span><span style="color: #800000">0</span><span style="color: #000000"> stop<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />         </span><span style="color: #0000ff">sleep</span><span style="color: #000000"> </span><span style="color: #800000">1</span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />         $</span><span style="color: #800000">0</span><span style="color: #000000"> start<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />         ;;<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">*</span><span style="color: #000000">)<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        echo $</span><span style="color: #000000; font-weight: bold">"</span><span style="color: #000000; font-weight: bold">Usage: $0 {start|stop|restart}</span><span style="color: #000000; font-weight: bold">"</span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #0000ff">exit</span><span style="color: #000000"> </span><span style="color: #800000">1</span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        ;;<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />esac<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">exit</span><span style="color: #000000"> </span><span style="color: #800080">$RETVAL</span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />[root</span><span style="color: #800080">@appsit</span><span style="color: #000000"> init</span><span style="color: #000000">.</span><span style="color: #000000">d]</span><span style="color: #008000">#</span><span style="color: #008000"> chmod u+x tomcatd </span><span style="color: #008000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">[root</span><span style="color: #800080">@appsit</span><span style="color: #000000"> init</span><span style="color: #000000">.</span><span style="color: #000000">d]</span><span style="color: #008000">#</span><span style="color: #008000"> chkconfig --add tomcatd </span><span style="color: #008000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">[root</span><span style="color: #800080">@appsit</span><span style="color: #000000"> init</span><span style="color: #000000">.</span><span style="color: #000000">d]</span><span style="color: #008000">#</span><span style="color: #008000"> chkconfig --list tomcatd</span><span style="color: #008000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">tomcatd         </span><span style="color: #800000">0</span><span style="color: #000000">:</span><span style="color: #000000">off   </span><span style="color: #800000">1</span><span style="color: #000000">:</span><span style="color: #000000">off   </span><span style="color: #800000">2</span><span style="color: #000000">:</span><span style="color: #000000">off   </span><span style="color: #800000">3</span><span style="color: #000000">:</span><span style="color: #000000">on    </span><span style="color: #800000">4</span><span style="color: #000000">:</span><span style="color: #000000">on    </span><span style="color: #800000">5</span><span style="color: #000000">:</span><span style="color: #000000">on    </span><span style="color: #800000">6</span><span style="color: #000000">:</span><span style="color: #000000">off<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />[root</span><span style="color: #800080">@appsit</span><span style="color: #000000"> init</span><span style="color: #000000">.</span><span style="color: #000000">d]</span><span style="color: #008000">#</span><span style="color: #008000"> service tomcatd stop<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span></div> <p><br /></span><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt">删除Q?span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 14px"></span></p> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #000000">[root</span><span style="color: #800080">@appsit</span><span style="color: #000000"> init</span><span style="color: #000000">.</span><span style="color: #000000">d]</span><span style="color: #008000">#</span><span style="color: #008000"> chkconfig --del tomcatd</span></div> <p></span><br /><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt">写得也还不完善,比如tomcat 用户用个变量代替Q用 RETVAL=$Q来q回最后命令的退出状态,...</span><br /><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt">q些留待以后完善</span><br /><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt">也可参考这:</span><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 14px"><a >http://nio.infor96.com/archives/86</a><br /></span></p> <p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt">本文来自CSDN博客Q{载请标明出处Q?/span><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 14px"><a >http://blog.csdn.net/defonds/archive/2009/04/23/4102133.aspx</a></span></p><img src ="http://www.tkk7.com/icewee/aggbug/353229.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/icewee/" target="_blank">IceWee</a> 2011-04-16 13:14 <a href="http://www.tkk7.com/icewee/archive/2011/04/16/353229.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>『nForceL』y妙去掉“安全删除硬盘”图标!http://www.tkk7.com/icewee/archive/2011/04/13/353252.htmlIceWeeIceWeeWed, 13 Apr 2011 08:31:00 GMThttp://www.tkk7.com/icewee/archive/2011/04/13/353252.htmlhttp://www.tkk7.com/icewee/comments/353252.htmlhttp://www.tkk7.com/icewee/archive/2011/04/13/353252.html#Feedback0http://www.tkk7.com/icewee/comments/commentRss/353252.htmlhttp://www.tkk7.com/icewee/services/trackbacks/353252.html如果您的电脑使用的是nforce芯片l的L和串口硬盘。在pȝ中安装好所有的g驱动E序后,发现在Q务栏右下角始l会昄一?#8220;安全删除g”的图标。这是nforce芯片l在安装了IDE-SWL驱动以后Q系l会把SATA盘识别为可Ud讑֤Q每ơ开机后都会昄q个图标?/span>

 清除ҎQ?/span>
     打开注册表定位到[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\nvata]用右键点?#8220;nvata”Q选择“新徏/DWORD?#8221;选项Q此时会在右侧窗口中d一?#8220;新值il”,它重命名ؓ“DisableRemovable”,再双d打开“~辑DWORD?#8221;对话框,?#8220;数值数?#8221;更改?#8220;1”Q点?#8220;定”按钮卛_?/span>
      如果在注册表中找不到“nvata”建|可定位到[HKEY_LOCAL_MACHINE\SYSTEM\
CurrentControlSet\Services\nvatabus]在点?#8220;nvatabus”创徏和设|?#8220;DisableRemovable”键值即可?/span>
      重启电脑后,pȝ׃会将SATA盘识别为可Ud讑֤了,那个“安全删除g”图标也就消失了,而且不会影响其它可移动设备的正常使用Q在插入U盘或Ud盘{设备后Q系l仍然会出现“安全删除g”的图标?/span>




IceWee 2011-04-13 16:31 发表评论
]]>
վ֩ģ壺 ŷ޹SUV| AVӰ߹ۿ| þþƷavպ| ޵ҹ| ޹˾ƷҰһ| ߿ʮ˽վ| Ȱ׽һ | ޾ƷƷԲվ| ձvaһ | ҹҹˬŮ8888Ƶѹۿ| ˳߹ۿƵ߳ | 99þùƷһ | ٸĻӰ| avƬ߹ۿ| ŮƵһ| þþžȫ| ѿƵվ| JIZZJIZZйٸ| һ| ޳a޳wwwţţ| 뾫Ʒþþþ| ʵ׾Ʒ| ŷŮƵ| þƷww47| www77777| һ| Ʒһ| ۺϼר| AVվ| һѻɫƬ| AAѹۿ1000Ӱ| þþþAVۺϲҰ| 91ҹƷһ| һ˿wwwƵ߹ۿ һ˿ѹۿձƵwww | պһƵ| 99reȾƷƵ| aëƬ| Ʒ޳aƬ߹ۿٸ| ݾþþƷۺר| 96ѾƷƵ߹ۿ| ޾ƷóƬ?V߲|