sudo: sorry, you must have a tty to run sudo

4-06 10 views

当远程执行一个脚本或命令时默认报此错误,例 Shell [root@salt ~]# sshpass -p xxxxx ssh teamlab@114.141.114.114 "sh /tmp...
阅读全文 0

SSH实现端口转发

4-06 5 views

1. 开启GatewayPorts,并重启SSH Shell [root@salt ~]# vim /etc/ssh/sshd_config #GatewayPorts no GatewayPorts yes [roo...
阅读全文 0

Mecab 全文检索

4-06 7 views

一、环境 DB Instance 1: Shell IP: 54.250.120.111 LAN: 10.132.29.84 12 IP...
阅读全文 0

lvm扩容

4-06 12 views

1. 磁盘初始化 Shell [root@host-10-166-224-16 ~]# fdisk /dev/vdc Device contains neither a valid DOS partition table,...
阅读全文 0

源码安装git 2.3

4-06 2 views

1. 下载git 2.3 Shell [root@salt ~]# wget https://www.kernel.org/pub/software/scm/git/git-2.3.0.tar.gz ...
阅读全文 0