Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Virtual Hostの落とし穴にハマった件 / fjord-lt-6

beco
January 23, 2021

Virtual Hostの落とし穴にハマった件 / fjord-lt-6

Fjord Boot Camp ⚡初めてのLT会 Vol.6
2021/01/23 Sat.

beco

January 23, 2021
Tweet

More Decks by beco

Other Decks in Technology

Transcript

  1. ެ։伴ొ࿥ͨ͠͸ͣͳͷʹ 1FSNJTTJPOEFOJFEʁʁʁ  $ ssh -p (ϙʔτ൪߸) beco@***.***.**.** beco@***.***.**.**: Permission

    denied (publickey). $ ssh-add -K ~/.ssh/sakura_rsa Identity added: /Users/beco/.ssh/sakura_rsa ([email protected]) • 1$্ཱͪ͛ͷͨͼɺ͘͞Β༻ͷ伴Λొ࿥͠௚͢Ӌ໨ʹ
  2. ղܾʂ  • *EFOUJUZ'JMFʹ͘͞Β༻ͷϑΝΠϧΛ௥Ճ Host * AddKeysToAgent yes UseKeychain yes

    IdentityFile ~/.ssh/id_ed25519 IdentityFile ~/.ssh/sakura_rsa ←௥Ճɻ
  3. /HJOYΛ࠶ىಈͤ͞Α͏ͱͨ͠Βʜ  $ sudo /etc/init.d/nginx start [....] Starting nginx (via

    systemctl): nginx.serviceJob for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details. failed!
  4. ղܾʂ  $ sudo nginx -t nginx: the configuration file

    /etc/nginx/nginx.conf syntax is ok nginx: [emerg] open() "/home/demo/public_html/ becolomochi.page/log/access.log" failed (2: No such file or directory) nginx: configuration file /etc/nginx/nginx.conf test failed UUFTUDPOpHVSBUJPOBOEFYJUͱͷ͜ͱɻ ؒҧ͑ͯͨʂ