惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Blog of Author Tim Ferriss
S
Securelist
D
Docker
The Register - Security
The Register - Security
GbyAI
GbyAI
Recorded Future
Recorded Future
Engineering at Meta
Engineering at Meta
Stack Overflow Blog
Stack Overflow Blog
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
罗磊的独立博客
博客园 - 【当耐特】
F
Full Disclosure
WordPress大学
WordPress大学
腾讯CDC
小众软件
小众软件
大猫的无限游戏
大猫的无限游戏
D
DataBreaches.Net
SecWiki News
SecWiki News
L
Lohrmann on Cybersecurity
I
InfoQ
MyScale Blog
MyScale Blog
量子位
Cyberwarzone
Cyberwarzone
博客园 - 三生石上(FineUI控件)
The Hacker News
The Hacker News
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Jina AI
Jina AI
博客园_首页
H
Help Net Security
K
Kaspersky official blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Webroot Blog
Webroot Blog
Blog — PlanetScale
Blog — PlanetScale
V
Vulnerabilities – Threatpost
Y
Y Combinator Blog
The Cloudflare Blog
P
Proofpoint News Feed
V
Visual Studio Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tailwind CSS Blog
爱范儿
爱范儿
P
Privacy International News Feed
Security Archives - TechRepublic
Security Archives - TechRepublic
The GitHub Blog
The GitHub Blog
C
Cybersecurity and Infrastructure Security Agency CISA
B
Blog RSS Feed

《灰灰的交易世界》的留言

強勢與弱勢K線、K線形態、裸K預估 – 灰灰的交易世界
搭建一個反向代理神器:Nginx Proxy Manager – 灰灰的交易世界
by 灰灰 · 2024-11-19 · via 《灰灰的交易世界》的留言

Skip to content

Nginx proxy manager 是非常很簡單的反向代理工具,操作非常簡單,更不需要掌握復雜的 Nginx 配置知識,輕松完成反向代理的設置和 SSL 證書的部署。

首先我們服務器需要安裝 Docker 和 Docker-compose

安裝Docker

apt-get install docker.io

查看docker 版本,有顯示出版本號代表安裝成功

docker -v

安装Docker-compose

curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

給予權限

chmod +x /usr/local/bin/docker-compose

創建安裝目錄

sudo -i

mkdir npm

cd npm

nano docker-compose.yml

複制貼上以下代碼:

version: '3'
services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    ports:
      - '80:80'  # 保持默認
      - '81:81'  # 保持默認,左邊的數字也可以改成未被占用的端口
      - '443:443' # 保持默認
    volumes:
      - ./data:/data # 代表數據存放位置,左邊的英文可以更改路徑
      - ./letsencrypt:/etc/letsencrypt  # 代表數據存放位置,左邊的英文可以更改路徑

然後點擊”ctrl + x”後,再按”Y”保存文件,然後輸入:

docker-compose up -d

理論上在瀏覽器輸入 http://ip:81 就可以登入了。

默認登陸用戶名和密碼:

Email: [email protected]
Password: changeme