月度归档:2020年11月

FinalShell Linux版安装及教程

该版本功能和windows版基本一样,但是主机检测和远程桌面功能由于兼容性问题暂时无法使用,以后会支持。

FinalShell已经不再支持32位系统

一键安装脚本

rm -f finalshell_install_linux.sh
wget www.hostbuf.com/downloads/finalshell_install_linux.sh
chmod +x finalshell_install_linux.sh
./finalshell_install_linux.sh

安装路径

/usr/lib/FinalShell/

配置文件路径

/home/$USER/.finalshell/

来源:http://www.hostbuf.com/t/1059.html

Ásbrú Connection Manager

概述

asbru-cm 是一个类似的 windows 上 xshell 的远程连接管理软件。

安装

2.1 Debian / Ubuntu

curl -s https://packagecloud.io/install/repositories/asbru-cm/asbru-cm/script.deb.sh | sudo bash
sudo apt-get install asbru-cm

mongodb 备份和恢复数据

备份数据

mongodump -d test -c collection -o /path

恢复数据

mongorestore -d test -c collection /path/to/xxx.json

常用参数

  • -h:主机
  • –port:端口
  • -u:账号
  • -p:密码
  • –authenticationDatabase:鉴权库
  • -d:库名
  • -c:集合(表名)
  • –drop:恢复备份前删除

CentOS 安装 nodejs

yum install -y epel-release

# Node.js v10.x安装命令
curl --silent --location https://rpm.nodesource.com/setup_10.x | bash -

# Node.js v8.x安装命令
curl --silent --location https://rpm.nodesource.com/setup_8.x | bash -

yum install -y nodejs