差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

兩邊的前次修訂版 前次修改
tech:ubuntu [2023/04/09 14:27] jonathantech:ubuntu [2023/07/05 11:02] (目前版本) jonathan
行 1: 行 1:
 ====== Ubuntu 操作整理 ====== ====== Ubuntu 操作整理 ======
-===== 更改 hostname ===== +  * 至 [[tech/ubuntu18]]
-  * Exp. 設定 hostname 為 iServStorM1<code> +
-sudo su - +
-vi /etc/hosts +
-</code><file> +
-127.0.0.1       localhost +
-127.0.1.1       iServStorM1 +
-+
-</file><code sh> +
-vi /etc/hostname +
-</code><file> +
-iServStorM1 +
-</file><code sh> +
-hostname -F /etc/hostname +
-</code> +
-  * 參考網址 -  +
-    * http://computer.jges.mlc.edu.tw/index.php/ubuntu/112-ubuntu-14-04-%E8%A8%AD%E5%AE%9Ahostname +
- +
-===== Server 版安裝圖形操作介面 ===== +
-  * <code sh> +
-sudo apt-get install --no-install-recommends ubuntu-desktop +
-</code> +
-  * 參考網址 - +
-    * http://www.arthurtoday.com/2012/11/ubuntu-server-install-unity-gui.html +
- +
-===== 清除系統檔案空間 ===== +
-  * System Journal Logs Ref - https://ubuntuhandbook.org/index.php/2020/12/clear-systemd-journal-logs-ubuntu/ +
-    * 查看目前已使用空間 <cli> +
-root@demo-77:/var/log/journal/4ad9885bb19142118fd758b3be95057e# journalctl --disk-usage +
-Archived and active journals take up 4.0G in the file system. +
-</cli> +
-    * 即時清除保留兩天 <cli> +
-root@demo-77:/var/log/journal/4ad9885bb19142118fd758b3be95057e# journalctl --rotate +
-root@demo-77:/var/log/journal/4ad9885bb19142118fd758b3be95057e# journalctl --vacuum-time=2days +
-+
-root@demo-77:/var/log/journal/4ad9885bb19142118fd758b3be95057e# journalctl --disk-usage +
-Archived and active journals take up 16.0M in the file system. +
-</cli> +
-    * 設定最多使用空間 Exp. 500M <cli> +
-vi /etc/systemd/journald.conf +
-</cli><file> +
-+
-[Journal] +
-+
-SystemMaxUse=500M +
-+
-</file><cli> +
-systemctl daemon-reload +
-</cli> +
 {{tag>ubuntu}} {{tag>ubuntu}}
  • tech/ubuntu.1681021672.txt.gz
  • 上一次變更: 2023/04/09 14:27
  • jonathan