Linux下部署启动项目

Last login: Sun Jun 23 17:36:37 2019



[oracle@localhost ~]$ lsnrctl start                     //第一步:启动监听,你也可以设置为开机自启

LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 23-6Ղ -2019 17:37:03

Copyright (c) 1991, 2007, Oracle.  All rights reserved.

Starting /oracle/product/10g/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 10.2.0.4.0 - Production
System parameter file is /oracle/product/10g/network/admin/listener.ora
Log messages written to /oracle/product/10g/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 10.2.0.4.0 - Production
Start Date                23-6Ղ -2019 17:37:05
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /oracle/product/10g/network/admin/listener.ora
Listener Log File         /oracle/product/10g/network/log/listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 1 instance(s).
  Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully                    ------监听启动成功!


二:测试连接数据库(可以忽略此步)
[oracle@localhost ~]$ sqlplus /nolog    

SQL*Plus: Release 10.2.0.4.0 - Production on чǚɕ 6Ղ 23 17:37:12 2019

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

SQL> conn /as sysdba    -----连接数据库
Connected.
SQL> exit;          ------退出sql编写命令。
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options


第三步:启动zookeeper。
[oracle@localhost ~]$ cd /home/oracle/deploy/zookeeper-3.4.8/bin/
[oracle@localhost bin]$ ./zkServer.sh start
ZooKeeper JMX enabled by default
Using config: /home/oracle/deploy/zookeeper-3.4.8/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED


第四步:启动Tomcat。
[oracle@localhost bin]$ cd /home/oracle/apache-tomcat-8.5.43/bin/
[oracle@localhost bin]$ ./startup.sh
Using CATALINA_BASE:   /home/oracle/apache-tomcat-8.5.43
Using CATALINA_HOME:   /home/oracle/apache-tomcat-8.5.43
Using CATALINA_TMPDIR: /home/oracle/apache-tomcat-8.5.43/temp
Using JRE_HOME:        /home/jdk1.8.0_211
Using CLASSPATH:       /home/oracle/apache-tomcat-8.5.43/bin/bootstrap.jar:/home/oracle/apache-tomcat-8.5.43/bin/tomcat-juli.jar
Tomcat started.


第五步:查看Tomcat启动日志。
[oracle@localhost bin]$ cd ..
[oracle@localhost apache-tomcat-8.5.43]$ cd logs
[oracle@localhost logs]$ tail -f catalina.out
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值