Linux 第2页

linux秘钥登入切换为密码登入

lantinglou 发布于 2022-07-16

echo root:YourPasswordHere |sudo chpasswd root sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config; sudo sed -i...

阅读(52)评论(0)赞 (0)

Linux下后台运行几种方法

lantinglou 发布于 2022-07-15

1、nohup 将程序以忽略挂起信号的方式运行起来 补充说明 nohup命令 可以将程序以忽略挂起信号的方式运行起来,被运行的程序的输出信息将不会显示到终端。 无论是否将 nohup 命令的输出重定向到终端,输出都将附加到当前目录的 nohup.out 文件中。 如果当前目录的 ...

阅读(44)评论(0)赞 (0)

Iterm2 常用插件

lantinglou 发布于 2022-07-12

plugins=(git extract z zsh-autosuggestions zsh-syntax-highlighting) zsh-autosuggestions 按tab键补全或者显示目录 还有一个 自动补全插件叫incr 也不错

阅读(50)评论(0)赞 (0)

使用iTerm2 shell intergration进行文件传输

2

lantinglou 发布于 2022-07-12

使用iTerm2 shell intergration进行文件传输(推荐) 其实一种最强大便捷的文件传输方式是使用 iTerm2 shell intergration。 安装iTerm2 shell intergration 安装非常简单,只需要先登录服务器端,执行如下命令: 选...

阅读(52)评论(0)赞 (0)

iTerm2 ssh自动登陆脚本

4

lantinglou 发布于 2022-07-11

方式一 新建一个shell文件,如ssh.sh #!/usr/bin/expect -f set user username set password password set host ip/domian set port 22 set timeout -1 spawn ssh...

阅读(62)评论(0)赞 (0)

GRE隧道打通及IP地址映射 Centos7

lantinglou 发布于 2022-02-13

# 机器A 允许转发 echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf sysctl -p # 机器A 建立GRE隧道 ip tunnel add tunnel1 mode gre local AIP remote BI...

阅读(108)评论(0)赞 (0)

IPIP隧道打通及IP地址映射 Centos7

lantinglou 发布于 2022-02-12

# 机器A 允许转发 echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf sysctl -p # 机器A 建立IPIP隧道 ip tunnel add tunnel1 mode ipip local AIP remote ...

阅读(151)评论(0)赞 (21)

一些辅助工具

lantinglou 发布于 2022-02-02

1.ss bash <(curl -sL https://s.hijk.art/ss.sh) 2.v2 bash <(curl -s -L https://git.io/v2ray.sh) 3.tj https://github.com/p4gefau1t/troja...

阅读(117)评论(0)赞 (5)

VPS常用测试脚本

12

lantinglou 发布于 2022-01-22

LemonBench.sh LemonBench工具(别名LBench、柠檬Bench),是一款针对Linux服务器设计的服务器性能测试工具。通过综合测试,可以快速评估服务器的综合性能,为使用者提供服务器硬件配置信息。 特点 服务器基础信息(CPU信息/内存信息/Swap信息/磁...

阅读(78)评论(0)赞 (2)

Centos一键安装 锐速/BBRPLUS/BBR2

lantinglou 发布于 2022-01-21

卸载内核 wget -N --no-check-certificate "https://github.000060000.xyz/tcp.sh" && chmod +x tcp.sh && ./tcp.sh or wget -O tcp.sh "...

阅读(221)评论(0)赞 (0)