Code-Server 구축하기(Ubuntu)

우분투 24.04에서 code-server 설치

code-server는 Visual Studio Code를 브라우저에서 사용할 수 있도록 해주는 오픈소스 프로젝트 임.

sudo apt update && sudo apt upgrade -y

curl -fsSL https://code-server.dev/install.sh | sh
스크립트가 code-server 바이너리를 /usr/bin/code-server로 설치

sudo systemctl enable –now code-server@USER
서비스로 등록 및 자동 시작 설정(기본적으로 설치 시 systemd 서비스가 설정)

sudo systemctl status code-server@USER
상태확인

config.yaml 파일 편집

~/.config/code-server/config.yaml
bind-addr: 0.0.0.0:8383
auth: password
password: j~~~~~
cert: false

파일 수정후 재시작
sudo systemctl restart code-server@$USER

#####
http://서버IP:8080

Similar Posts

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다