解決的方法在 https://unix.stackexchange.com/questions/398905/vnc-server-not-listening-connections-but-from-localhost 這個網址上可以找到。
其原因為 VncServer 在 Debian 9 上執行時, 預設只讓 localhost 連線。
因此, 只要在執行 vncserver 指令時, 以 "vncserver -localhost no" 執行之, 即可連線。
LANG=C xdg-user-dirs-update --force
[mysqld]
sql_mode=
存檔後,重新啟動 MySQL 服務,使變更生效。$sudo service mysql restart
2. 在 judgehost 主機上建立 chroot 環境:INSTALLDEBS="default-jre-headless locales"
改好後,再執行一次即可,如下:$sudo /opt/domjudge/judgehost/bin/dj_make_chroot
sudo mkdir /etc/systemd/system/mysql.service.d
sudo vi /etc/systemd/system/mysql.service.d/override.conf
Added this in the new file override.conf:[Service]
LimitNOFILE=5000
Then restarted the service:sudo systemctl daemon-reload
sudo systemctl restart mysql