宝塔有后门,伤心了,如果不考虑建站的只考虑反向代理的
换Nginx Proxy Manager吧 老外都在用
回头告诉大家怎么用 Nginx 原理知道了 啥面板用起来都一样
搭建流程独一份 整理了一下 全网最简单细致的 看着很多其实不难。
重装
bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 11 -v 64 -a -firmware -p 123456
更新环境
apt update -y && apt install -y curl && apt install -y socat && apt install wget -y
安装sudo
apt-get install sudo
BBR PLUS 四合一脚本
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
安装 Docker
sudo apt install docker.io -y && sudo apt install docker-compose
自启动docker
sudo systemctl enable --now docker
创建目录并进入目录
cd /home/
mkdir npm
cd npm
创建docker-compose.yml的文件
nano docker-compose.yml
复制代码进入文件中
version: "3"
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
# These ports are in format <host-port>:<container-port>
- '80:80' # Public HTTP Port
- '443:443' # Public HTTPS Port
- '81:81' # Admin Web Port
# Add any other Stream port you want to expose
# - '21:21' # FTP
environment:
DB_MYSQL_HOST: "db"
DB_MYSQL_PORT: 3306
DB_MYSQL_USER: "npm"
DB_MYSQL_PASSWORD: "npm"
DB_MYSQL_NAME: "npm"
# Uncomment this if IPv6 is not enabled on your host
# DISABLE_IPV6: 'true'
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
depends_on:
- db
db:
image: 'jc21/mariadb-aria:latest'
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: 'npm'
MYSQL_DATABASE: 'npm'
MYSQL_USER: 'npm'
MYSQL_PASSWORD: 'npm'
volumes:
- ./data/mysql:/var/lib/mysql
crl+x 然后y 然后回车退出编辑模式
启动
docker-compose up -d
````
### 默认用户名密码
> Email: `admin@example.com`
> Password: `changeme`
### Xiu
bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)