方法 系统要求:支持Debian、Ubuntu、CentOS系统。 运行以下命令: wget https://www.moerats.com/usr/down/sshport.sh bash sshport.sh 输入端口确认。再打开防火墙端口: #如果防火墙使用的iptables(Centos 6),修改端口为8080 iptables -I INPUT -p tcp –dport 8080 -j ACCEPT service iptables save service iptables restart #如果使用的是firewall(CentOS 7) firewall-cmd –zone=public –add-port=8080/tcp —permanent firewall-cmd –reload…
树莓派Ubuntu22.04 server换源
备份: sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak 改文件: ———————————————— deb http://mirrors.cloud.tencent.com/ubuntu-ports jammy main restricted deb http://mirrors.cloud.tencent.com/ubuntu-ports jammy-updates main restricted deb http://mirrors.cloud.tencent.com/ubuntu-ports jammy universe deb http://mirrors.cloud.tencent.com/ubuntu-ports jammy-updates universe deb http://mirrors.cloud.tencent.com/ubuntu-ports jammy multiverse deb http://mirrors.cloud.tencent.com/ubuntu-ports jammy-updates multiverse deb http://mirrors.cloud.tencent.com/ubuntu-ports jammy-backports…
linux VPS开启http下载服务 共享VPS文件
想快速开启文件共享, 给服务器开启HTTP下载服务, 下载VPS里的文件, 可通过 simplefileserver. 通过VPS之间的文件下载, 还能顺便测试下 VPS之间的传输和带宽. 安装 simplefileserver 本文以Debian举例 (依赖python, pip) apt install -y python3 python3-pip pip3 install simplefileserver 开启http服务器 执行 simplefileserver 8989 即可 访问: 服务器IP地址:8989, 就可以 浏览和下载当前目录的文件 生成测速文件, 测试VPS的下载速度 可以生成100mb.bin文件测试下载速度, 执行: dd if=/dev/zero of=100mb.bin bs=100M count=1 会当前目录生成 100mb.bin 文件 然后可以通过 服务器IP地址:8989/100mb.bin 下载文件和测试了. 或通过wget测试速度: wget -O /dev/null…
Linux VPS常用脚本
VPS配置查看: curl -sL yabs.sh | bash -s — -i wget -qO- bench.sh | bash curl -Lso- bench.sh | bash 测速: bash <(curl -Lso- https://git.io/superspeed.sh) bash <(curl -Lso- http://yun.789888.xyz/speedtest.sh) 流媒体检查: bash <(curl -L -s check.unlock.media) bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh) bash…
PT盒子教程Seedbox 一键脚本
Github项目地址:jerry048/Dedicated-Seedbox https://github.com/jerry048/Dedicated-Seedbox 建议系统:Debian10 1:开启BBR #首先先更新下系统,然后安装依赖组建: apt-get update apt-get update && apt-get install -y wget curl echo “net.core.default_qdisc=fq” >> /etc/sysctl. conf echo “net.ipv4.tcp_congestion_control=bbr” >> /etc/sysctl. conf sysctl -p #检测是否正常开启BBR: sysctl net. ipv4 . tcp_available_congestion_control lsmod | grep bbr 2:安装一键脚本: 默认IP:8080 登录…
Setup Murmur Mumble Server on Ubuntu
Mumble is a completely free and open source alternative to other voice suites, such as Teamspeak. It runs on Windows, Linux, OS X, and iOS. This guide will teach you how to setup a Murmur, a Mumble server on Ubuntu.…
Ubuntu删除与安装系统内核
内核安装 搜索可安装的内核版本,使用命令: apt-cache search linux|grep linux-image 选择所需要的内核版本进行安装,安装内核需要安装image和header,例如: apt-get install linux-image-4.4.0-58-generic linux-headers-4.4.0-58-generic 重启,按ESC进入选择菜单,选择高级选项,选择所需要的内核版本启动系统 内核卸载 当我们安装软件时,如果boot空间已满系统会报: gzip: stdout: No space left on device E: mkinitramfs failure cpio 141 gzip 1 如使用如下命令查看boot空间,可发现boot空间已满,这时就需要卸载多余的内核。 df -h 卸载方法: 首先查看当前使用的内核版本: uname -a 正在使用的内核是无法删除的,我们可以删除其他内核. 查询目前系统中存在的内核版本: dpkg –get-selections |…
Docker 搭建 Rocket.chat
GitHub原项目地址:https://github.com/RocketChat/Rocket.Chat 官网地址:https://rocket.chat/ 文档地址:https://docs.rocket.chat/ sudo -i # 切换到root用户 apt update -y # 升级packages apt install wget curl sudo vim git # 安装常用的软件 创建一下安装的目录: mkdir -p /root/data/docker_data/rocketchat cd /root/data/docker_data/rocketchat nano docker-compose.yml docker-compose.yml填入以下内容: version: ‘2’ services: rocketchat: image: rocketchat/rocket.chat:latest command: > bash -c…
X-ui面板安装
X-ui介绍 x-ui的github项目地址:https://github.com/vaxilu/x-ui 系统状态监控 支持多用户多协议,网页浏览化操作 支持的协议:vmess、vless、trojan、shadowsocks、dokodemo-door、socks、http 支持配置 更多传输配置 流量统计,限制流量,限制时间 可自定义xray配置模板 支持https访问面板(自备域名+ssl证书) 更多高级配置项,详见面板 X-UI一键脚本 bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh) 安装完成后默认是IP:54321访问面板。默认密码是admin;admin,默认密码不安全,请到面板后台更改用户名和密码。 TLS安装前准备步骤 socat 其实不需要SOCAT也可以,不过安装X-UI以后我们使用v2或者trojan的ssl加密的时候需要ssl证书,这个时候我们需要Acme配合NGINX/SOCAT申请证书。 当你的服务器上有nginx或者宝塔面板时,就不需要安装socat了,在这个时候执行是申请SSL脚本会提示80端口被占用出错。 1. Debian/Ubuntu安装socat apt update -y apt install -y curl apt install -y socat 2. centos安装socat yum update…
Docker install tigase-xmpp-server
https://hub.docker.com/r/tigase/tigase-xmpp-server docker pull tigase/tigase-xmpp-server docker run –name tigase-server -p 8080:8080 -p 5222:5222 tigase/tigase-xmpp-server:latest Once started, open <a href="http://localhost:8080/" rel=”nofollow noopener”>http://localhost:8080</a> (from the same machine, or using http://<server_hostname>:8080), by default those are: 'admin-user' = 'admin' and 'admin-password' = 'tigase'.