설치
cd /opt
cd code-server
mkdir data extensions
nano /etc/systemd/system/code-server.service
systemctl daemon-reload
systemctl start code-server
systemctl status code-server
또는
./code-server --host 0.0.0.0 --port 8096
임시 작성 구간
[Unit]
Description=Visual Studio Code Server
[Service]
Environment="PASSWORD=phw030700_v"
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/code-server"
WorkingDirectory=/opt/code-server
User=root
Group=root
Type=simple
ExecStart=/opt/code-server/code-server --auth password --extensions-dir /opt/code-server/extensions --user-data-dir /opt/code-server/data --locale ko-KR --cert --host 0.0.0.0 --port 2096
Restart=always
[Install]
WantedBy=multi-user.target
Prolog
복사