服务器部署软件系统

来源:互联网 发布:龙之信条身材捏脸数据 编辑:程序博客网 时间:2024/05/20 15:09


一、先将xsheel连接至服务器主机,打开dos窗口进行下面代码。

二、结束代码之后,进入tomcat界面上传war包。


Xshell 5 (Build 0788)

Copyright (c) 2002-2015 NetSarang Computer, Inc. All rights reserved.

 

Type `help' to learn how to use Xshell prompt.

[c:\~]$

 

Connecting to 10.224.11.192:22...

Connection established.

To escape to local shell, press 'Ctrl+Alt+]'.

 

Last login: Fri Nov  3 17:15:06 2017 from 10.224.11.30

[root@localhost ~]# cd _softapche

-bash: cd: _softapche: No such file or directory

[root@localhost ~]# cd /soft/apache-tomcat-7.0.68/                                                                                     1(进入文件夹)

[root@localhost apache-tomcat-7.0.68]#

[root@localhost apache-tomcat-7.0.68]# cd bin                                                                                          2(进入BIN文件)

[root@localhost bin]# ./shutdown.sh                                                                                                            3 (停止服务)

Using CATALINA_BASE:   /soft/apache-tomcat-7.0.68   

Using CATALINA_HOME:   /soft/apache-tomcat-7.0.68

Using CATALINA_TMPDIR: /soft/apache-tomcat-7.0.68/temp

Using JRE_HOME:        /usr/java/jdk1.7.0_80

Using CLASSPATH:       /soft/apache-tomcat-7.0.68/bin/bootstrap.jar:/soft/apache-tomcat-7.0.68/bin/tomcat-juli.jar

[root@localhost bin]#

[root@localhost bin]# cd..                           

-bash: cd..: command not found

[root@localhost bin]# cd ..                                                                                                                                                                                                              4(返回上一层)

[root@localhost apache-tomcat-7.0.68]# cd webapps/                                                                                                                                                           5 (进入webapp)

[root@localhost webapps]# ls                                                                                                               6(查看系统明细)

API_doc           docs          icp         icp.war       ROOT

DeviceServer      examples      icp1.0      icp.war.back  timerTask

DeviceServer.war  host-manager  icp1.0.war  manager       timerTask.war

[root@localhost webapps]# ll                                                                                      7(查看系统明细)

total 269564

drwxr-xr-x  8 root root      4096 Dec 27  2016 API_doc

drwxr-xr-x  6 root root        61 Sep 30 08:52 DeviceServer

-rw-r--r--  1 root root   4951485 Sep 30 08:52 DeviceServer.war

drwxr-xr-x 14 root root      4096 Jun 23  2016 docs

drwxr-xr-x  7 root root       105 Jun 23  2016 examples

drwxr-xr-x  5 root root        82 Jun 23  2016 host-manager

drwxr-xr-x  7 root root        80 Oct 27 17:41 icp

drwxr-xr-x 29 root root      4096 Nov 22  2016 icp1.0

-rw-r--r--  1 root root 105455422 Oct 12  2016 icp1.0.war

-rw-r--r--  1 root root  70433633 Oct 27 17:41 icp.war

-rw-r--r--  1 root root  69034191 Oct 10 09:59 icp.war.back

drwxr-xr-x  5 root root        97 Jun 23  2016 manager

drwxr-xr-x  3 root root      4096 Jun 23  2016 ROOT

drwxr-xr-x  4 root root        51 Sep  6  2016 timerTask

-rw-r--r--  1 root root  26133981 Sep  6  2016 timerTask.war

[root@localhost webapps]# rm -rf icp                                                                                                      8(删除icp文件)

[root@localhost webapps]# ll

total 269564

drwxr-xr-x  8 root root      4096 Dec 27  2016 API_doc

drwxr-xr-x  6 root root        61 Sep 30 08:52 DeviceServer

-rw-r--r--  1 root root   4951485 Sep 30 08:52 DeviceServer.war

drwxr-xr-x 14 root root      4096 Jun 23  2016 docs

drwxr-xr-x  7 root root       105 Jun 23  2016 examples

drwxr-xr-x  5 root root        82 Jun 23  2016 host-manager

drwxr-xr-x 29 root root      4096 Nov 22  2016 icp1.0

-rw-r--r--  1 root root 105455422 Oct 12  2016 icp1.0.war

-rw-r--r--  1 root root  70433633 Oct 27 17:41 icp.war

-rw-r--r--  1 root root  69034191 Oct 10 09:59 icp.war.back

drwxr-xr-x  5 root root        97 Jun 23  2016 manager

drwxr-xr-x  3 root root      4096 Jun 23  2016 ROOT

drwxr-xr-x  4 root root        51 Sep  6  2016 timerTask

-rw-r--r--  1 root root  26133981 Sep  6  2016 timerTask.war

[root@localhost webapps]# rm -rf icp.war                                                                                           9(删除icp.war包)

[root@localhost webapps]# ll

total 200780

drwxr-xr-x  8 root root      4096 Dec 27  2016 API_doc

drwxr-xr-x  6 root root        61 Sep 30 08:52 DeviceServer

-rw-r--r--  1 root root   4951485 Sep 30 08:52 DeviceServer.war

drwxr-xr-x 14 root root      4096 Jun 23  2016 docs

drwxr-xr-x  7 root root       105 Jun 23  2016 examples

drwxr-xr-x  5 root root        82 Jun 23  2016 host-manager

drwxr-xr-x 29 root root      4096 Nov 22  2016 icp1.0

-rw-r--r--  1 root root 105455422 Oct 12  2016 icp1.0.war

-rw-r--r--  1 root root  69034191 Oct 10 09:59 icp.war.back

drwxr-xr-x  5 root root        97 Jun 23  2016 manager

drwxr-xr-x  3 root root      4096 Jun 23  2016 ROOT

drwxr-xr-x  4 root root        51 Sep  6  2016 timerTask

-rw-r--r--  1 root root  26133981 Sep  6  2016 timerTask.war

[root@localhost webapps]# cd ..                                                                                                               10 (退出)

[root@localhost apache-tomcat-7.0.68]# cd bin                                                                                   11(进入BIN)

[root@localhost bin]# ./startup.sh                                                                                                            12(开启服务)

Using CATALINA_BASE:   /soft/apache-tomcat-7.0.68                                                                                     13(到web界面上传文件)

Using CATALINA_HOME:   /soft/apache-tomcat-7.0.68

Using CATALINA_TMPDIR: /soft/apache-tomcat-7.0.68/temp

Using JRE_HOME:        /usr/java/jdk1.7.0_80

Using CLASSPATH:       /soft/apache-tomcat-7.0.68/bin/bootstrap.jar:/soft/apache-tomcat-7.0.68/bin/tomcat-juli.jar

Tomcat started.

[root@localhost bin]# ^C

[root@localhost bin]# 

原创粉丝点击