Skip to content
This repository was archived by the owner on Aug 10, 2022. It is now read-only.

Commit 64a9277

Browse files
committed
Finish!
1 parent a796e06 commit 64a9277

9 files changed

+120
-0
lines changed

Nginx Configuration Check.png

25.4 KB
Loading

Nginx Page.png

49.9 KB
Loading

Node Install PM2 List Result.png

16.2 KB
Loading

Node Install PM2 Result.png

61.4 KB
Loading

Node Install Result.png

89.5 KB
Loading

aws.set.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
### 🎉 Nginx
2+
3+
```cmd
4+
sudo -s
5+
sudo apt-get update
6+
sudo apt-get install nginx <!-- nginx.install.md -->
7+
sudo service ngnix start <!-- nginx.start.md -->
8+
```
9+
10+
![](./Nginx%20Page.png)
11+
12+
<hr>
13+
14+
### 🎉 Install node
15+
16+
```cmd
17+
curl -s https://deb.nodesource.com/setup_16.x | sudo bash
18+
sudo apt-get install -y nodejs
19+
```
20+
21+
![](./Node%20Install%20Result.png)
22+
23+
<hr>
24+
25+
### 🎉 Install pm2
26+
27+
```cmd
28+
sudo npm install -g pm2
29+
```
30+
31+
![](./Node%20Install%20PM2%20Result.png)
32+
33+
<hr>
34+
35+
### 🎉 npm global list
36+
37+
```cmd
38+
npm ls -g
39+
```
40+
41+
![](./Node%20Install%20PM2%20List%20Result.png)\
42+
43+
### 🎉 Nginx Reverse Proxy 설정 후 재부팅
44+
45+
```cmd
46+
cd /etc/nginx/sites-enabled
47+
48+
ls
49+
sudo rm default
50+
sudo nano default
51+
```
52+
53+
후에 다음 파일 복사 붙여 넣기 후 `Ctrl + S`, `Ctrl + X`.
54+
55+
```default
56+
server {
57+
listen 80;
58+
listen [::]:80;
59+
60+
access_log /var/log/nginx/reverse-access.log;
61+
error_log /var/log/nginx/reverse-error.log;
62+
63+
location / {
64+
proxy_pass http://127.0.0.1:3000;
65+
}
66+
}
67+
```
68+
69+
후에 다음 명령어로 제대로 설정 되었는지 확인할 수 있습니다.
70+
71+
```cmd
72+
sudo nginx -t
73+
```
74+
75+
![](./Nginx%20Configuration%20Check.png)
76+
77+
후에 다음 명령어로 nginx 을 재시작 할 있습니다.
78+
79+
```cmd
80+
sudo service nginx restart
81+
```

aws.ssh.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ssh -i c:\key\express-proxy.pem ubuntu@15.164.250.218

nginx.install.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
`sudo apt-get install nginx` 입력 시, 다음과 같이 추가 패키치 설치 안내문이 나왔습니다.
2+
3+
```cmd
4+
The following additional packages will be installed:
5+
fontconfig-config fonts-dejavu-core libdeflate0 libfontconfig1 libgd3
6+
libjbig0 libjpeg-turbo8 libjpeg8 libnginx-mod-http-geoip2
7+
libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter
8+
libnginx-mod-mail libnginx-mod-stream libnginx-mod-stream-geoip2 libtiff5
9+
libwebp7 libxpm4 nginx-common nginx-core
10+
Suggested packages:
11+
libgd-tools fcgiwrap nginx-doc ssl-cert
12+
The following NEW packages will be installed:
13+
fontconfig-config fonts-dejavu-core libdeflate0 libfontconfig1 libgd3
14+
libjbig0 libjpeg-turbo8 libjpeg8 libnginx-mod-http-geoip2
15+
libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter
16+
libnginx-mod-mail libnginx-mod-stream libnginx-mod-stream-geoip2 libtiff5
17+
libwebp7 libxpm4 nginx nginx-common nginx-core
18+
0 upgraded, 20 newly installed, 0 to remove and 64 not upgraded.
19+
Need to get 2689 kB of archives.
20+
After this operation, 8333 kB of additional disk space will be used.
21+
```

nginx.start.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
`sudo apt-get install nginx` 이후에 `sudo service ngnix start` 를 실행했을 때, 다음과 같은 메세지가 떳습니다.
2+
3+
```cmd
4+
Failed to start ngnix.service: Unit ngnix.service not found.
5+
```
6+
7+
참고한 블로그에 오타가 있었던 부분이여서 오타를 다음처럼 `sudo service nginx start` 수정했습니다.
8+
9+
### 관련
10+
11+
```cmd
12+
<!-- service 관련 명령어 (옵션) 확인 -->
13+
sudo service
14+
15+
<!-- 등록된 service 목록 확인 -->
16+
sudo service --status-all
17+
```

0 commit comments

Comments
 (0)