跳至主要内容

统信UOS 离线安装 nginx


1、pcre 安装

https://sourceforge.net/projects/pcre/files/pcre/
tar -zxvf pcre-8.45.tar.gz
cd pcre-8.45
./configure
make && make install
pcre-config --version

2、openssl 安装

https://www.openssl.org/source/
tar -zxvf openssl-3.1.1.tar.gz
cd openssl-3.1.1
./config
make && make install

3、zlib 安装

http://www.zlib.net/
tar -zxvf zlib-1.2.13.tar.gz
cd zlib-1.2.13
./configure
make && make install

4、nginx 安装

http://nginx.org/en/download.html
tar -zxvf nginx-1.24.0.tar.gz
cd nginx-1.24.0
#编译 nginx和openssl适配
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-openssl=/home/tools/openssl-3.1.1
make && make install


supervisor 管理配置

[program:nginx]
command= /usr/local/nginx/sbin/nginx  -g 'daemon off;'
autostart=true
autorestart=true
stderr_logfile=/home/logs/nginx.err.log
stdout_logfile=/home/logs/nginx.out.log
user=root
logfile_maxbytes=50MB
logfile_backups=10
startsecs=1
stopsignal=INT

评论

此博客中的热门博文

Docker-Compose 安装 PolarDB

 version: '3.1' services:   polardb:     container_name: polardb     restart: always     image: polardb/polardb_pg_local_instance     ports:       - 5432:5432     networks:       - net_db     environment:       TZ: Asia/Shanghai     volumes:       - ./polardb:/var/polardb networks:   net_db:     external: true

Docker-Compose 安装 Portainer

 version: '3.1' services: portainer: image: portainer/portainer-ce:latest container_name: portainer hostname: portainer restart: always volumes: - "/var/run/docker.sock:/var/run/docker.sock" - "./portainer_data:/data" - "./portainer_cn:/public" environment: TZ: Asia/Shanghai LANG: en_US.UTF-8 ports: - "9001:9000" networks:      - net_db networks: net_db: external: true

Wireguard 部署应用

 一、首先要有一个公网IP来进行服务端安装配置,为了简化部署,并且尽量少的侵入性,就用Docker安装服务端: services:   wireguard:     restart: always     image: weejewel/wg-easy     container_name: wireguard     ports:       - "51820:51820/udp"       - "51821:51821/tcp"     environment:       - TZ=Asia/Shanghai       - WG_HOST=0.0.0.0       - PASSWORD=123456       - WG_PERSISTENT_KEEPALIVE=25       - WG_DEFAULT_ADDRESS=10.0.8.x       - WG_DEFAULT_DNS=114.114.114.114       - WG_ALLOWED_IPS=10.0.8.0/24     volumes:       - ./wg-easy:/etc/wireguard     cap_add:       - NET_ADMIN       - SYS_MODULE     sysctls:       - net.ipv4.ip_forward=1       - net.ipv4.conf.all.src_valid_mark=1 二、客户端安装: # root权限 sudo -i # 安装wireguard软件 apt install w...