怎么启动linux下的tomcat
2016-07-14 · 知道合伙人数码行家
琅玥天敏
知道合伙人数码行家
向TA提问 私信TA
知道合伙人数码行家
采纳数:5267
获赞数:12928
12年进网络中心协助处理问题(详情如下)http://caijing.nxnews.net/qyfc/201503/t20150306_3356507.html
向TA提问 私信TA
关注
展开全部
你好,启动方法如下:
omcat是随机启动的,所以在开启服务器的时候要手动开启tomcat,不然没法访问(网上说可以设置随着服务器开启而开启,我还不会妮。。。)
1:找到tomcat安装路径
[root@localhost ~]# cd .. (返回上一级目录)
[root@localhost /]# ls (列出该目录下的所有文件)
bin dev home lib64 media mnt opt root selinux sys tmp var
boot etc lib lost+found misc net proc sbin srv tftpboot usr
[root@localhost /]# cd var (打开var这个文件夹)
[root@localhost var]# ls (查看该文件的列表)
account crash empty gdm local mail opt run tux
arpwatch cvs ftp kerberos lock named preserve spool www
cache db games lib log nis racoon tmp yp
(看来不在var文件夹中,只能返回上一级目录)
[root@localhost var]# cd ..
[root@localhost /]# cd usr
[root@localhost usr]# ls
2.sql etc java lib64 sbin tmp
apache-tomcat-7.0.14.tar games kerberos libexec share tomcat7.0
bin include lib local src X11R6
[root@localhost usr]# cd tomcat7.0 (打开tomcat7.0这个文件夹)
[root@localhost tomcat7.0]# ls
bin hsperfdata_root LICENSE NOTICE RUNNING.txt webapps
conf lib logs RELEASE-NOTES temp work
[root@localhost tomcat7.0]# cd bin
[root@localhost bin]# ls
bootstrap.jar configtest.sh setclasspath.sh tomcat-native.tar.gz
catalina.bat cpappend.bat shutdown.bat tool-wrapper.bat
catalina.sh d: shutdown.sh tool-wrapper.sh
catalina-tasks.xml digest.bat startup.bat version.bat
commons-daemon.jar digest.sh startup.sh version.sh
commons-daemon-native.tar.gz setclasspath.bat tomcat-juli.jar
[root@localhost bin]# ./ (当前目录,这里是做什么用的,不太清楚。。。)
-bash: ./: is a directory
[root@localhost bin]# ./startup.sh (启动Tomcat)
Using CATALINA_BASE: /usr/tomcat7.0
Using CATALINA_HOME: /usr/tomcat7.0
Using CATALINA_TMPDIR: /usr/tomcat7.0
Using JRE_HOME: /usr/java/jdk1.6.0_24
Using CLASSPATH: /usr/tomcat7.0/bin/bootstrap.jar:/usr/tomcat7.0/bin/tomcat-juli.jar
启动成功
omcat是随机启动的,所以在开启服务器的时候要手动开启tomcat,不然没法访问(网上说可以设置随着服务器开启而开启,我还不会妮。。。)
1:找到tomcat安装路径
[root@localhost ~]# cd .. (返回上一级目录)
[root@localhost /]# ls (列出该目录下的所有文件)
bin dev home lib64 media mnt opt root selinux sys tmp var
boot etc lib lost+found misc net proc sbin srv tftpboot usr
[root@localhost /]# cd var (打开var这个文件夹)
[root@localhost var]# ls (查看该文件的列表)
account crash empty gdm local mail opt run tux
arpwatch cvs ftp kerberos lock named preserve spool www
cache db games lib log nis racoon tmp yp
(看来不在var文件夹中,只能返回上一级目录)
[root@localhost var]# cd ..
[root@localhost /]# cd usr
[root@localhost usr]# ls
2.sql etc java lib64 sbin tmp
apache-tomcat-7.0.14.tar games kerberos libexec share tomcat7.0
bin include lib local src X11R6
[root@localhost usr]# cd tomcat7.0 (打开tomcat7.0这个文件夹)
[root@localhost tomcat7.0]# ls
bin hsperfdata_root LICENSE NOTICE RUNNING.txt webapps
conf lib logs RELEASE-NOTES temp work
[root@localhost tomcat7.0]# cd bin
[root@localhost bin]# ls
bootstrap.jar configtest.sh setclasspath.sh tomcat-native.tar.gz
catalina.bat cpappend.bat shutdown.bat tool-wrapper.bat
catalina.sh d: shutdown.sh tool-wrapper.sh
catalina-tasks.xml digest.bat startup.bat version.bat
commons-daemon.jar digest.sh startup.sh version.sh
commons-daemon-native.tar.gz setclasspath.bat tomcat-juli.jar
[root@localhost bin]# ./ (当前目录,这里是做什么用的,不太清楚。。。)
-bash: ./: is a directory
[root@localhost bin]# ./startup.sh (启动Tomcat)
Using CATALINA_BASE: /usr/tomcat7.0
Using CATALINA_HOME: /usr/tomcat7.0
Using CATALINA_TMPDIR: /usr/tomcat7.0
Using JRE_HOME: /usr/java/jdk1.6.0_24
Using CLASSPATH: /usr/tomcat7.0/bin/bootstrap.jar:/usr/tomcat7.0/bin/tomcat-juli.jar
启动成功
快又稳
2024-10-28 广告
2024-10-28 广告
在Linux环境下配置基于域名的虚拟主机,需安装Apache或Nginx等Web服务器,并编辑配置文件。以Apache为例,需创建虚拟主机配置文件,指定域名、文档根目录等,然后启用该配置文件并重启Apache服务。同样,Nginx也需在相应...
点击进入详情页
本回答由快又稳提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询