CentOS7下安裝tomcat及操作

來源:互聯網
上載者:User

在安裝solr搜尋伺服器前要先安裝tomcat Web伺服器容器,如下所示是tomcat的安裝過程。

1、將tomcat上傳到CentOS7中,然後找到tomcat所在的檔案夾下,解壓檔案:

[root@localhost slor]# tar -zxf apache-tomcat-7.0.47.tar.gz

2、為了便於管理容器,在usr/local/目錄下建立solr檔案夾,並將tomcat複製過去

[root@localhost solr]# mkdir usr/local/solr[root@localhost solr]# cp apache-tomcat-7.0.47 /usr/local/solr/tomcat -r

3、進入到複製後的tomcat檔案夾下

[root@localhost solr]# cd /usr/local/solr/tomcat/

4、安裝完成,查看存在以下檔案

[root@localhost tomcat]# ll總用量 100drwxr-xr-x. 2 root root  4096 4月  30 13:13 bindrwxr-xr-x. 2 root root  4096 4月  30 13:13 confdrwxr-xr-x. 2 root root  4096 4月  30 13:13 lib-rw-r--r--. 1 root root 56812 4月  30 13:13 LICENSEdrwxr-xr-x. 2 root root     6 4月  30 13:13 logs-rw-r--r--. 1 root root  1192 4月  30 13:13 NOTICE-rw-r--r--. 1 root root  8826 4月  30 13:13 RELEASE-NOTES-rw-r--r--. 1 root root 16262 4月  30 13:13 RUNNING.txtdrwxr-xr-x. 2 root root    29 4月  30 13:13 tempdrwxr-xr-x. 7 root root    76 4月  30 13:13 webappsdrwxr-xr-x. 2 root root     6 4月  30 13:13 work

5、啟動tomcat,先進入到bin檔案夾下

[root@localhost tomcat]# cd bin[root@localhost bin]# ./startup.shUsing CATALINA_BASE:   /usr/local/solr/tomcatUsing CATALINA_HOME:   /usr/local/solr/tomcatUsing CATALINA_TMPDIR: /usr/local/solr/tomcat/tempUsing JRE_HOME:        /usrUsing CLASSPATH:       /usr/local/solr/tomcat/bin/bootstrap.jar:/usr/local/solr/tomcat/bin/tomcat-juli.jar[root@localhost bin]# 

6、關閉tomcat

[root@localhost tomcat]# bin/shutdown.shUsing CATALINA_BASE:   /usr/local/solr/tomcatUsing CATALINA_HOME:   /usr/local/solr/tomcatUsing CATALINA_TMPDIR: /usr/local/solr/tomcat/tempUsing JRE_HOME:        /usrUsing CLASSPATH:       /usr/local/solr/tomcat/bin/bootstrap.jar:/usr/local/solr/tomcat/bin/tomcat-juli.jar[root@localhost tomcat]#

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.