网站前端 设计,在马来西亚做网站网站合法吗,有设计感的网站,网站制作代理本人从官网http://tomcat.apache.org/上面下载的6.0.1_31版本#xff0c;并解压包后改名存放在#xff1a;/usr/share/tomcat6本人使用的是root用户登录#xff0c;下面就说说具体的操作步骤#xff0c;1、在/usr/share/tomcat6/bin中有commons-daemon-native.tar.gz压缩包…本人从官网http://tomcat.apache.org/上面下载的6.0.1_31版本并解压包后改名存放在/usr/share/tomcat6本人使用的是root用户登录下面就说说具体的操作步骤1、在/usr/share/tomcat6/bin中有commons-daemon-native.tar.gz压缩包2、解压commons-daemon-native.tar.gz[rootlocalhost ~]# tar -zxvf commons-daemon-native.tar.gz3、解压完成出现commons-daemon-1.0.2-native-src文件夹(目录)1、 进入commons-daemon-1.0.2-native-src下的unix目录[rootlocalhost ~]# ls[rootlocalhost ~]# cdcommons-daemon-1.0.2-native-src/unix2、 发现configure配置文件执行如下修改属性的命令[rootlocalhost ~]# chmod 777 configure4、 执行configure文件[rootlocalhost ~]# ./configure5、 编译[rootlocalhost ~]# make #会报错[rootlocalhost ~]# make clean[rootlocalhost ~]# make #重新编译成功6、 编译完成后出现jsvc文件夹复制jsvc到/usr/share/tomcat6/bin目录下面[rootlocalhost ~]# cp jsvc /usr/share/tomcat6/bin------------------------------------------------------------------------------------10、在/etc/init.d/目录下编写tomcat6启动服务配置文件。[rootlocalhost ~]#cd /etc/init.d/[rootlocalhost ~]# vi tomcat6录入以下内容#!/bin/sh# tomcat: Start/Stop/Restart tomcat## chkconfig: 2345 85 15# description: Apache tomcat6# 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:## # # port80 minProcessors5 maxProcessors75# enableLookupstrue redirectPort8443# acceptCount10 debug0 connectionTimeout60000/#JAVA_HOME/usr/java/jdk1.6.0_31 #根据自己的实际jdk位置来修改CATALINA_HOME/usr/share/tomcat6 #根据自己实际tomcat位置来修改DAEMON_HOME$CATALINA_HOME/bin# I did not use the user.#TOMCAT_USERtomcat# for multi instances adapt those lines.TMP_DIR$CATALINA_HOME/tmpPID_FILE/var/run/jsvc.pidCATALINA_BASE$CATALINA_HOME. /etc/rc.d/init.d/functionsCATALINA_OPTSCLASSPATH\$JAVA_HOME/lib/tools.jar:\$CATALINA_HOME/bin/commons-daemon.jar:\$CATALINA_HOME/bin/bootstrap.jarstart() {echo -n $Starting Tomcat6: # If you want to specify a user to run Tomcat.#increase the user $ TOMCAT_USER \ to the parameter list.$DAEMON_HOME/jsvc \-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 \-errfile1\$CATALINA_OPTS \-cp $CLASSPATH \org.apache.catalina.startup.Bootstrapecho*****************************[ok]}stop() {echo -n $Stopping Tomcat6: #$DAEMON_HOME/jsvc \-stop \-pidfile $PID_FILE \org.apache.catalina.startup.Bootstrapecho *****************************[ok]}status() {ps ax --width1000 | grep [o]rg.apache.catalina.startup.Bootstrap| awk{printf $1 }| wc | awk{print $2}/tmp/tomcat_process_count.txtread line echo -ntomcat6 ( pid ps ax --width1000 | grep[o]rg.apache.catalina.startup.Bootstrap| awk{printf $1 }echo) is runningelseechoTomcat6 is stoppedfi}case$1instart)# Start Tomcatstartexit $?;;stop)# Stop Tomcatstopexit $?;;restart)# Restart Tomcatstopsleep 3startexit $?;;status)statusexit $?;;*)echoUsage: tomcat6 {start|stop|restart|status}exit 1;;esac#########11、录入完成按Esc键。输入: wq保存退出并赋予/etc/init.d/tomcat6文件可执行权限[rootlocalhost~]# chmod 777 /etc/init.d/tomcat6------------------添加服务-----------------------------------------12、[rootlocalhost~] #chkconfig --add tomcat6 ##添加tomcat服务13、[rootlocalhost~] #chkconfig Clist |grep tomcat6 ##查看tomcat服务是否被添加--------------------启动服务---------------------------------------------14、[rootlocalhost~] # service tomcat6 start ##启动tomcat服务15、[rootlocalhost~] # service tomcat6 stop ##停止tomcat服务16、[rootlocalhost~] # service tomcat6 restart ##重启tomcat17、[rootlocalhost~] # service tomcat6 status ##查看tomcat服务启动状态