# mkdir -p $HOME/.config/code-server
# vi $HOME/.config/code-server/config.yaml
bind-addr: 0.0.0.0:40000 <--사용할 포트 지정
auth: password <-- 인증 방식 지정
password: qwert1234! <--사용할 암호 지정
cert: false
code-server 실행
code-server 수행 및 지정한 서비스 포트로 접속 테스트
# ./code-server
***** Please use the script in bin/code-server instead!
***** This script will soon be removed!
***** See the release notes at https://github.com/coder/code-server/releases/tag/v3.4.0
[2022-05-25T09:19:58.976Z] info code-server 4.4.0 b088ec7adf9e17bc75215f79e21498eb40da03ed
[2022-05-25T09:19:58.977Z] info Using user-data-dir ~/.local/share/code-server
[2022-05-25T09:19:58.989Z] info Using config file ~/.config/code-server/config.yaml
[2022-05-25T09:19:58.989Z] info HTTP server listening on http://0.0.0.0:40000/
[2022-05-25T09:19:58.989Z] info - Authentication is enabled
[2022-05-25T09:19:58.989Z] info - Using password from ~/.config/code-server/config.yaml
[2022-05-25T09:19:58.989Z] info - Not serving HTTPS
[09:20:02] Extension host agent started.
로그 확인
# ./code-server
***** Please use the script in bin/code-server instead!
***** This script will soon be removed!
***** See the release notes at https://github.com/coder/code-server/releases/tag/v3.4.0
[2022-05-25T09:19:58.976Z] info code-server 4.4.0 b088ec7adf9e17bc75215f79e21498eb40da03ed
[2022-05-25T09:19:58.977Z] info Using user-data-dir ~/.local/share/code-server
[2022-05-25T09:19:58.989Z] info Using config file ~/.config/code-server/config.yaml
[2022-05-25T09:19:58.989Z] info HTTP server listening on http://0.0.0.0:40000/
[2022-05-25T09:19:58.989Z] info - Authentication is enabled
[2022-05-25T09:19:58.989Z] info - Using password from ~/.config/code-server/config.yaml
[2022-05-25T09:19:58.989Z] info - Not serving HTTPS
[09:20:02] Extension host agent started.
[09:20:03] [180.64.215.16][cfe5d45f][ManagementConnection] New connection established.
[09:20:04] [180.64.215.16][92124727][ExtensionHostConnection] New connection established.
[09:20:04] [180.64.215.16][92124727][ExtensionHostConnection] <314> Launched Extension Host Process.
터미널이 종료되도 서비스 되도록 백그라운드로 실행
# nohup ./code-server &
[1] 327
# tail -f nohup.out
[09:20:58] [180.64.215.16][b8f60394][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed.
[09:20:58] [180.64.215.16][acc3ee7f][ExtensionHostConnection] <401> Extension Host Process exited with code: 0, signal: null.