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