alias ์„ค์ •ํ•˜๊ธฐ

    ์‚ฌ๋‚ด ๊ฒŒ์ดํŠธ์›จ์ด์— ์ ‘์†ํ•  ๋•Œ๋งˆ๋‹ค ๋ช…๋ น์–ด ์ „์ฒด๋ฅผ ์ž…๋ ฅํ•ด์•ผ ๋˜๋Š” ๊ฒƒ์„ alias ์„ค์ •์„ ํ†ตํ•ด ๊ฐ„๋‹จํ•˜๊ฒŒ ํ•  ์ˆ˜ ์žˆ๋„๋ก ๋ณ€๊ฒฝํ•ด๋ณด์ž! ASIS ์•„๋ž˜์˜ ๋ช…๋ น์–ด๋ฅผ ์ „์ฒด ์ž…๋ ฅํ•ด์•ผ ํ–ˆ๋‹ค. ssh [ID]@hcon.nhnent.com TOBE ๋‹จ์–ด ํ•˜๋‚˜ ์ž…๋ ฅ์œผ๋กœ ์ ‘์†ํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•œ๋‹ค. hcon 1. /Users/nhn ์œ„์น˜๋กœ ์ด๋™ cd /Users/nhn 2. zshrc, cshrc ํŒŒ์ผ์ด ์žˆ๋Š”์ง€ ํ™•์ธ ls -a 3. zshrc, cshrc ํŒŒ์ผ ์—ด๊ธฐ vi ~/.zshrc vi ~/.cshrc 4. ๋‘ ํŒŒ์ผ ๋ชจ๋‘ alias ์„ค์ • alias hcon="ssh [ID]@hcon.nhnent.com" 5. ๋‘ ํŒŒ์ผ ๋ชจ๋‘ ๋ณ€๊ฒฝ ์‚ฌํ•ญ ์ ์šฉ source ~/.zshrc source ~/.cshrc ๋! ์ ‘์† ์‹œ hcon ๋งŒ ์ž…๋ ฅํ•˜..

    nohup๊ณผ &์˜ ์ฐจ์ด

    nohup ๋ฆฌ๋ˆ…์Šค์—์„œ ํ”„๋กœ์„ธ์Šค๋ฅผ ์‹คํ–‰ํ•œ ํ„ฐ๋ฏธ๋„์˜ ์„ธ์…˜ ์—ฐ๊ฒฐ์ด ๋Š์–ด์ง€๋”๋ผ๋„ ์ง€์†์ ์œผ๋กœ ๋™์ž‘ ํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ฃผ๋Š” ๋ช…๋ น์–ด nohup ๋ช…๋ น์„ ๋ฐฑ๊ทธ๋ผ์šด๋“œ(&)๋กœ ์‹คํ–‰ &๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ํ”„๋กœ์„ธ์Šค๊ฐ€ ๋ฐฑ๊ทธ๋ผ์šด๋“œ๋กœ ์‹คํ–‰์ด ๋จ ๋ฐฑ๊ทธ๋ผ์šด๋“œ๋กœ ์‹คํ–‰ ์ค‘์ธ์ง€ ํ™•์ธํ•˜๊ธฐ ps -ef | grep python nohup๊ณผ &์˜ ์ฐจ์ด nohup ํ”„๋กœ๊ทธ๋žจ์„ ๋ฐ๋ชฌ ํ˜•ํƒœ๋กœ ์‹คํ–‰์‹œํ‚ค๋Š” ๊ฒƒ์ด๋ฏ€๋กœ ์„ธ์…˜ ์—ฐ๊ฒฐ์ด ๋Š๊ธฐ๋”๋ผ๋„ ํ”„๋กœ์„ธ์Šค๊ฐ€ ๊ณ„์† ๋™์ž‘๋จ ์‹คํ–‰ ์‹œํ‚ค๋ฉด ๋Œ€๊ธฐ ์ƒํƒœ๊ฐ€ ๋ฐœ์ƒํ•˜๊ณ , ์„ธ์…˜ ์—ฐ๊ฒฐ์ด ๋Š๊ธฐ๋ฉด ํ”„๋กœ์„ธ์Šค๋Š” ๋ฐ”๋กœ ์ข…๋ฃŒ๋จ ๋ฐฑ๊ทธ๋ผ์šด๋“œ(&) ์‹คํ–‰ ์‹œํ‚ค๋ฉด ๋Œ€๊ธฐ ์ƒํƒœ๊ฐ€ ์—†์ง€๋งŒ, ์„ธ์…˜ ์—ฐ๊ฒฐ์ด ๋Š๊ธฐ๋ฉด ํ”„๋กœ์„ธ์Šค๋„ ํ•จ๊ป˜ ์ข…๋ฃŒ๋จ ๋”ฐ๋ผ์„œ, nohup ๋ช…๋ น์„ ๋ฐฑ๊ทธ๋ผ์šด๋“œ(&)๋กœ ๊ฐ™์ด ์‹คํ–‰์‹œํ‚ค๊ฒŒ ๋˜๋ฉด, ๋Œ€๊ธฐ ์ƒํƒœ๋„ ์—†๊ณ  ์„ธ์…˜ ์—ฐ๊ฒฐ์ด ๋Š๊ธฐ๋”๋ผ๋„ ํ”„๋กœ์„ธ์Šค์˜ ์ข…๋ฃŒ ์—†์ด ๋ฐฑ๊ทธ๋ผ์šด๋“œ..

    ํ„ฐ๋ฏธ๋„ ์ข…๋ฃŒํ•ด๋„ ๋ฐฑ๊ทธ๋ผ์šด๋“œ๋กœ ์‹คํ–‰ํ•˜๊ธฐ - &๊ณผ ๋ชจ๋‹ˆํ„ฐ ์Šคํฌ๋ฆฝํŠธ

    ๋ฌธ์ œ ์ƒํ™ฉ nohup node ./node_modules/@vue/cli-service/bin/vue-cli-service serve --port [PORT] & nohup python manage.py runserver [IP]:[PORT] --settings=main.config.settings.debug ์œ„์˜ ๋ช…๋ น์œผ๋กœ ์‚ฌ์ดํŠธ๋ฅผ ์„œ๋ฒ„์— ๋ฐฑ๊ทธ๋ผ์šด๋“œ๋กœ ์‹คํ–‰ํ•˜๊ณ  ์žˆ๋‹ค๊ณ  ์ƒ๊ฐํ–ˆ๋Š”๋ฐ.. ๋•Œ๋•Œ๋กœ ์›น์ด ๋‚ด๋ ค๊ฐ€๋Š” ์ด์Šˆ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. ์›์ธ ์ž˜๋ชป๋œ ๋ช…๋ น์–ด๋กœ ์ธํ•ด์„œ ์‚ฌ์‹ค ๋ฐฑ๊ทธ๋ผ์šด๋“œ๋กœ ์‹คํ–‰์ด ์•ˆ ๋˜๊ณ  ์žˆ๋Š”๊ฒŒ ์•„๋‹๊นŒ? ๋ผ๋Š” ์ƒ๊ฐ์ด ๋“ค์–ด์„œ ์™œ ๊ทธ๋Ÿฌ๋Š”์ง€ ์‹คํ–‰ํ•  ๋•Œ ๋ช…๋ น์„ ๋‹ค์‹œ ์‚ดํŽด๋ดค๋”๋‹ˆ ๋„์šธ ๋•Œ ์žฅ๊ณ  ์‹คํ–‰์— & ๋ฅผ ๋ถ™์ด์ง€ ์•Š๊ณ  ์‹คํ–‰ํ•ด์„œ ํ„ฐ๋ฏธ๋„ ์„ธ์…˜์„ ๋‹ซ์œผ๋ฉด ํ”„๋กœ์„ธ์Šค๋„ ๊ฐ™์ด ์ข…๋ฃŒ๋˜์—ˆ๋˜ ๊ฒƒ์ด์—ˆ๋‹ค.. nohup python manag..

    [Error] WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! SSH ์›๊ฒฉ ์ ‘์† ์—๋Ÿฌํ•ด๊ฒฐ ํ•˜๊ธฐ

    1. ๋ฌธ์ œ ์ƒํ™ฉ ์ž˜ ์ ‘์†๋˜๋˜ ์„œ๋ฒ„์˜€๋Š”๋ฐ ๊ฐ‘์ž๊ธฐ ์—๋Ÿฌ๊ฐ€ ๋œจ๋ฉด์„œ ์ ‘์†์ด ์•ˆ ๋˜์—ˆ๋‹ค. ์œ„์˜ ์ƒํ™ฉ์ด ๋ฐœ์ƒํ•˜๋Š” ์ด์œ ๋ฅผ ์˜ˆ๋ฅผ ๋“ค์–ด๋ณด์ž๋ฉด, A host๊ฐ€ ์žˆ๊ณ , B server๊ฐ€ ์žˆ๋‹ค. A๋Š” ํ•ญ์ƒ B server์— ssh ์ ‘์†์„ ํ•˜๊ณ  ์žˆ์—ˆ๋Š”๋ฐ, B server์— ssh๋‚˜ os๋ฅผ ์ƒˆ๋กœ ์„ค์น˜ํ•˜๋Š” ์ž‘์—…์„ ํ–ˆ๋‹ค. ๊ทธ๋žฌ๋Š”๋ฐ A๊ฐ€ ๋˜‘๊ฐ™์ด B์— ์ ‘์†์„ ์‹œ๋„ํ•˜๊ณ , B์˜ IP๋Š” ๋˜‘๊ฐ™๋‹ค๋ฉด ์œ„์™€ ๊ฐ™์€ ๋ฉ”์‹œ์ง€๊ฐ€ ๋œฌ๋‹ค. SSH ์ตœ์ดˆ ์ ‘์† ์‹œ์— A์™€ B๊ฐ€ ์„œ๋กœ ์ธ์ฆ์„ ํ•˜๋Š”๋ฐ B๋Š” ์ƒˆ๋กœ ์„ค์น˜๋˜์—ˆ๋Š”๋ฐ A๋Š” ์˜ˆ์ „ B์— IP๋กœ ์ธ์ฆ์ด ๋˜์–ด์žˆ๋Š” ์ƒํƒœ์—์„œ B๋กœ ๋กœ๊ทธ์ธ์„ ํ•˜๋ฉด B๋Š” ์ธ์ฆ์ •๋ณด๊ฐ€ ์—†๊ธฐ ๋•Œ๋ฌธ์— ์œ„์™€ ๊ฐ™์€ ๋ฉ”์‹œ์ง€๊ฐ€ ๋œจ๋Š” ๊ฒƒ์ด๋‹ค. 2. ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• vi /Users/nhn/.ssh/known_hosts # ๋ณดํ†ต์€ # /root/.ssh/known_..

    [Error] Ubuntu 20.04์—์„œ ๋ฐœ์ƒํ•˜๋Š” libseccomp2 ์˜์กด์„ฑ ๋ฌธ์ œ ํ•ด๊ฒฐํ•˜๊ธฐ

    1. ๋ฌธ์ œ ์ƒํ™ฉ ์šด์˜์„œ๋ฒ„์ธ ์šฐ๋ถ„ํˆฌ 20.04 ์ธ์Šคํ„ด์Šค์—์„œ ๋„์ปค๋ฅผ ์„ค์น˜ํ•˜๋ ค๊ณ  ํ•˜๋Š”๋ฐ ์˜์กด์„ฑ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. (๊ฐœ๋ฐœ์„œ๋ฒ„์—์„œ๋Š” ๋ฐœ์ƒํ•˜์ง€ ์•Š์Œ.. ์ฐจ์ด๊ฐ€ ๋ญ˜๊นŒ?) ๋Œ€๋žต ์ด๋Ÿฐ ์‹์œผ๋กœ.. ๋ช‡๋ช‡ ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ์š”์ฒญํ•œ ์ƒํ™ฉ์ด ๋ถˆ๊ฐ€๋Šฅํ•  ์ˆ˜๋„ ์žˆ๊ณ , ... ๋‹ค์Œ ํŒจํ‚ค์ง€์˜ ์˜์กด์„ฑ์ด ๋งž์ง€ ์•Š์Šต๋‹ˆ๋‹ค: containerd.io : ์˜์กด: libseccomp2 (>= 2.4.0) ํ•˜์ง€๋งŒ 2.3.1-2.1ubuntu2~20.04.1 ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•  ๊ฒƒ์ž…๋‹ˆ๋‹ค ์•„๋ž˜ ๋ฐฉ๋ฒ•์œผ๋กœ ์ง์ ‘ ์„ค์น˜๋ฅผ ์ง„ํ–‰ํ•ด๋„ ์›ํ•˜๋Š” ๋ฒ„์ „์ด ์„ค์น˜๊ฐ€ ๋˜์ง€ ์•Š์•˜๋‹ค :( sudo apt-get install libseccomp2 2. ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• ๋‹ต์€ ๊ณต์‹ ๋‹ค์šด๋กœ๋“œ! https://pkgs.org/download/libseccomp2 ๋ฆฌ๋ˆ…์Šค์šฉ Libsecc..

    [Ubuntu] apt-get update์™€ apt-get upgrade ์ฐจ์ด

    ์šฐ๋ถ„ํˆฌ์—์„œ ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•  ๋•Œ apt-get ๋ช…๋ น์„ ๋งŽ์ด ์‚ฌ์šฉํ•œ๋‹ค. apt-get์€ Advanced Packaging Tool์˜ ์•ฝ์ž๋กœ ์šฐ๋ถ„ํˆฌ๋ฅผ ํฌํ•จํ•œ ๋ฐ๋น„์•ˆ ๊ณ„์—ด ๋ฆฌ๋ˆ…์Šค์—์„œ ์‚ฌ์šฉ๋˜๋Š” ํŒจํ‚ค์ง€ ๊ด€๋ฆฌ ํˆด์ด๋‹ค. apt-get update์™€ apt-get upgrade๋ฅผ ๋งŽ์ด ์‚ฌ์šฉํ•˜๋Š”๋ฐ ์ •ํ™•ํžˆ ์–ด๋–ค ์ฐจ์ด๊ฐ€ ์žˆ๋Š”์ง€ ๊ถ๊ธˆํ•ด์ ธ์„œ ์ •๋ฆฌ๋ฅผ ํ•ด๋ณธ๋‹ค. apt-get update ์šด์˜์ฒด์ œ์—์„œ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ํŒจํ‚ค์ง€๋“ค๊ณผ ๊ทธ ๋ฒ„์ „์— ๋Œ€ํ•œ ์ •๋ณด๋ฅผ ์—…๋ฐ์ดํŠธํ•˜๋Š” ๋ช…๋ น์ด๋‹ค. ์„ค์น˜๋˜์–ด ์žˆ๋Š”(Installed) ํŒจํ‚ค์ง€๋ฅผ ์—…๋ฐ์ดํŠธ ํ•˜๋Š” ๊ฒƒ์ด ์•„๋‹ˆ๋ผ ์„ค์น˜ ๊ฐ€๋Šฅํ•œ(Available) ๋ฆฌ์ŠคํŠธ๋ฅผ ์—…๋ฐ์ดํŠธ ํ•˜๋Š” ๊ฒƒ์ด๋‹ค! ์˜ˆ๋ฅผ ๋“ค์–ด apt-get install๋กœ ํŠน์ • ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•  ์ˆ˜ ์—†๋Š” ๊ฒฝ์šฐ, update ๋ช…๋ น์œผ๋กœ ํŒจํ‚ค์ง€ ๋ฆฌ์ŠคํŠธ๋ฅผ ์ตœ์‹ ์œผ๋กœ ์—…๋ฐ์ดํŠธ ..

    [Ubuntu] apt-get๊ณผ apt ์ฐจ์ด

    ์šฐ๋ถ„ํˆฌ์—์„œ ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•  ๋•Œ apt-get๊ณผ apt๋ฅผ ํ˜ผํ•ฉํ•ด์„œ ๋งŽ์ด ์‚ฌ์šฉํ•˜๋Š”๋ฐ, ๋‘ ๋ช…๋ น์ด ์ •ํ™•ํžˆ ์–ด๋–ค ์ฐจ์ด๊ฐ€ ์žˆ๋Š”์ง€ ๊ถ๊ธˆํ•ด์ ธ์„œ ์ •๋ฆฌ๋ฅผ ํ•ด๋ณธ๋‹ค. apt(Advanced Packaging Tool)์€ ๋ฐ๋น„์•ˆ(Debian) GNU/Linux ๊ณ„์—ด์˜ ํŒจํ‚ค์ง€ ๊ด€๋ฆฌ ๋ช…๋ น๋„๊ตฌ๋กœ ์šฐ๋ถ„ํˆฌ(Ubuntu)์—์„œ๋„ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค. apt-get๊ณผ apt ์ฐจ์ด apt-get : ์ธ์ฆ๋œ ์†Œ์Šค์—์„œ ํŒจํ‚ค์ง€ ๋ฐ ํŒจํ‚ค์ง€์— ๋Œ€ํ•œ ์ •๋ณด๋ฅผ ๊ฒ€์ƒ‰ํ•˜๊ณ , ์ข…์†์„ฑ๊ณผ ํ•จ๊ป˜ ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜, ์—…๊ทธ๋ ˆ์ด๋“œ ๋ฐ ์ œ๊ฑฐ apt : ๋” ๋‚˜์€ ๋Œ€ํ™”์‹ ์‚ฌ์šฉ์„ ์œ„ํ•œ ๊ณ ๊ธ‰ ๋ช…๋ น ์ค„ ์ธํ„ฐํŽ˜์ด์Šค ๊ฒฐ๋ก ์ ์œผ๋กœ ํฐ ์ฐจ์ด๋Š” ์—†์Šต๋‹ˆ๋‹ค. apt-get์— ์˜ต์…˜๋“ค์ด ๋งŽ์•„์ง€๋‹ค ๋ณด๋‹ˆ ์ž์ฃผ ์‚ฌ์šฉํ•˜๋Š” ์˜ต์…˜๋“ค์„ ์ถ”์ถœํ•ด์„œ apt์—์„œ ์‚ฌ์šฉ์ž๋“ค์ด ์‚ฌ์šฉํ•˜๊ธฐ ํŽธํ•˜๊ณ , ๋ณด๊ธฐ ํŽธํ•˜๊ฒŒ ๋งŒ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋ž˜์„œ apt..

    [Error] FirewallD is not running ํ•ด๊ฒฐํ•˜๊ธฐ

    1. ๋ฌธ์ œ ์ƒํ™ฉ CentOS 7์—์„œ ๋ฐฉํ™”๋ฒฝ์„ ์—ด๋ ค๊ณ  firewall ๊ด€๋ จ ๋ช…๋ น์„ ์ž…๋ ฅํ–ˆ๋Š”๋ฐ FirewallD is not running ์ด๋ผ๋Š” ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. 2. ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• ์•„๋ž˜ ๋ช…๋ น์„ ํ†ตํ•ด ์‹คํ–‰์‹œํ‚จ ๋’ค ๋‹ค์‹œ ์‚ฌ์šฉํ•˜๋ฉด ์ •์ƒ์ ์œผ๋กœ ์ž‘๋™ํ•œ๋‹ค. systemctl start firewalld 3. ์‚ฌ์šฉ๋ฒ• # check the status of the service (running and enabled) systemctl status firewalld # if the service is not running, start it systemctl start firewalld # ์—๋Ÿฌ๋ฐœ์ƒ์‹œ Failed to start firewalld.service: Unit is masked. systemctl unmask fi..

    [Error] firewall-cmd: command not found ํ•ด๊ฒฐํ•˜๊ธฐ

    1. ๋ฌธ์ œ ์ƒํ™ฉ CentOS 7์—์„œ ๋ฐฉํ™”๋ฒฝ ๊ด€๋ จ ํฌํŠธ๋‚˜ ์„œ๋น„์Šค๋ฅผ ์—ด๊ฑฐ๋‚˜ ๋‹ซ์„ ๋•Œ, firewalld ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค. ์ตœ์†Œ ์„ค์น˜๋ฅผ ํ–ˆ์„ ๋•Œ์—๋Š” ์ž๋™์œผ๋กœ ์„ค์น˜๋˜์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์— firewalld ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ–ˆ์„ ๋•Œ, firewall-cmd: command not found๋ผ๋Š” ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค. 2. ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• ์•„๋ž˜ ๋ช…๋ น์œผ๋กœ ํ•„์š”ํ•œ ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•˜๋ฉด ํ•ด๊ฒฐ ์™„๋ฃŒ! yum install firewalld 3. ์‚ฌ์šฉ๋ฒ• systemctl unmask firewalld systemctl enable firewalld systemctl start firewalld ์ฐธ๊ณ  ์‚ฌ์ดํŠธ https://xorms0707.tistory.com/93

    [Error] bash: netstat: command not found ํ•ด๊ฒฐํ•˜๊ธฐ

    1. ๋ฌธ์ œ ์ƒํ™ฉ Ubuntu, CentOS์™€ ๊ฐ™์€ Linux์—์„œ netstat ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ–ˆ์„ ๋•Œ bash: netstat: command not found ์˜ค๋ฅ˜๋ฅผ ํ•ด๊ฒฐํ•˜๊ณ ์ž ํ•œ๋‹ค! 2. ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• ifconfig, netstat ๋“ฑ ๋„คํŠธ์›Œํฌ ๊ด€๋ จ ๋ช…๋ น์–ด์˜ ๊ฒฝ์šฐ net-tools ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•ด์•ผ ํ•œ๋‹ค. Ubuntu apt install net-tools CentOS yum install net-tools ์ฐธ๊ณ  ์‚ฌ์ดํŠธ https://blog.dalso.org/linux/14393

    RAID๋ž€?

    RAID (Redundant Array of Inexpensive Disks) RAID๋ž€? ์—ฌ๋Ÿฌ ๊ฐœ์˜ ๋””์Šคํฌ๋ฅผ ๋ฌถ์–ด ํ•˜๋‚˜์˜ ๋””์Šคํฌ์ฒ˜๋Ÿผ ์‚ฌ์šฉํ•˜๋Š” ๊ธฐ์ˆ ์ด๋‹ค. ๊ณผ๊ฑฐ์—๋Š” ์ฃผ๋กœ ์šฉ๋Ÿ‰์ด ์ž‘์€ ๋””์Šคํฌ๋“ค์„ ์—ฐ๊ฒฐํ•ด ๋””์Šคํฌ ์šฉ๋Ÿ‰์„ ๋†’์ด๊ธฐ ์œ„ํ•ด ์‚ฌ์šฉํ–ˆ๋‹ค. ์˜ค๋Š˜๋‚ ์—๋Š” ๋””์Šคํฌ ์„ฑ๋Šฅ ํ–ฅ์ƒ์—์„œ ๋‚˜์•„๊ฐ€ ๋””์Šคํฌ ์˜ค๋ฅ˜๋‚˜ ๋ฐ์ดํ„ฐ ์†์‹ค ๋“ฑ ์žฅ์• ์— ๋Œ€๋น„ํ•˜๊ธฐ ์œ„ํ•œ ์šฉ๋„๋กœ๋„ ์‚ฌ์šฉ๋˜๊ณ  ์žˆ๋‹ค. ์„œ๋ฒ„์— ์ €์žฅ๋˜๋Š” ๋ฐ์ดํ„ฐ์˜ ๊ฒฝ์šฐ, ์†์‹ค ๋˜๋Š” ์œ ์ถœ์— ๋Œ€๋น„ํ•ด์•ผ ํ•œ๋‹ค. ๊ทธ๋ž˜์„œ ๋งŽ์€ ์„œ๋ฒ„ ๊ด€๋ฆฌ์ž๋Š” RAID ๊ตฌ์„ฑ์„ ํ†ตํ•ด ๋””์Šคํฌ์˜ ๊ฐ€์šฉ์„ฑ์„ ๋†’์ด๊ฑฐ๋‚˜ ์„œ๋ฒ„ ๋ฐ์ดํ„ฐ์˜ ์•ˆ์ •์„ฑ์„ ํ™•๋ณดํ•  ์ˆ˜ ์žˆ๋‹ค. RAID์˜ ์žฅ์  ์šด์šฉ ๊ฐ€์šฉ์„ฑ, ๋ฐ์ดํ„ฐ ์•ˆ์ •์„ฑ ์ฆ๋Œ€ ๋””์Šคํฌ ์šฉ๋Ÿ‰ ์ฆ์„ค์˜ ์šฉ์ด์„ฑ ๋””์Šคํฌ I/O ๋ณ‘๋ ฌํ™”๋กœ ์ธํ•œ ์„ฑ๋Šฅ ํ–ฅ์ƒ ์•ž์œผ๋กœ ํŒจ๋ฆฌํ‹ฐ(Parity)๋ผ๋Š” ๋‹จ์–ด๊ฐ€ ์ž์ฃผ ๋“ฑ์žฅํ•  ๊ฒƒ์ธ๋ฐ, ..

    [Error] configure: error: no acceptable C compiler found in $PATH

    CentOS 7.9 ํ™˜๊ฒฝ์— PostgreSQL 8.4.0 ๋ฒ„์ „์„ ์„ค์น˜ํ•˜๋Š” ์ค‘ ./configure๋ฅผ ์‹คํ–‰ํ•˜๋‹ˆ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. checking for gcc... no checking for cc... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. gcc๋‚˜ cc๊ฐ€ ์—†์–ด์„œ ๋‚˜๋Š” ์—๋Ÿฌ์ธ ๊ฒƒ ๊ฐ™๋‹ค. ์•„๋ž˜ ์ฝ”๋“œ๋ฅผ ์‹คํ–‰ํ•ด ํ•„์š”ํ•œ ์ปดํŒŒ์ผ๋Ÿฌ๋ฅผ ์„ค์น˜ํ•ด์ค€๋‹ค. sudo yum install gcc glibc glibc-common gd gd-devel ์„ค์น˜ ํ›„ ๋‹ค์‹œ configure๋ฅผ ํ•ด๋ณด๋ฉด ์ž˜ ์‹คํ–‰๋œ๋‹ค! ์ฐธ๊ณ ๋งํฌ https://sojinhwan0207.tistory.com/90

    ๋ฆฌ๋ˆ…์Šค ๋‹ค์–‘ํ•œ ํ™˜๊ฒฝ์„ค์ • ํŒŒ์ผ ์•Œ์•„๋ณด๊ธฐ (feat. ์‹œ์Šคํ…œ๊ณผ ์‚ฌ์šฉ์ž)

    NHN Cloud์— redis๋ฅผ ์ž๋™ ์„ค์น˜ํ•˜๋Š” ์‰˜ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์ž‘์„ฑํ•˜๋ฉด์„œ ์—ฌ๋Ÿฌ ํ™˜๊ฒฝ์„ค์ • ํŒŒ์ผ์„ ์ˆ˜์ •ํ•ด์•ผ ํ•˜๋Š” ์ƒํ™ฉ์ด ์žˆ์—ˆ๋‹ค. ์‚ฌ์‹ค /etc/profile, bashrc๋ฅผ ์ˆ˜์ •ํ•˜๋ฉด์„œ๋„ ์ •ํ™•ํžˆ ์–ด๋–ค ์•„์ด๋“ค์ธ์ง€ ์•Œ์ง€ ๋ชปํ•œ ์ฑ„ ์ฐœ์ฐœํ•œ ์ƒํƒœ๋กœ.. ๋Œ์•„๊ฐ€๋Š”๋ฐ๋งŒ ์ง‘์ค‘ํ•œ ์ ์„ ๋ฐ˜์„ฑํ•˜๋ฉด์„œ (ใ… ใ… ) ๋ฆฌ๋ˆ…์Šค์— ์–ด๋–ค ํ™˜๊ฒฝ์„ค์ • ํŒŒ์ผ๋“ค์ด ์žˆ๋Š”์ง€, ์–ด๋–ค ์—ญํ• ์„ ํ•˜๋Š”์ง€, ์–ด๋–ค ์ˆœ์„œ๋กœ ์ ์šฉ๋˜๋Š”์ง€ ๊ผผ๊ผผํžˆ ์•Œ์•„๋ณด๊ณ ์ž ํ•œ๋‹ค. ๋˜ํ•œ, ์„ ์ž„๋‹˜๊ป˜์„œ ๋ง์”€ํ•ด์ฃผ์‹  ์‹œ์Šคํ…œ์šฉ๊ณผ ์œ ์ €๋ณ„ ํ™˜๊ฒฝ์„ค์ • ํŒŒ์ผ์˜ ๊ตฌ๋ถ„๊ณผ ์„ค์ • ๋‚ด์šฉ์„ ์˜๊ตฌ์ ์œผ๋กœ ์ ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•๋„ ํ•จ๊ป˜ ์‚ดํŽด๋ณด์ž! 1. ์‹œ์Šคํ…œ / ์‚ฌ์šฉ์ž ์„ค์ • ํŒŒ์ผ ์‹œ์Šคํ…œ ์„ค์ • ํŒŒ์ผ ์‹œ์Šคํ…œ(๋กœ๊ทธ์ธ ์‰˜)์„ ์‚ฌ์šฉํ•˜๋Š” ์ „์ฒด ์‚ฌ์šฉ์ž์˜ ๊ณตํ†ต ํ™˜๊ฒฝ์„ ์„ค์ •, ์‹œ์Šคํ…œ ๊ด€๋ฆฌ์ž๊ฐ€ ๊ด€๋ฆฌ /etc ๋””๋ ‰ํ† ๋ฆฌ์— ์กด์žฌ ๋งŽ์ด ์‚ฌ์šฉํ•˜๋Š” bash ์‰˜ /et..

    wget์ด๋ž€? ๊ฐœ๋…, ํŠน์ง•๊ณผ ์‚ฌ์šฉ๋ฒ•์— ๋Œ€ํ•ด์„œ

    NHN Cloud ์ธ์Šคํ„ด์Šค์— MySQL์„ ์„ค์น˜ํ•˜๋Š” ์‰˜ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์ž‘์„ฑํ•˜๋ฉด์„œ wget์ด๋ผ๋Š” ๊ฒƒ์„ ์•Œ๊ฒŒ ๋˜์—ˆ๋‹ค. ๋ฆฌ๋ˆ…์Šค์—์„œ ์ธํ„ฐ๋„ท์„ ํ†ตํ•ด ํŒŒ์ผ์„ ๋ฐ›๋Š” ๊ฐ€์žฅ ์ข‹์€ ๋ฐฉ๋ฒ•์€ wget ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด๋‹ค. ๋‹จ์ˆœํžˆ ๋‹จ์ผ ํŒŒ์ผ์„ ๋ฐ›๋Š” ์ •๋„๋กœ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์—ˆ๋Š”๋ฐ ๋‹ค๋ฅธ ์ธํ„ด๋ถ„์ด --spider ์˜ต์…˜ ์‚ฌ์šฉํ•œ ๊ฒƒ์„ ๋ณด๊ณ  wget์— ๋Œ€ํ•ด์„œ ์ข€ ๋” ์ž์„ธํžˆ ์•Œ์•„๋ณผ๊นŒ ํ•œ๋‹ค! โœ… ๊ณต์‹๋ฌธ์„œ http://gnu.org/software/wget/ ๊ฐœ๋… wget์€ webget์˜ ์ค„์ž„๋ง HTTP, HTTPS, FTP์™€ FTPS ๋“ฑ ๊ฐ€์žฅ ๋„๋ฆฌ ์‚ฌ์šฉ๋˜๋Š” ์ธํ„ฐ๋„ท ํ”„๋กœํ† ์ฝœ์„ ์ด์šฉํ•ด ํŒŒ์ผ์„ ๊ฒ€์ƒ‰ํ•˜๊ธฐ ์œ„ํ•œ ์ž์œ  ์†Œํ”„ํŠธ์›จ์–ด ํŒจํ‚ค์ง€ ์ƒํ˜ธ์ž‘์šฉ ํ•˜์ง€ ์•Š๋Š” (non-interactive) ์ปค๋งจ๋“œ๋ผ์ธ ํˆด์ด๊ธฐ ๋•Œ๋ฌธ์— ์Šคํฌ๋ฆฝํŠธ, cron ์ž‘์—…, X-Windows ..

    Yum์ด๋ž€? ๊ฐœ๋…, ์‚ฌ์šฉ๋ฒ• ๋ฐ ๋™์ž‘๋ฐฉ์‹์— ๋Œ€ํ•ด์„œ

    yum์— ๋Œ€ํ•ด์„œ ๊ฐœ๋… Yellowdog Update Modified์˜ ์•ฝ์ž ๋ ˆ๋“œํ–‡ ๊ณ„์—ด์˜ ๋ฆฌ๋ˆ…์Šค์—์„œ ์‚ฌ์šฉํ•˜๋Š” ํŒจํ‚ค์ง€ ์„ค์น˜ ๊ด€๋ฆฌ ๋„๊ตฌ rpm์ด ํ•ด๊ฒฐํ•˜์ง€ ๋ชปํ–ˆ๋˜ ํŒจํ‚ค์ง€ ์˜์กด์„ฑ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•œ ์Šค๋งˆํŠธํ•œ ํŒจํ‚ค์ง€ ๊ด€๋ฆฌ ํˆด ํŒจํ‚ค์ง€ ์˜์กด์„ฑ ๋ฌธ์ œ๋ฅผ ์ž๋™์œผ๋กœ ์ฒ˜๋ฆฌํ•˜๋ฉด์„œ ์„ค์น˜, ์—…๋ฐ์ดํŠธ, ์‚ญ์ œ๋ฅผ ์ง„ํ–‰ → Spring(=rpm)์—์„œ ์•ˆ๋˜๋˜ dependency ์ฃผ์ž…์„ Springboot(=yum)์—์„œ ํ•ด์ฃผ๋Š” ๋Š๋‚Œ ๋ฐœ์Œ์€ ๋Œ€๋ถ€๋ถ„ ์—ผ์ด๋ผ๊ณ  ํ•œ๋‹ค..! ๐Ÿ’ก ํŒจํ‚ค์ง€ ์˜์กด์„ฑ ์ด๋ž€? ๋”๋ณด๊ธฐ A๋ผ๋Š” ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•˜๋ ค๋ฉด B ํŒจํ‚ค์ง€๋ฅผ ๋จผ์ € ์„ค์น˜ํ•ด์•ผ ํ•˜๋Š” ๊ฒƒ์ด๋‹ค. A๋ผ๋Š” ํŒจํ‚ค์ง€๋ฅผ B ํŒจํ‚ค์ง€์˜ ๊ธฐ๋Šฅ์„ ์‚ฌ์šฉํ•˜๋„๋ก ์ œ์ž‘๋˜์—ˆ๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค. ์„œ๋กœ ์—ฌ๋Ÿฌ ํŒจํ‚ค์ง€๋“ค์ด ์˜์กด์„ฑ์„ ๊ฐ–๊ฒŒ ๋˜์–ด ํŒจํ‚ค์ง€ ๊ฐ„์˜ ์˜์กด ๊ด€๊ณ„๊ฐ€ ์ ์  ๋ณต์žกํ•ด์ง€๊ฒŒ ๋˜๊ณ , ๊ด€๋ฆฌ๊ฐ€ ์–ด๋ ค์›Œ์ง€๋Š” ๋ฌธ์ œ๊ฐ€ ์žˆ..

    #!/bin/bash ๋Œ€์‹  #!/usr/bin/env ์‚ฌ์šฉํ•˜๊ธฐ

    #! sharp(#) + bang(!)์˜ ํ•ฉ์„ฑ์–ด, shebang์ด๋ผ ํ•œ๋‹ค. 2byte์˜ ๋งค์ง ๋„˜๋ฒ„(magic number)๋กœ ์ด ์ž์ฒด๊ฐ€ ํ•˜๋‚˜์˜ ๊ธฐํ˜ธ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‹คํ–‰์‹œํ‚ฌ ํ”„๋กœ๊ทธ๋žจ์˜ ๊ฒฝ๋กœ๋ฅผ ์ง€์ •ํ•˜๋Š” ์—ญํ•  ์ด ๋’ค์— ๋‚˜์˜ค๋Š” ๊ฒƒ์€ ๊ฒฝ๋กœ๋ช…, ๋ช…๋ น์–ด๋“ค์„ ํ•ด์„ํ•  ํ”„๋กœ๊ทธ๋žจ์˜ ์œ„์น˜๋ฅผ ๋‚˜ํƒ€๋ƒ„ ๊ฒฝ๋กœ๊ฐ€ ์ •ํ™•ํ•˜์ง€ ์•Š๋‹ค๋ฉด bad interpreter ๋ฐœ์ƒ ๋‹ค๋ฅธ ์ธํ„ฐํ”„๋ฆฌํ„ฐ๋ฅผ ์ง€์ •ํ•˜๋ฉด ๋ฌธ๋ฒ• ์˜ค๋ฅ˜ ๋ฐœ์ƒ ๋ฌธ๋ฒ• #! [optional-arg] #! ๋’ค์— ๊ณต๋ฐฑ์ด ํ•˜๋‚˜ ์žˆ์–ด๋„ ๋™์ž‘ ์—๋Š” ํ”„๋กœ๊ทธ๋žจ์˜ ์ ˆ๋Œ€๊ฒฝ๋กœ ์ž…๋ ฅ ์˜ˆ์‹œ #!/bin/sh #!/bin/bash #!/usr/bin/php #!/usr/bin/python -O #!/usr/bin/env bash #!/usr/bin/env interpreter์— ๋“ค์–ด๊ฐˆ ํ”„๋กœ๊ทธ๋žจ์˜ ์ ˆ๋Œ€ ๊ฒฝ๋กœ๋Š” ์‹œ์Šคํ…œ์— ..