sshfs 安装
yum install glib2-devel fuse-sshfs
官方版本地址
https://github.com/libfuse/sshfs/releases
目前最新版本:
wget https://github.com/libfuse/sshfs/releases/download/sshfs-2.9/sshfs-2.9.tar.gz
tar xvf sshfs-2.9.tar.gz
cd sshfs-2.9
./configure
make && make install
mkdir /var/mnt
sshfs [email protected]:/home/user/code /var/mnt
sshfs [email protected]:/ /var/mnt
umount -u /var/mnt
tailon 安装
pip install tailon
tailon 使用
-f 可指定目录或文件
tailon -f log -b 0.0.0.0:8888 -r '/tailon/'
tailon -a -f log -b 0.0.0.0:8888 -r '/tailon/' #允许下载日志
请求 http://192.168.1.2:8888/tailon/ 查看日志