- YUM (Yellodog Updater, Modified, ํจํค์ง ์ ์ฅ์)
RPM์ Package Dependency ๊ฐ์ (๊ด๊ณ ์์กด๋ ๊ฐ์ ) - passwd (ํจ์ค์๋ ๋ณ๊ฒฝ)
- whoami (ํ์ฌ ์ฌ์ฉ์ ์ด๋ฆ)
- hostname (์ค์ ํ ์๋ฒ ์ด๋ฆ)
- /sbin/ifconfig (์๋ฒ ๋ด๋ถ ip ๋ณด๊ธฐ)
- cd /etc/yum.repos.d/
- vi nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/7/$basearch/
gpgcheck=0
enabled=1
- [] ์์๋ ํจํค์ง ๋ช
- yum install nginx -y (-y: ๋ชจ๋ yes)
- ps -ef | grep nginx (ํ๋ก์ธ์ค ํ์ธ)
- nginx (๊ตฌ๋)
- nginx -s stop (๊ตฌ๋ ์ค์ง, ํ๋ก์ธ์ค ์ฃฝ์)
- ๊ณต์ธ ์์ดํผ๋ก nginx ๊ตฌ๋ ์ฌ๋ถ ํ์ธ ๊ฐ๋ฅ (์น http)
- nginx -s reload (ํ๋ก์ธ์ค ์ฌ์์, root ํ๋ก์ธ์ค id ์๋ฐ๋)
- nginx ์ค์ ๋ค์ ๋ชจ๋ ๋ฉ๋ชจ๋ฆฌ์ ์ฌ๋ ค ๋์
stop ์ ํ๋ก์ธ์ค ์ฃฝ์
reload ์์๋ ๋ฉ๋ชจ๋ฆฌ๋ง ๋น์ ๋ค๊ฐ ๋ค์ ์ฑ์ (๋ฉ๋ชจ๋ฆฌ ๊ณต๊ฐ์ ๊ทธ๋๋ก)
restart ๋ ํ๋ก์ธ์ค๋ฅผ ์์ ์ฃฝ์๋ค๊ฐ ๋ค์ ๋์ - service๋ก ๋ฑ๋ก (์๋์ฐ)
systemctl start nginx (๋ฐ๋ชฌ ๋์ฐ๊ธฐ) - ๋ฐ๋ชฌ: ์๋ฒ์ ๋ ์ ๊ณ์ ์ฃฝ์ง ์๊ณ ๋ฒํฐ๊ณ ์์
- systemctl enable nginx (์๋น์ค๋ก ๋ฑ๋ก, ๋ฐ๋ชฌ์ผ๋ก ์๋น์ค ๋์ฐ๊ธฐ)
- systemctl stop nginx (๋ฐ๋ชฌ ๋ด๋ฆฌ๊ธฐ)
- nginx ๋ช
๋ น์ด๋ ํ๋ก์ธ์ค๋ก ์คํ
systemctl ๋ช ๋ น์ด๋ ์๋น์ค๋ก ์คํ (์๋น์ค๊ฐ OS์์ ๊ณ์ ๋๊ณ ์์) - systemctl (system controller)
- centOS 7์ python 2 ์ด๋ฏธ ๊น๋ ค ์์
- volta => node ์ค์น
- RPM(Red hat Package Manager)
- tab: ์๋ ์์ฑ
- :wq (์ ์ฅ ํ ๋๊ฐ๊ธฐ, vi editor ์์)
- nano or vi editor ์ฌ์ฉ๋ฒ ์ตํ๊ธฐ
- cat (๋ด์ฉ ์ถ๋ ฅ)
- nginx; 80 ํฌํธ ์ฌ์ฉ (http)
- Ctrl + R: ์น์ฌ์ดํธ ์๋ก๊ณ ์นจ