提升权限

sudo -i

输入密码,可能不显示,输入后回车

更新及安装组件

apt update -y          # Debian/Ubuntu 命令
apt install -y curl    #Debian/Ubuntu 命令
apt install -y socat    #Debian/Ubuntu 命令

yum update -y          #CentOS 命令
yum install -y curl    #CentOS 命令
yum install -y socat    #CentOS 命令

防火墙相关命令

apt install firewalld #Debian/Ubuntu 安装防火墙操控命令
yum install firewalld #CentOS安装防火墙操控命令
firewall-cmd --state                   # 查看防火墙状态
systemctl stop firewalld.service       # 停止防火墙
systemctl disable firewalld.service    # 禁止防火墙开机自启

安装 Acme 脚本

curl https://get.acme.sh | sh

80 端口空闲的证书申请方式
自行更换代码中的域名、邮箱为你解析的域名及邮箱

~/.acme.sh/acme.sh --register-account -m [email protected]邮箱
~/.acme.sh/acme.sh  --issue -d xxxy域名   --standalone

安装证书到指定文件夹
自行更换代码中的域名为你解析的域名

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

安装 & 升级 X-ui 面板
安装及升级的一键代码

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

Related Posts

12 thoughts on “VPS搭建x-ui面板命令

  1. 在80端口空闲的证书申请环节,出现以下问题要怎么解决啊:
    root@V20230331315194:~# ~/.acme.sh/acme.sh –issue -d amor.onetwothreefour.top –standalone
    [Sat 01 Apr 2023 06:05:21 PM UTC] Using CA: https://acme.zerossl.com/v2/DV90
    [Sat 01 Apr 2023 06:05:21 PM UTC] Standalone mode.
    [Sat 01 Apr 2023 06:05:21 PM UTC] Single domain=’amor.onetwothreefour.top’
    [Sat 01 Apr 2023 06:05:21 PM UTC] Getting domain auth token for each domain
    [Sat 01 Apr 2023 06:05:25 PM UTC] Getting webroot for domain=’amor.onetwothreefour.top’
    [Sat 01 Apr 2023 06:05:25 PM UTC] Verifying: amor.onetwothreefour.top
    [Sat 01 Apr 2023 06:05:25 PM UTC] Standalone mode server
    [Sat 01 Apr 2023 06:05:27 PM UTC] Processing, The CA is processing your order, please just wait. (1/30)
    [Sat 01 Apr 2023 06:05:31 PM UTC] amor.onetwothreefour.top:Verify error:”error”:{
    [Sat 01 Apr 2023 06:05:31 PM UTC] Please add ‘–debug’ or ‘–log’ to check more details.
    [Sat 01 Apr 2023 06:05:31 PM UTC] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh

  2. 证书申请环节出现以下问题,因为之前装了你另外一篇文章里面的CHATGPT 反代Nginx proxy manager,80端口被占用,请问如何更改证书此端口呀?谢谢
    [Tue 11 Apr 2023 05:56:46 AM UTC] Using CA: https://acme.zerossl.com/v2/DV90
    [Tue 11 Apr 2023 05:56:46 AM UTC] Standalone mode.
    [Tue 11 Apr 2023 05:56:46 AM UTC] LISTEN 0 4096 0.0.0.0:80 0.0.0.0:* users:((“docker-proxy”,pid=1289720,fd=4))
    LISTEN 0 4096 [::]:80 [::]:* users:((“docker-proxy”,pid=1289725,fd=4))
    [Tue 11 Apr 2023 05:56:46 AM UTC] tcp port 80 is already used by ((“docker-proxy”,pid=1289720,fd=4))
    80 [
    [Tue 11 Apr 2023 05:56:46 AM UTC] Please stop it first
    [Tue 11 Apr 2023 05:56:46 AM UTC] _on_before_issue.
    root@V20220811228111:~#

  3. Ubuntu 22.10和23.04用完apt install firewalld #Debian/Ubuntu 这个命令就会把VPS整断网,ping不通的那种,20.04没问题。

  4. I am sorting out relevant information about gate io recently, and I saw your article, and your creative ideas are of great help to me. However, I have doubts about some creative issues, can you answer them for me? I will continue to pay attention to your reply. Thanks.

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注