linux配置全程记录
??? 1? ll
??? 2? cd /etc/
??? 3? ll
??? 4? vi ssh/sshd_config
??? 5? service sshd restart
??? 6? ll
??? 7? cd /
??? 8? netstat -nlp
??? 9? netstat -nlp | more
?? 10??
?? 11? uname -a
?? 12? ll
?? 13? exit
?? 14? ifconfig
?? 15? exit
?? 16? ll
?? 17? cd /
?? 18? ll
?? 19? cd bakup/
?? 20? ll
?? 21? mkdir dvd
?? 22? cd dvd
?? 23? ll
?? 24? mount
?? 25? ls /mnt/
?? 26? cd /
?? 27? ll
?? 28? ls media/
?? 29? mount /dev/cdrom /media
?? 30? mount
?? 31? mount /dev/cdrom
?? 32? mount /dev/cdrom /media/
?? 33? mount /dev/cdrom /media/
?? 34? ls /media/
?? 35? cd /bakup/
?? 36? cd dvd/
?? 37? ll
?? 38? cp -R /media/? .
?? 50? ll
?? 51? cd bakup/
?? 67? umount /dev/cdrom
?? 90? rz
? 114? mv apache-tomcat-6.0.29.tar.gz /apps/
? 115? ll
? 116? cd /apps/
? 117? ll
? 118? tar -zxvf? apache-tomcat-6.0.29.tar.gz
? 119? ll
? 120? mv apache-tomcat-6.0.29.tar.gz /bakup/
? 121? ll
? 122? cd apache-tomcat-6.0.29/
? 123? ll
? 124? cd ..
? 125? groupadd tomcat
? 126? useradd tomcat -gtomcat
? 127? groupadd mobile
? 128? useradd mobile-gmobile
? 129? ll
? 130? chown -R tomcat:tomcat apache-tomcat-6.0.29
? 135? mv apr-1.4.2.tar.gz /bakup/
? 136? mv apr-util-1.3.10.tar.gz /bakup/
? 137? ll
? 143? whereis java
? 144? cd /apps/apache-tomcat-6.0.29/
? 145? ll
? 146? cd conf/
? 147? ll
? 148? vi server.xml
? 149? ifconfig
? 164? scp -P 653 root@100.100.100.100/java/jdk-6u22-linux-x64.bin .
? 176? ll
? 177? ./jdk-6u22-linux-x64.bin
? 178? ll
? 179? mv jdk1.6.0_22/ /apps/
? 180? ll
? 181? cd /
? 182? ll
? 183? cd apps/
? 184? ll
? 185? cd jdk
? 186? cd jdk1.6.0_22/
? 187? ll
? 188? ll
? 189? pwd
? 190? alternatives --list
? 191? alternatives --display java
? 192? alternatives --install /usr/bin/java java /apps/jdk1.6.0_22/bin/java? 1
? 193? alternatives --config java
? 194? ll
? 195? java --version
? 196? pwd
? 197? vi /etc/profile
? 198? ls /apps/jdk1.6.0_21/
? 200? pwd
? 201? vi /etc/profile
? 202? source /etc/profile
? 203? java --version
? 204? javac --version
? 205? java -ver
? 206? java -version
? 207? cd ..
? 208? ls
? 209? l
? 210? ll
? 211? scp 100.100.100.100:/apps/mproxyd .
? 212? mkdir mproxyd
? 213? mkdir rpcsvcd
? 214? ll
? 215? scp 100.100.100.100:/apps/mproxyd/* ./mproxyd/
? 217? scp 100.100.100.100:/apps/rpcsvcd/* ./rpcsvcd/?
? 218? scp
? 219? man scp
? 220? scp -r 100.100.100.100:/apps/rpcsvcd/* ./rpcsvcd/?
? 221? scp -r 100.100.100.100:/apps/mproxyd/* ./mproxyd/
? 235? cd /
? 238? cd /etc/rc.d/init.d
? 239? ll
? 240? scp 100.100.100.100:/etc/rc.d/init.d/mproxyd .
? 241? scp 100.100.100.100:/etc/rc.d/init.d/rpcsvcd .
? 242? ll
? 243? vi rpcsvcd
? 244? vi mproxyd
? 245? vi rpcsvcd
? 246? ll
? 247? cd /
? 248? cd
? 249? ll
? 250? wget? http://mysql.mirror.tw/Downloads/MySQL-5.5/mysql-5.5.8.tar.gz
? 251? ll
? 252? scp mysql-5.5.8.tar.gz 100.100.100.100:~
? 253? ll
? 254? ll
? 255? tar -zxvf mysql-5.5.8.tar.gz
? 256? ll
? 257? mv mysql-5.5.8 /bakup/
? 258? ll
? 259? mv mysql-5.5.8.tar.gz /bakup/
? 260? cd /bakup/
? 261? ll
? 262? mv mysql-5.5.8 ~
? 263? cd
? 264? ll
? 265? cd mysql-5.5.8/
? 266? ll
? 267? more README
? 268? ll
? 269? cat INSTALL-SOURCE
? 270? cat INSTALL-SOURCE | more
? 271? ll
? 272? make
? 273? more INSTALL-SOURCE
? 274? ll
? 275? rm -rf cmake-2.8.3/
? 276? ll
? 277? mysql
? 278? mysql
? 279? whereis mysql
? 280? /usr/local/mysql
? 281? whereis mysqld
? 282? exit
? 283? mysql
? 284? whereis mysql
? 285? cd /usr/local/mysql
? 286? ll
? 287? cd bin
? 288? ll
? 289? mysql
? 290? ll
? 291? ps -ef | grep mysql
? 292? kill -9 8366
? 293? ps -ef | grep mysql
? 294? kill -9 8126
? 295? ps -ef | grep mysql
? 296? kill -9 8467
? 297? ps -ef | grep mysql
? 298? netstat -nlp | grep 3306
? 299? whereis mysql
? 300? ls /usr/local/mysql/
? 301?? ll
? 302? pwd
? 303? cd dat
? 304? cd data
? 305? ll
? 306? cd ..
? 307? l
? 308? cd ../data
? 309? ll
? 310? cd data
? 311? ll
? 312? vi /etc/my.cnf
? 313? service mysqld stop
? 314? service mysqld start
? 315? pwd
? 316? cd /database/mysql/
? 322? cd database/
? 323? ll
? 324? cd /bakup/
? 325? ll
? 326? mkdir database
? 327? ll
? 328? scp janson.net:
? 329? scp janson.net:/bakup/dbbak.sh .
? 330? scp 100.100.100.100:/bakup/dbbak.sh .
? 331? ll
? 332? scp 100.100.100.100:/bakup/database/ ./database -R
? 333? scp 100.100.100.100:/bakup/database/ ./database -r
? 334? scp -r 100.100.100.100:/bakup/database/ ./database
? 348? ll
? 349? mv daily/ ..
? 350? ll
? 351? cd ..
? 352? ll
? 353? rmdir da
? 354? rmdir database/
? 359? cd database/
? 360? ll
? 361? tar -xf 20110113.sql.tgz
? 362? ll
? 363? vi 20110113.sql
? 364? ll
? 365? mysql mshops <20110113.sql
? 366? source /etc/profile
? 367? ll
? 368? mysql mshops <20110113.sql
? 381? ll
? 382? tar -zxvf commons-daemon-native.tar.gz
? 383? cd commons-daemon-1.0.2-native-src/
? 384? ll
? 385? cd unix/
? 386? ll
? 387? ./configure
? 388? cd native
? 389? ll
? 390? make clear
? 391? make clean
? 392? make
? 393? cd ..
? 394? ll
? 395? cp jsvc ..
? 396? ll
? 397? cd ..
? 398? ll
? 399? mv jsvc? ..
? 400? cd ..
? 401? ll
? 402? rm -rf commons-daemon-1.0.2-native-src/
? 403? ll
? 404? jsvc
? 405? jsvc --help
? 406? ll
? 407? cd /etc/rc.d/init.d/
? 408? ll
? 409? scp 100.100.100.100:/etc/rc.d/init.d/tomcat .
? 410? ll
? 411? vi tomcat
? 412? ll
? 413? chkconfig --add tomcat
? 414? chkconfig --list tomcat
? 415? cd /
? 416? ll
? 417? cd apps/
? 418? ll
? 419? cd /bakup/
? 420? ll
? 421? tar -zxvf apr-1.4.2.tar.gz
? 422? ll
? 423? tar -zxvf apr-util-1.3.10.tar.gz
? 424? ll
? 425? tar -zxvf tomcat-native-1.1.20-src.tar.gz
? 426? ll
? 427? cd tomcat-native-1.1.20-src
? 428? ll
? 429? cd jni/
? 430? ll
? 431? cd native/
? 432? ll
? 433? ./configure
? 434? cd ..
? 435? ll
? 436? cd ..
? 437? cd ..
? 438? ll
? 439? cd apr-1.4.2
? 440? ll
? 441? ./configure
? 442? make
? 443? make install
? 444? vi /etc/profile
? 445? ll /usr/local/apr/lib
? 446? ll
? 447? cd ..
? 448? ll
? 449? cd apr-util-1.3.10
? 450? ll
? 451? ./configure
? 452? ./configure --with-apr=/usr/local/apr/lib
? 453? ./configure --with-apr=/usr/local/apr
? 454? make
? 455? make install
? 456? ll
? 457? cd ..
? 458? ll
? 459? cd tomcat-native-1.1.20-src
? 460? ll
? 461? cd jni/
? 462? ll
? 463? cd native/
? 464? ll
? 465? ./configure --with-apr=/usr/local/apr
? 466? make
? 467? make install
? 468? ls /usr/local/apr/lib
? 469? ll
? 470? cd /
? 471? ll
? 472? service tomcat start
? 473? cd /apps/
? 474? ll
? 475? cd apache-tomcat-6.0.29/
? 476? cd l
? 477? cd logs/
? 478? ll
? 479? cat catalina.out
? 480? cd ..
? 481? ll
? 482? cd ..
? 483? ll
? 484? cd apache-tomcat-6.0.29/
? 485? ll
? 486? cd conf/
? 487? ll
? 488? vi context.xml
? 489? service tomcat stop
? 490? ll
? 491? cat tomcat-users.xml
? 492? vi tomcat-users.xml
? 493? service tomcat stop
? 494? service tomcat start
? 495? vi /etc/ssh/sshd_config
? 496? vi /etc/ssh/ssh_config
? 497? service tomcat stop
? 498? ll
? 499? vi server.xml
? 500? service tomcat start
? 501? netstat -nlp
? 502? service tomcat stop
? 503? ll
? 504? cd ..
? 505? cd logs/
? 506? ll
? 507? cat catalina.out
? 508? rm -rf catalina.out
? 509? ll
? 510? service sshd restart
? 511? service tomcat start
? 512? ll
? 513? cat catalina.out
? 514? exit
? 515? wget? http://www.cmake.org/files/v2.8/cmake-2.8.3.tar.gz
? 516? ll
? 517? tar zxvf cmake-2.8.3.tar.gz
? 518? ll
? 519? mv cmake-2.8.3 /bakup/
? 520? ll
? 521? mv cmake-2.8.3.tar.gz /bakup/
? 522? mv /bakup/cmake-2.8.3 .
? 523? ll
? 524? cd cmake-2.8.3/
? 525? ll
? 526? ./configure
? 527? gmake
? 528? ls /bin/cmake -l
? 529? ls /bin/cmake
? 530? ll
? 531? make install
? 532? whereis cmake
? 533? ls /usr/local/bin/cmake -l
? 534? cd ..
? 535? ll
? 536? cd mysql-5.5.8/
? 537? ll
? 538? cmake .
? 539? make
? 540? make install
? 541? cd /usr/local/mysql/
? 542? ll
? 543? chown -R mysql .
? 544? ll
? 545? chgrp -R mysql .
? 546? ll
? 547? scripts/mysql_install_db --user=mysql
? 548? chown -R root .
? 549? chown -R mysql var
? 550? ll
? 551? chown -R mysql .
? 552? ll
? 553? ls /etc/my.cnf
? 554? cp support-files/my-medium.cnf /etc/my.cnf
? 555? bin/mysqld_safe --user=mysql &
? 556? cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysqld
? 557? cd /etc/init.d
? 558? ll
? 559? ls mysqld
? 560? mv mysqld /etc/rc.d/init.d/
? 561? cd /etc/rc.d/init.d/
? 562? ll
? 563? cat mysqld
? 564? ls
? 565? ls -l
? 566? cd ..
? 567? ls -l
? 568? cd /
? 569? ls -l
? 570? cd etc
? 571? ls
? 572? ls init.d
? 573? ls init.d? -l
? 574? cd rc.d/init.d
? 575? ll
? 576? chkconfig
? 577? chkconfig? --add mysqld
? 578? chkconfig --list mysqld
? 579? ll
? 580? service mysqld start
? 581? ll
? 582? vi mysqld
? 583???
? 584? vi /etc/my.cnf
? 585? ll
? 586? ll
? 587? vi mysqld
? 588? service mysqld start
? 589? ls /
? 590? ls /database/
? 591? cd /database/
? 592? mkdir? mysql
? 593? ll
? 594? chown mysql:mysql mysql/
? 595? ll
? 596? ll
? 597? cd mysql/
? 598? ll
? 599? cd /usr/local/mysql/data/
? 600? ll
? 601? ll
? 602? cat s1.localhost.err
? 603? ll
? 604? mv ibdata1 /database/mysql/
? 605? ll
? 606? rm -rf s1.localhost.err
? 607? ll
? 608? service mysqld start
? 609? ll
? 610? cat s1.localhost.err
? 611? mkdir /database/mysql/data
? 612? mv /database/mysql/ibdata1 /database/mysql/data/
? 613? ll
? 614? rm -rf s1.localhost.err
? 615? service mysqld start
? 616? ll
? 617? cat s1.localhost.err
? 618? ll
? 619? mv lb* /database/mysql/data/
? 620? mv ib* /database/mysql/data/
? 621? ll
? 622? rm -rf s1.localhost.err
? 623? service mysqld start
? 624? ll
? 625? cat s1.localhost.err
? 626? ll
? 627? cat s1.localhost.pid
? 628? ll
? 629? cd /
? 630? ll
? 631? mysql
? 632? vi /etc/profile
? 633? source /etc/profile
? 634? mysql
? 635? vi /etc/my.cnf
? 636? service mysqld restart
? 637? mysql
? 638? mysql -ujavauser -pjavauser
? 639? ll
? 640? cd /database/
? 641? ll
? 642? cd mysql/
? 643? ll
? 644? cd data/
? 645? ll
? 646? cd ..
? 647? ll
? 648? cd /usr/local/mysql/data/
? 649? ll
? 650? cd test/
? 651? ll
? 652? cd ..
? 653? service mysqld stop
? 654? ll
? 655? ls test/
? 656? rmdir test
? 657? ls test -al
? 658? rm -rf test/
? 659? ll
? 660? vi /etc/my.cnf
? 661? ll
? 662? mv . /database/mysql/ -R
? 663? ll
? 664? mv *.*? /database/mysql/
? 665? ll
? 666? mv mshops/ /database/mysql/
? 667? mv mysql/ /database/mysql/
? 668? ll
? 669? mv performance_schema/ /database/mysql/
? 670? cd /database/mysql/
? 671? ll
? 672? ls data/
? 673? shown mysql:mysql data/
? 674? chgown mysql:mysql data -R
? 675? chown mysql:mysql data -R
? 676? ll
? 677? service mysqld start
? 678? ll
? 679? ls /usr/local/mysql/
? 680? ls /usr/local/mysql/data/
? 681? ll
? 682? exit
? 683? vi /etc/ssh/ssh_config
? 684? vi /etc/ssh/sshd_config
? 685? ll
? 686? rz
? 687? ll
? 688? mv apache-tomcat-6.0.29.tar.gz /bakup/
? 689? cd /bakup/
? 690? ll
? 691? cd /apps/
? 692? ll
? 693? cd
? 694? ll
? 695? ssh-keygen
? 696? ll
? 697? cd .ssh
? 698? ll
? 699? scp id_rsa.pub root@100.100.100.100:~/
? 700? ssh 100.100.100.100
? 701? ll
? 702? cd ..
? 703? ll
? 704? scp apache-tomcat-6.0.29.tar.gz 100.100.100.100:~/
? 705? ll
? 706? rm -rf apache-tomcat-6.0.29.tar.gz
? 707? ll
? 708? useradd mysql
? 709???????
? 710? ll
? 711? cd mysql-5.5.8/
? 712? ll
? 713? more INSTALL-SOURCE
? 714? more INSTALL-SOURCE
? 715?? ls /usr/local/mysql/bin
? 716??
? 717? exit
? 718? history
? 719? history
? 720? clear
? 721? ll
? 722? netstat -nlp
? 723? ll
? 724? netstat -nlp
? 725???
? 726? whoami
? 727? ssh 100.100.100.100
? 728? su tomcat
? 729? exit
? 730? ll
? 731? ll
? 732? rm -rf mysql-5.5.8/
? 733? ll
? 734? cd /apps/apache-tomcat-6.0.29/
? 735? ll
? 736? cd webapps/
? 737? cd ROOT/
? 738? ll
? 739? cat index.
? 740? cat index.jsp
? 741? ll
? 742? mv index.jsp index.jsp.bak
? 743? ll
? 744? mv index.html index.html.bak
? 745? ll
? 746? ls WEB-INF/
? 747? ll
? 748? su tomcat
? 749? vi /etc/ssh/ssh_config
? 750? ssh? 100.100.100.100
? 751? ll
? 752? su tomcat
? 753? service sshd restart
? 754? su tomcat
? 755? ll
? 756? vi /etc/ssh/ssh_config
? 757? ssh? 100.100.100.100
? 758? su tomcat
? 759? su tomcat
? 760? vi /etc/ssh/ssh_config
? 761? su tomcat
? 762? cat /var/log/messages
? 763? whoami
? 764? su tomcat
? 765? ssh -v 100.100.100.100
? 766? cd /
? 767? cd apps/
? 768? cd apache-tomcat-6.0.29/
? 769? cd webapps/ROOT/
? 770? ll
? 771? vi songsh.jsp
? 772? vi songsh.jsp
? 773? ll
? 774? cp songsh.jsp dgietelnet.jsp
? 775? ll
? 776? mv songsh.jsp songshtelnet.jsp
? 777? ll
? 778? vi dgietelnet.jsp
? 779? ll
? 780? chown tomcat:tomcat *.jsp
? 781? ll
? 782? vi songshtelnet.jsp
? 783? vi dgietelnet.jsp
? 784? cat dgietelnet.jsp
? 785? ls /home/tomcat/dgietelnetvpn.sh
? 786? ls /home/tomcat/dgietelnetvpn.sh -l
? 787? cat songshtelnet.jsp
? 788? ls? /home/tomcat/songshtelnetvpn.sh
? 789? cat /home/tomcat/songshtelnetvpn.sh
? 790? ll
? 791? ll
? 792? vi /etc/xinetd.d/krb5-telnet
? 793? ls /etc/xinetd.d/
? 794? telnet localhost
? 795? cat /etc/xinetd.d/
? 796? cd /etc/xinetd.d/
? 797? ll
? 798? cat ek
? 799? cat ekrb5-telnet
? 800? cat eklogin
? 801? ll
? 802? cat krb5-telnet
? 803? vi krb5-telnet
? 804? service xinetd restart
? 805? service xinetd restart
? 806? chkconfig --list
? 807? service xinnet restart
? 808? chkconfig iptables off
? 809? chkconfig ip6tables off
? 810? chkconfig --list | grep :on
? 811? chkconfig bluetooth off
? 812? service bluetooth stop
? 813? service iptables stop
? 814? service ip6tables stop
? 815? chkconfig --list | grep :on
? 816? chkconfig --list | grep telnet
? 817? chkconfig --list | grep xinet
? 818? chkconfig --list
? 819? yum install xinet
? 820? yum install xinetd
? 821? ll
? 822? service --list
? 823? chkconfig? --list
? 824? service xinetd start
? 825? telnet localhost
? 826? su mobile
? 827? cd /
? 828? ll
? 829? useradd mobile
? 830? useradd mobile -gmobile
? 831? passwd mobile
? 832? telnet localhost
? 833? xit
? 834? exit
? 835? ps -ef | grep telnet
? 836? kill 28384
? 837? ps -ef | grep telnet
? 838? exit
? 839? clear
?
如果在./configure发生如下错误
[root@bogon unix]# ./configure
*** Current host ***
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking cached host system type... ok
*** C-Language compilation tools ***
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/java/tomcat6/bin/commons-daemon-1.0.2-native-src/unix':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
请先安装gcc
[root@bogon unix]# yum -y install gcc
?
附tomcat服务文件内容:(不要忘了给这个文件加上执行权限:chmod +x /etc/init.d/tomcat,文件位置/etc/rc.d/init.d)
#!/bin/sh
#!/bin/sh
#chkconfig:345 88 14
#description:Tomcat Daemon
##############################################################################
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.? See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.? You may obtain a copy of the License at
#
#???? http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##############################################################################
#
# Small shell script to show how to start/stop Tomcat using jsvc
# If you want to have Tomcat running on port 80 please modify the server.xml
# file:
#
#??? <!-- Define a non-SSL HTTP/1.1 Connector on port 80 -->
#??? <Connector className="org.apache.catalina.connector.http.HttpConnector"
#?????????????? port="80" minProcessors="5" maxProcessors="75"
#?????????????? enableLookups="true" redirectPort="8443"
#?????????????? acceptCount="10" debug="0" connectionTimeout="60000"/>
#
# That is for Tomcat-5.0.x (Apache Tomcat/5.0)
#
# Adapt the following lines to your configuration
JAVA_HOME=/usr/java/jdk1.6.0_22
CATALINA_HOME=/java/tomcat6
#NATIVE_LIBS=/usr/local/apr/lib
TOMCAT_USER=tomcat
PROG_NAME=tomcat
DAEMON_HOME=$CATALINA_HOME/bin
# for multi instances adapt those lines.
TMP_DIR=/var/tmp
PID_FILE=/var/run/jsvc.pid
CATALINA_BASE=$CATALINA_HOME
CATALINA_OPTS="-Djava.library.path=$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$NATIVE_LIBS"
CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$CATALINA_HOME/bin/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar
# Source function library.
. /etc/rc.d/init.d/functions
case "$1" in
? start)
??? #
??? # Start Tomcat
??? #
??? echo -n $"Starting $PROG_NAME : "
???
??? $DAEMON_HOME/jsvc \
??? -user $TOMCAT_USER \
??? -home $JAVA_HOME \
??? -Dcatalina.home=$CATALINA_HOME \
??? -Dcatalina.base=$CATALINA_BASE \
??? -Djava.io.tmpdir=$TMP_DIR \
??? -wait 10 \
??? -pidfile $PID_FILE \
??? -outfile $CATALINA_HOME/logs/catalina.out \
??? -errfile '&1' \
??? $CATALINA_OPTS \
??? -cp $CLASSPATH \
??? org.apache.catalina.startup.Bootstrap
??? #
??? # To get a verbose JVM
??? #-verbose \
??? # To get a debug of jsvc.
??? #-debug \
???
??? RETVAL=$?
??? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$PROG_NAME
??? echo_success
??? echo
??? exit $RETVAL
??? ;;
? stop)
??? #
??? # Stop Tomcat
??? #
??? echo -n $"Stopping $PROG_NAME : "
???
??? $DAEMON_HOME/jsvc \
??? -stop \
??? -pidfile $PID_FILE \
??? org.apache.catalina.startup.Bootstrap
??? RETVAL=$?
??? [ $RETVAL -eq 0 ] && rm /var/lock/subsys/$PROG_NAME
??? echo_success
??? echo
??? exit 0
??? ;;
? *)
??? echo "Usage service tomcat start/stop"
??? exit 1;;
esac
?