- Nov 02 Tue 2021 10:30
-
使用tar 備份資料時,不備份完整路徑
- Nov 01 Mon 2021 14:00
-
ubuntu 20.04 安裝 netstat 工具
- Oct 29 Fri 2021 15:26
-
find 配合 xargs 將特定檔案搬到指定目錄
假設要移動特定檔名的檔案到某個資料匣,但是因為檔案數量太多出現以下錯誤訊息
[root@example testdir]# mv test-*.log /tmp/workdir/
-bash: /usr/bin/mv: Argument list too long
[root@example testdir]# mv test-*.log /tmp/workdir/
-bash: /usr/bin/mv: Argument list too long
- Oct 07 Thu 2021 10:57
-
解決 curl , wget 抓https 網站出現憑證錯誤訊息

以下狀況最近常發現在 FreeBSD 用戶端要讀取使用 Let's Encrypt. 憑證的網站
$ wget https://example.xx.xx/
Resolving example.xx.xx (example.xx.xx)... xx.xx.xx.xx
Connecting to example.xx.xx (example.xx.xx)|xx.xx.xx.xx|:443... connected.
ERROR: cannot verify example.xx.xx's certificate, issued by 'CN=R3,O=Let\'s Encrypt,C=US':
Issued certificate has expired.
To connect to example.xx.xx insecurely, use `--no-check-certificate'.
- Sep 30 Thu 2021 14:33
-
ubuntu 20.04 安裝在 ESXi 上的錯誤訊息

發現系統出現以下錯誤訊息
Sep 30 14:12:57 s245 multipathd[601]: sda: add missing path
Sep 30 14:12:57 s245 multipathd[601]: sda: failed to get udev uid: Invalid argument
Sep 30 14:12:57 s245 multipathd[601]: sda: failed to get sysfs uid: Invalid argument
Sep 30 14:12:57 s245 multipathd[601]: sda: failed to get sgio uid: No such file or directory
Sep 30 14:13:02 s245 multipathd[601]: sda: add missing path
Sep 30 14:13:02 s245 multipathd[601]: sda: failed to get udev uid: Invalid argument
Sep 30 14:13:02 s245 multipathd[601]: sda: failed to get sysfs uid: Invalid argument
Sep 30 14:13:02 s245 multipathd[601]: sda: failed to get sgio uid: No such file or directory
- Sep 29 Wed 2021 14:42
-
ubuntu 20.04 安裝 elastic search
執行 elastic search 需要有java 環境
請先確定系統環境是否已經安裝 java
$ java -version
如果沒有的話,以下步驟安裝
$ sudo apt install default-jre
請先確定系統環境是否已經安裝 java
$ java -version
如果沒有的話,以下步驟安裝
$ sudo apt install default-jre
- Sep 28 Tue 2021 11:14
-
ubuntu 20.04 安裝 MongoDB Community Edition
參考資料:
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
# import the MongoDB public GPG Key
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
# import the MongoDB public GPG Key
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
- Sep 28 Tue 2021 10:16
-
Ubuntu 20.04 安裝 PostgreSQL
參考資料:
https://www.postgresql.org/download/linux/ubuntu/
PostgreSQL是開源的物件-關聯式資料庫資料庫管理系統,在類似BSD授權與MIT授權的PostgreSQL授權下發行。
https://www.postgresql.org/download/linux/ubuntu/
PostgreSQL是開源的物件-關聯式資料庫資料庫管理系統,在類似BSD授權與MIT授權的PostgreSQL授權下發行。
- Sep 24 Fri 2021 15:00
-
cloudflare 的 development mode
- Sep 17 Fri 2021 10:10
-
啟用 ubuntu 20.04 /etc/rc.local

ubuntu 20.04 預設重開機時無法啟用 /etc/rc.local
如果要重開機後執行的話,修改方式如下
1. 在檔案的最末端加入以下三行,存檔離開
sudo vi /lib/systemd/system/rc-local.service
[Install]
WantedBy=multi-user.target
Alias=rc-local.service
- Sep 16 Thu 2021 14:40
-
Ubuntu server 20.04 安裝 GitLab EE

官網上提供詳細步驟
https://about.gitlab.com/install/#ubuntu
1. 安裝相關套件
sudo apt-get update
sudo apt-get install -y curl openssh-server ca-certificates tzdata perl
- Sep 02 Thu 2021 16:34
-
變更 ubuntu 預設文字編輯器
在shell 輸入 update-alternatives --config editor
星號標示目前預設的文字編輯器
如果要改變預設的文字編輯器,僅需要在提示欄位輸入編號即可
因為我習慣vi 的操作方式,所以我選擇3 並按enter 確認
星號標示目前預設的文字編輯器
如果要改變預設的文字編輯器,僅需要在提示欄位輸入編號即可
因為我習慣vi 的操作方式,所以我選擇3 並按enter 確認
