自启动文件放在 /usr/lib/systemd/system 12345678910[Unit]Description=code-server[Service]Type=simpleExecStart=/usr/bin/code-serverUser=your user name[Install]WantedBy=multi-user.target 123sudo systemctl daemon-reload #刷新sudo systemctl start code-serversudo systemctl enable code-server