2012년 12월 27일 목요일

code test

code test https://colorscripter.com/
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
vi /etc/init.d/tomcat7
# tomcat7 auto-start
#
# chkconfig: 2345 90 90
# description: Auto-starts tomcat7
# processname: tomcat7
# pidfile: /var/run/tomcat7.pid
 
export JAVA_HOME=/usr/local/jdk1.6.0_26
 
case $1 in
 start)
     sh /usr/local/tomcat7/bin/startup.sh
     ;;
 stop)
     sh /usr/local/tomcat7/bin/shutdown.sh
     ;;
 restart)
     sh /usr/local/tomcat7/bin/shutdown.sh
     sh /usr/local/tomcat7/bin/startup.sh
     ;;
 esac
 exit 0
 
:wq
 
chmod 755 /etc/init.d/tomcat7
chkconfig --add tomcat7
service tomcat7 start
ntsysv
cs

댓글 없음:

댓글 쓰기