linux笔记
检测vps内存(包含swap)

wget http://down.xxorg.com/Tool/memtest/memtest_10M_64 chmod +x ./memtest_10M_64 ./memtest_10M_64
安装epel源

yum install epel-release
一键评测脚本

wget https://raw.githubusercontent.com/oooldking/script/master/superbench.sh
chmod +x superbench.sh
./superbench.sh

wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash

wget -qO- git.io/superbench.sh | bash

chmod 777 ./unalpine.sh
./unalpine.sh
iptables 端口转发一键管理脚本 [v1.1.1]

wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/iptables-pf.sh && chmod +x iptables-pf.sh && bash iptables-pf.sh
rclone挂载示例

rclone mount zxd666: /zxd666 --allow-other --allow-non-empty --vfs-cache-mode writes

java -Xmx1024M -Xms1024M -jar server.jar nogui

rclone mount zxd666:/root /zxd666 --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000
安装nodejs #CentOS系统

curl -sL https://rpm.nodesource.com/setup_10.x | bash -

yum install nodejs git -y
查看onedrive容量页面

storman.aspx
dd安装win8.1

wget --no-check-certificate -qO DebianNET.sh 'https://raw.githubusercontent.com/wn789/xitong/master/DebianNET.sh' && bash DebianNET.sh -dd 'https://moeclub.org/onedrive/IMAGE/Windows/win8.1emb_x64.tar.gz'
安装rclone

curl https://rclone.org/install.sh | sudo bash
生成ssh密钥

ssh-keygen -t rsa -b 4096 -C“3014779200@qq.com”
更换阿里云源

wget -qO- git.io/superupdate.sh | bash
centos7创建swap

dd if=/dev/zero of=/swapfile bs=1M count=1024

mkswap /swapfile

swapon /swapfile

vi /etc/fstab

/swapfile swap swap defaults 0 0
网络测速

wget https://raw.githubusercontent.com/oooldking/script/master/superspeed.sh
chmod +x superspeed.sh
./superspeed.sh
java运行jar示例

java -Xmx1900M -Xms64M -jar -Dfile.encoding=utf-8 -Duser.timezone=Asia/Shanghai run.jar nogui
一键挂载

yum install wget -y && wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh

wget -O disk.sh http://download.bt.cn/tools/disk.sh && bash disk.sh /website
解决Host key verification failed

ssh-keygen -R ip
centos安装python3

wget https://www.moerats.com/usr/shell/Python3/CentOS_Python3.6.sh && sh CentOS_Python3.6.sh
申请ssl证书文件验证位置

/.well-known/pki-validation/fileauth.txt
aws设置密码登陆脚本
!/bin/bash

echo root:xxxxxxxx |sudo chpasswd root
sudo sed -i 's/^#?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/^#?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
sudo reboot
ss一键脚本

ss:wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-go.sh
chmod +x shadowsocks-go.sh
./shadowsocks-go.sh 2>&1 | tee shadowsocks-go.log
goflyway一键脚本

wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/goflyway.sh && chmod +x goflyway.sh && bash goflyway.sh
ovz架构bbr(centos6需要升级glibc)

wget --no-check-certificate https://raw.githubusercontent.com/kuoruan/shell-scripts/master/ovz-bbr/ovz-bbr-installer.sh chmod +x ovz-bbr-installer.sh ./ovz-bbr-installer.sh
kvm架构bbr

wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh
chmod +x bbr.sh
./bbr.sh
多版本bbr一键脚本

wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

java -jar openzaly-server.jar -h
另一个ss脚本

wget --no-check-certificate -O shadowsocks-all.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh
chmod +x shadowsocks-all.sh
./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log
MTProxy

wget -N --no-check-certificate https://raw.githubusercontent.com/iiiiiii1/doubi/master/mtproxy_go.sh && bash mtproxy_go.sh
跑分脚本

wget https://soft.itbulu.com/tools/UnixBench5.1.3.tgz
tar -zxvf UnixBench5.1.3.tgz
cd UnixBench
make
./Run
宝塔

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
修改宝塔端口
centos6

echo '8881' > /www/server/panel/data/port.pl && /etc/init.d/bt restart iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 8881 -j ACCEPT service iptables save
centos7

echo '8881' > /www/server/panel/data/port.pl && /etc/init.d/bt restart firewall-cmd --permanent --zone=public --add-port=8881/tcp firewall-cmd --reload
宝塔面板其他示例

echo '23901' > /www/server/panel/data/port.pl && service bt restart
echo '[::]:8080' > /www/server/panel/data/port.pl && /etc/init.d/bt restart
http://[2001:41d0:8:6db3:2020:2021:0:19]:8080/login
nginx监听ipv6

listen 80;

listen [::]:80;

listen 443 ssl http2;

listen [::]:443 ssl http2;
修改ssh端口

vim /etc/ssh/sshd_config
重启ssh

/etc/init.d/sshd restart
查看系统端口占用

yum -y install net-tools

netstat -ntlp
hping3用法示例

hping3 -S -i u1000 -p 80 -V 40.83.78.164
hping3 -c 10000 -d 120 -S -w 64 -p -i u100 80 104.167.104.88
-i u100
安装ssh

yum install openssh-server -y
service sshd restart
安装python3.6

yum install -y wget && wget -O py3.sh https://lnmp.me/ftp/py3.sh --no-check-certificate && sh py3.sh
kangle

yum -y install wget;wget http://kangle.odata.cc/start;sh start
改宝塔密码

cd /www/server/panel && python tools.pyc panel xxxxxxxx
centos关闭防火墙
6

service iptables stop
7

systemctl stop firewalld.service
urlos安装后需执行

service docker restart
汉化面板

wget -P /opt/ovz-web-panel/config/locales http://mise.tianji.me/zh_CN.yml
/etc/rc.d/init.d/owp restart
端口映射示例

iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 10022 -j DNAT --to-destination 192.168.1.100:22
一键增加中文

wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/LocaleCN/master/LocaleCN.sh && bash LocaleCN.sh

最后修改:2020 年 06 月 03 日 09 : 00 PM
如果觉得我的文章对你有用,请随意赞赏