11 Answers · Read the HOSTNAME environment variable through System.getenv() · Execute hostname and read the response · Read /etc/hostname (to do ...
確定! 回上一頁