锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久一本综合,欧美激情精品久久久久久变态,日韩av一区二区三区http://www.aygfsteel.com/SmileFace/category/15082.html 涓巎ava涓璧瘋蛋榪囩殑鏃ュ瓙zh-cnMon, 31 Aug 2009 07:04:14 GMTMon, 31 Aug 2009 07:04:14 GMT60sudoers file in linuxhttp://www.aygfsteel.com/SmileFace/archive/2009/08/28/292919.htmlSmileFaceSmileFaceThu, 27 Aug 2009 20:28:00 GMThttp://www.aygfsteel.com/SmileFace/archive/2009/08/28/292919.htmlhttp://www.aygfsteel.com/SmileFace/comments/292919.htmlhttp://www.aygfsteel.com/SmileFace/archive/2009/08/28/292919.html#Feedback0http://www.aygfsteel.com/SmileFace/comments/commentRss/292919.htmlhttp://www.aygfsteel.com/SmileFace/services/trackbacks/292919.html
1. su to root:  su-
 2. open sudoers:  visudo /etc/sudoers
3. add my user name:  testuser ALL=(ALL) NOPASSWD:ALL
    This lines means that the user "testuser" can execute from ALL terminals, acting as ALL (any) users, and run ALL (any) command.

The detail is in paper:  http://www.go2linux.org/sudoers-how-to








SmileFace 2009-08-28 04:28 鍙戣〃璇勮
]]>
install Tomcat6 in centOS5http://www.aygfsteel.com/SmileFace/archive/2009/08/20/291931.htmlSmileFaceSmileFaceThu, 20 Aug 2009 05:12:00 GMThttp://www.aygfsteel.com/SmileFace/archive/2009/08/20/291931.htmlhttp://www.aygfsteel.com/SmileFace/comments/291931.htmlhttp://www.aygfsteel.com/SmileFace/archive/2009/08/20/291931.html#Feedback0http://www.aygfsteel.com/SmileFace/comments/commentRss/291931.htmlhttp://www.aygfsteel.com/SmileFace/services/trackbacks/291931.html      http://cloudservers.mosso.com/index.php/CentOS_-_Tomcat_6 ( or http://de0ris.blogspot.com/2008/08/installing-tomcat-6x-on-centos-5.html )
which give detail instructions. I choose some important part and paste here in case for late use.

1.  install appache ant:  錛坣ote錛?download and put the tar file in /usr/share first 錛?br />
   tar -xzf apache-ant-1.7.1-bin.tar.gz



2. install tomcat:錛坣ote錛?download and put the tar file in /usr/share first 錛?br />


tar -xzf apache-tomcat-6.0.18.tar.gz

3.  create a symbolic link for Ant so other applications can easily find it. Be sure to select the correct version when you create your link.
ln -s /usr/share/apache-ant-1.7.1/bin/ant /usr/bin

4. set JAVA_HOME:
cd /usr/share/apache-tomcat-6.0.18/bin

vi catalina.sh

enter insert mode. Enter the following:

JAVA_HOME=/usr/java/jdk1.6.0_14

Test:
cd /usr/share/apache-tomcat-6.0.18/bin

./startup.sh

5.Automating atartup:   Right now Tomcat will not start up on it's own so we need to create a startup script for this. To do this:
cd /etc/init.d

vi tomcat

Press i to enter insert mode and paste in the following:

#!/bin/bash

# chkconfig: 234 20 80

# description: Tomcat Server basic start/shutdown script

# processname: tomcat

JAVA_HOME=/usr/java/jdk1.6.0_14

export JAVA_HOME

TOMCAT_HOME=/usr/share/apache-tomcat-6.0.18/bin

START_TOMCAT=/usr/share/apache-tomcat-6.0.18/bin/startup.sh

STOP_TOMCAT=/usr/share/apache-tomcat-6.0.18/bin/shutdown.sh

start() {

echo -n "Starting tomcat: "

cd $TOMCAT_HOME

${START_TOMCAT}

echo "done."

}

stop() {

echo -n "Shutting down tomcat: "

cd $TOMCAT_HOME

${STOP_TOMCAT}

echo "done."

}

case "$1" in

start)

start

;;

stop)

stop

;;

restart)

stop

sleep 10

start

;;

*)

echo "Usage: $0 {start|stop|restart}"

esac

exit 0

Be sure to change the following items in the above file:

* JAVA_HOME path

* TOMCAT_HOME path

* START_TOMCAT path

* STOP_TOMCAT path

Once you have those changes made, save the file and quit.

Now we need to change the permissions on the file.

chmod 755 tomcat

We need to set the script to start with other system services and set the runlevels.

chkconfig --add tomcat

chkconfig --level 234 tomcat on

You can verify that it is listed by typing chkconfig --list tomcat.

tomcat         	0:off	1:off	2:on	3:on	4:on	5:off	6:off

Test your shutdown and startup script.

sudo /sbin/service tomcat stop

sudo /sbin/service tomcat start

Tomcat 6 should now be installed under CentOS.

    





SmileFace 2009-08-20 13:12 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 潍坊市| 通州市| 福建省| 靖宇县| 天长市| 固原市| 金沙县| 晋中市| 金溪县| 保靖县| 拉孜县| 家居| 闸北区| 南江县| 正定县| 苏州市| 洛南县| 额尔古纳市| 宕昌县| 寻甸| 临洮县| 湾仔区| 清涧县| 德庆县| 四会市| 嵊州市| 赤城县| 芒康县| 宁国市| 宝鸡市| 当涂县| 亚东县| 漠河县| 大关县| 宁城县| 海阳市| 上犹县| 菏泽市| 凌云县| 云龙县| 宜宾市|