๋ฐ์ํ
๋ณต๊ตฌํ ์ ์๋ ์ฅ์ ๋ฅผ ๊ฐ์งํ๋ฉด EC2 ์ธ์คํด์ค๊ฐ ์ฌ์ฉ ์ค์ง๋๋๋ก ์์ฝ๋ฉ๋๋ค. ๋ผ๊ณ ์ด๋ฉ์ผ์ด ๋์๋ค..!!
๋๋ฒ์งธ ๊ฒฝํํ๋ ์ผ์ด๋ผ์ ๊ทธ๋ฐ์ง ์ด์ ๊ทธ๋ฌ๋ ค๋ํ๋ค..๋ฌด๋ฃ ์ธ์คํด์ค๋๊น ์ด๋ฐ๊ฑด๊ฐ?!
ํ๊ฒฝ : EC2 Ubuntu, tomcat9, Nginx, Oracle 11g XE
Instance state -> Stop instance ํด๋ฆญ (์์ ํ Stopped ๋ ๋๊น์ง 5๋ถ ~10๋ถ ์ ๋ ์์๋จ) -> Start instance ํด๋ฆญ
์๋ฒ ์ ์ํ ํฐ์บฃ & Nginx ์ฌ์์
$ sudo service tomcat9 start
$ sudo service nginx start
์ค๋ผํด ๊ธฐ๋
$ su - oracle
$ sqlplus /nolog
SQL > conn /as sysdba
SQL > startup;
ORACLE instance started.
Total System Global Area 405020672 bytes
Fixed Size 2226960 bytes
Variable Size 301991152 bytes
Database Buffers 96468992 bytes
Redo Buffers 4333568 bytes
Database mounted.
Database opened.
๋ฐฉํ๋ฒฝ ์ค์ ํ์ธ
# ๋ฐฉํ๋ฒฝ ์ค์ ํ์ธ
$systemctl status firewalld
# ๋ฐฉํ๋ฒฝ ๋นํ์ฑํ ๋ฐ ์ค์ ์ ์ง
$sudo systemctl stop firewalld
$sudo systemctl mask firewalld
์ค๋ผํด ๋ฆฌ์ค๋ ๊ด๋ฆฌ ์ ์
$ lsnrctl
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 21-4์ -2022 14:18:52
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Welcome to LSNRCTL, type "help" for information.
LSNRCTL> start
Starting /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.2.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/green/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=green)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 21-4์ -2022 14:18:59
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/green/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=green)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
300x250
'์๋ฒ > AWS' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[EC2] AWS ํ๋ฆฌํฐ์ด ์ฌ์ฉ๋ฒ Step1 - ์ธ์คํด์ค/ํ๋ ฅ IP ์์ฑ (1) | 2022.08.01 |
---|---|
[EC2] 101: network is unreachable - apt update ์๋ฌ ํด๊ฒฐ (0) | 2022.07.05 |
[error] EC2 ์๋ฒ ์ฌ๋ถํ ํ ๋ฐ์ดํฐ ์ฐ๋์๋ฌ ํด๊ฒฐํ๊ธฐ (0) | 2022.03.31 |
[AWS] ๋ณต๊ตฌํ ์์๋ ์ฅ์ - Amazon EC2 Instance Retirement (0) | 2022.03.30 |
AWS EC2 root ๋ณผ๋ฅจ์ฉ๋ ๋๋ฆฌ๊ธฐ (2) | 2022.03.22 |