Giter VIP home page Giter VIP logo

xui's Introduction

都失效了 不用看了

xui's People

Contributors

wyb-cq avatar

Watchers

 avatar

xui's Issues

宝塔面板脚本

VPS建议安装Centos7+系统

sudo -i

Centos安装宝塔面板脚本:

yum install -y wget

wget -O install.sh http://v7.hostcli.com/install/install_6.0.sh && sh install.sh

放行8888端口命令:

iptables -I INPUT -p tcp --dport 8888 -j ACCEPT

禁止防火墙

systemctl stop firewalld.service

禁止防火墙开机启动

systemctl disable firewalld.service

Ubuntu 20.04 root ssh登录配置

测试版本使用的Ubuntu 20.04,Ubuntu 16.4以上版本都可以这样配置。
最简单的方法:直接安装openssh-server,然后测试时候可以ssh登录,如果不可以,请使用下面的方法进行配置。

sudo apt install openssh-server

1. 设置root密码

执行命令后,依次输入当前登录用户密码,要设置的root密码,确认root密码

sudo passwd root

2. 修改ssh配置文件

如果没有安装ssh-server,执行安装命令,已经安装的跳过即可

sudo apt install openssh-server

修改配置文件

sudo vim /etc/ssh/sshd_config

在vim中搜索定位PermitRootLogin,可直接查找:

/PermitRootLogin

修改以下配置:

33 #LoginGraceTime 2m
34 #PermitRootLogin prohibit-password
35 #StrictModes yes
36 #MaxAuthTries 6
37 #MaxSessions 10

修改为:

 LoginGraceTime 2m
 PermitRootLogin yes
 StrictModes yes
 #MaxAuthTries 6
 #MaxSessions 10

3. 重启ssh,使配置生效

sudo service ssh restart

现在可是使用root用户登录ssh了!!!

Ubuntu系统下 开放所有端口

Ubuntu系统下:
开放所有端口
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F

Ubuntu镜像默认设置了Iptable规则,关闭它
apt-get purge netfilter-persistent
reboot
或者强制删除
rm -rf /etc/iptables && reboot

甲骨文云dd重装系统一键脚本 实例防回收

原网址 https://www.kejilion.xyz/2022/04/dd.html

几个情况需要重装系统

1.我的VPS装了一堆东西,很乱,想还原

2.我的VPS之前东西和现在要装的东西冲突了。无法进行安装了

3.我的VPS被人侵入当矿机了,机器满负荷运载

4.想尝试bbr其他版本,ARM目前还是会失联

5.更纯净更稳定

最关键是甲骨文云你删机不一定能开出新机!所以重装系统很重要!

重装前的故事背景

甲骨文云ARM或者AMD架构,Ubuntu系统

几分钟内dd成debian或者ubuntu

群友分享的,他经常用。我也成功重装了!

1.一键脚本

bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 10 -v 64 -a -firmware -p 12345

系统参数

-d 10 【7、8、9、10】Debian

-u 20.04 【14.04、16.04、18.04、20.04】Ubuntu

密码参数,可以改成别的

-p 12345

2.刚开始,都是自动的等
3.重装后3分钟VPS自动重启,
4.用户名root
5.密码就是你自己设置的12345或者别的
6.好了直接重装完了,直接root权限了,又可以愉快的玩耍了!

这时候想改root账户对的密码输入以下命令,输入时密码不显示,感觉像是没输进去,正常盲打即可!输入两次!
passwd

这个系统装BBR前先走这个命令

apt update -y && apt install -y curl && apt install -y socat && apt install wget -y

BBR PLUS 四合一脚本

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

甲骨文闲置ARM实例防回收的方法

到目前为止,我已经dd过的机器,全部没有被回收的迹象

已有实例,root模式下执行:

snap remove oracle-cloud-agent

甲骨文 ubuntu实列 改管理员登陆

1:开启root登入

sudo su
cd /root

修改authorized_keys文件(即ssh证书)
vi .ssh/authorized_keys
把ssh-rsa之前的文件都删除掉.
编辑ssh配置文件
nano /etc/ssh/sshd_config
找到PermitRootLogin, 把前面的#去掉 改成下面这样
PermitRootLogin yes
ctrl+x 保存退出 选择y 然后回车
然后
reboot
重启服务器。就可以使用root用户名配合秘钥登入了

2:开启防火墙

iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT

iptables -F
apt-get purge netfilter-persistent

reboot 重启

X-ui 可视化面板搭建教程

X-UI搭建教程

准备工作

1、VPS 准备 Debian 9+
2、域名解析到VPS 的IP 上

申请SSL证书

apt update -y
apt install -y curl
apt install -y socat
curl https://get.acme.sh | sh
~/.acme.sh/acme.sh --register-account -m [email protected]

#更换真实邮箱成功率更高

~/.acme.sh/acme.sh --issue -d xxxx.xxxx.xxx --standalone

更换你的解析域名

~/.acme.sh/acme.sh --installcert -d xxxx.xxxx.xxx --key-file /root/private.key --fullchain-file /root/cert.crt

更换你的解析域名,此步完成后会在VPS root 目录下看到
证书公钥/root/cert.crt 及 密钥文件/root/private.key

安装BBR (视频中说此代码没用 但经网友测试貌似是有作用的!大家可以安装一下)
但别随便乱用网速搜的BBR脚本,很容易搞崩!!!

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
lsmod | grep bbr

#打完最后一步,应看到 20480 或 16384 说明BBR 开启成功

安装X-ui面板

bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)

私钥路径:/root/private.key
公钥路径:/root/cert.crt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.