- Notifications
You must be signed in to change notification settings - Fork466
linux vim bash 脚本学习笔记 by 蘭雅sRGBhttps://262235.xyz/
NotificationsYou must be signed in to change notification settings
hongwenjun/vps_setup
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
- 😄简体中文 :cry:English 龙芯2F服务器https://262235.xyz/
频道 www.youtube.com/sRGB18
赞赏支持! https://paypal.me/sRGB18- 推荐新手两个性价比:100:好按时计费VPS: :+1:vultr.com 👍skysilk.com :+1:按需开启,不用不浪费!
- 🎁 项目:https://git.io/vps.us https://git.io/winkcp https://git.io/vps.english
- 💣 脚本:https://git.io/vps.sh https://git.io/wgmtu https://git.io/v2ray.ss
- 💢 防火墙脚本:https://git.io/fhUSe 路由器脚本:https://git.io/sskcp.sh
- English Script:https://git.io/vps.setup https://git.io/wireguard.sh https://git.io/v2ray_ss.sh
点击展开内容
1.开启插件 (ctrl+shif+x)2.鼠标移动到一个标题上方3.按 shift 键,提取xpath4.删除xpath尾部[方括号] /a 链接文件 /a/@href 链接地址 /html/body[@class='home pace-done']/section[@class='container']/div[@class='content-wrap']/div[@class='content']/article[@class='excerpt']/header/h2/a/@hrefgrep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | sort | uniq -c| sort -nrk 1# 应用: 统计自己电信服务商IP动态变化cat /var/log/udp2raw.log \ | grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | sort | uniq -c| sort -nrk 1# 统计哪些IP在扫描你的vpscat /var/log/auth.log \ | grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | sort | uniq -c| sort -nrk 1# 查询IP信息https://www.ipip.net/ipquery.html- 😄 😆 😵 😭 😰 😅 😢 😤 😍 😌
- 👍 👎 💯 👏 🔔 🎁 ❓ 💣 ❤️ ☕ 🌀 🙇 💋 🙏 💢
:smile: :laughing: :dizzy_face: :sob: :cold_sweat: :sweat_smile: :cry: :triumph: :heart_eyes: :relieved::+1: :-1: :100: :clap: :bell: :gift: :question: :bomb: :heart: :coffee: :cyclone: :bow: :kiss: :pray: :anger:
apt install tmux fish -ysystemctl | grep runningsystemctl disable google-accounts-daemon.servicesystemctl disable google-clock-skew-daemon.servicesystemctl disable google-network-daemon.servicesystemctl disable google-osconfig-agent.servicesystemctl disable unattended-upgrades.servicesystemctl disable fail2bansystemctl disable rsyslogsystemctl disable cronsystemctl disable getty@tty2.servicesystemctl disable console-getty.service# WALinuxAgent (waagent) 卸载systemctl disable walinuxagent# Swap 交换空间fallocate -l 1G /swapfilechmod 600 /swapfilemkswap /swapfileswapon /swapfileecho "/swapfile swap swap defaults 0 0" >> /etc/fstab# 其他优化设定vim /etc/sysctl.confvm.min_free_kbytes = 18600vm.swappiness = 5sysctl -p网上找了文章 《Azure 乞丐版 B1ls 的正确使用姿势 压榨极致性能》先凑合着用吧,反正是备用机,续签的 99刀应该可以用一年----------------## crontab -l1 * */7 * * reboot59 * * * * wget -qO- git.io/fxxlb | bash8 */8 * * * docker run --rm hostloc 用户 密码1) apt install sl sl2) factor "Any Number"3) apt install fish fish4) apt install figlet figlet "Any Text"5) apt install cmatrix cmatrix6) apt install fortune fortune7) apt install toilet toilet "Any Text" toilet -f mono12 -F gay "Any Text"8) apt install w3m w3m "any websites" example:- w3m google.com9) ifconfig10) apt install cowsay cowsay "Any Text"#!/usr/bin/env sh# https://github.com/Neilpang/acme.sh/wiki/说明# 安装ssl依赖 和 acme.sh工具apt-get install socat netcat -ycurl https://get.acme.sh | sh# 设置域名DOMAIN=ssl.srgb888.ga# 生成域名ssl证书~/.acme.sh/acme.sh --issue -d ${DOMAIN} --webroot /var/www/html --standalone -k ec-256 --force~/.acme.sh/acme.sh --issue -d ssl.srgb888.ga --nginx --standalone -k ec-256 --force#!/bin/bash# socks5tohttp.shbrook socks5tohttp -s 127.0.0.1:1080 -l 0.0.0.0:8010 &ps aux | grep -E brookexport http_proxy="http://127.0.0.1:8010"export https_proxy="http://127.0.0.1:8010"- Windows 系统脚本 VPN --> socks5 --> http代理 给手机使用
:: Brook 开启 socks5 再转httpstart /b brook socks5 -l :1080 -i 0.0.0.0sleep 1start /b brook socks5tohttp -s 127.0.0.1:1080 -l 0.0.0.0:8010- brook 其他更多使用方法访问官方网站
$ curl -L https://github.com/txthinking/brook/releases/download/v20200909/brook_linux_amd64 -o /usr/bin/brook$ chmod +x /usr/bin/brook# 32位系统安装$ curl -L https://github.com/txthinking/brook/releases/download/v20200909/brook_linux_386 -o /usr/bin/brook- Socks5 转 HTTP 代理
$ brook socks5tohttp -s 127.0.0.1:1080 -l 127.0.0.1:8010- 中继: 可以将地址中继到远程地址。 它可以中继任何tcp和udp服务器
$ brook relay -f :9999 -t 1.2.3.4:9999- brook socks5 运行一个独立的标准socks5服务器(TCP和UDP)
$ brook socks5 -l :1080 -i 0.0.0.01.修改server端的etc/ssh/sshd_configClientAliveInterval 60 #server每隔60秒发送一次请求给client,然后client响应,从而保持连接ClientAliveCountMax 3 #server发出请求后,客户端没有响应得次数达到3,就自动断开连接,正常情况下,client不会不响应systemctl reload sshd2.修改client端的etc/ssh/ssh_config添加以下:(在没有权限改server配置的情形下)ServerAliveInterval 60 #client每隔60秒发送一次请求给server,然后server响应,从而保持连接ServerAliveCountMax 3 #client发出请求后,服务器端没有响应得次数达到3,就自动断开连接,正常情况下,server不会不响应3.在命令参数里ssh -o ServerAliveInterval=60 这样子只会在需要的连接中保持持久连接, 毕竟不是所有连接都要保持持久的Docker 版 RISC-V 交叉编译器和执行 riscv-pke 的环境在线阅读
Hugo编译 C语言入门教程文档 Html静态网站制作在线阅读
Xshell 7 操作 Docker Python3 学习编程在线阅读
Linux Command 命令大全命令列表 离线包
公益中小学教学视频 - 免费观看在线阅读
旧手机烂手机不要换锈钢脸盆,安装Linux Deploy做移动服务器在线阅读
群晖NAS部署自动PT工具 感谢大神TaterLi在线阅读
一键 WordPress 博客安装脚本,同时也是 LNMP 套件在线阅读
宇宙第一大站 IPT 刷上传,守株待兔也能活在线阅读
Typecho 自用博客笔记安装上篇下篇:Typecho-theme-DUX 主题安装
Oracle VM VirtualBox 安装虚拟机 Debian 10 挖坑填坑笔记在线阅读
Arch Linux 安装简易版 For VirtualBox 安装虚拟机 填坑笔记在线阅读
黑五变态机有救,可以用NFS挂载一个僚机在线阅读
Debian 10 Buster 管理员手册在线阅读
- Debian 开发者和 Debian 手册作者 Raphaël Hertzog 宣布面向 Debian 11 的最新版本 Debian 管理员手册已上线。
About
linux vim bash 脚本学习笔记 by 蘭雅sRGBhttps://262235.xyz/
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published