管理 HOST 機
使用 cloudcmd 管理 HOST 機器
apt-get -o Acquire::ForceIPv4=true
sudo apt update
sudo apt install nodejs npm
sudo npm install -g cloudcmd
sudo npm i gritty -g
以root執行一次
sudo su
cloudcmd --terminal --terminal-path `gritty --path` --save
Crtl + C 退出
自動啟動cloudcmd
vi /etc/systemd/system/cloudcmd.service
-------------------------------------
[Unit]
Description=Cloud Commander
After=network.target
[Service]
User=root
WorkingDirectory=/usr/local/lib/node_modules/cloudcmd/bin/
ExecStart=/usr/bin/node cloudcmd.js
Restart=on-failure
[Install]
WantedBy=multi-user.target
--------------------------------------------------------------------------------
sudo systemctl enable cloudcmd
sudo systemctl start cloudcmd
fat32使用中文
mount -o iocharset=utf8 /dev/sda1 /mnt
Last updated