首页 > 其他分享 >生产docker

生产docker

时间:2023-02-28 11:58:36浏览次数:42  
标签:rw Aug 23 -- 2022 生产 docker root

6f34c1da289f   styletang/rocketmq-console-ng      "sh -c 'java $JAVA_O…"   7 months ago   Up 6 months   0.0.0.0:8092->8080/tcp, :::8092->8080/tcp                                                      rmqconsole
b1d1db37435a   foxiswho/rocketmq:broker-4.5.1     "/bin/sh -c 'cd ${RO…"   7 months ago   Up 6 months   0.0.0.0:10909->10909/tcp, :::10909->10909/tcp, 0.0.0.0:10911->10911/tcp, :::10911->10911/tcp   rmqbroker
d830788ee55d   foxiswho/rocketmq:server-4.5.1     "/bin/sh -c 'cd ${RO…"   7 months ago   Up 6 months   0.0.0.0:9876->9876/tcp, :::9876->9876/tcp                                                      rmqserver
73627738a46f   bladex/sentinel-dashboard:latest   "java -Djava.securit…"   7 months ago   Up 6 months   8719/tcp, 0.0.0.0:8858->8858/tcp, :::8858->8858/tcp                                            sentinel
04144c28910f   seataio/seata-server:1.4.2         "java -Djava.securit…"   7 months ago   Up 6 months   0.0.0.0:8091->8091/tcp, :::8091->8091/tcp                                                      seata-server

  

 

nginx 主目录


drwxr-xr-x  3 root root     4096 Nov  8 17:32 admin
drwx------  2 root root     4096 Sep 14 15:01 client_body_temp
drwxr-xr-x  2 root root     4096 Feb 23 20:14 conf
drwxr-xr-x  2 root root     4096 Dec 30 20:45 dist
-rw-r--r--  1 root root 17882928 Dec  9 21:32 dist(57).zip
-rw-r--r--  1 root root 17985074 Dec 30 20:23 dist.zip
drwx------  2 root root     4096 Aug 23  2022 fastcgi_temp
drwxr-xr-x  6 root root     4096 Dec 30 20:45 html
drwxr-xr-x  6 root root     4096 Dec  1 16:29 html1201
drwxr-xr-x  7 root root     4096 Dec  7 09:29 html1207
drwxr-xr-x  6 root root     4096 Dec  9 21:33 html1209
drwxr-xr-x  6 root root     4096 Dec 30 20:44 html1230
drwxr-xr-x  3 root root     4096 Aug 23  2022 logs
drwx------ 12 root root     4096 Aug 24  2022 proxy_temp
drwxr-xr-x  2 root root     4096 Aug 23  2022 sbin
drwx------  2 root root     4096 Aug 23  2022 scgi_temp
drwx------  2 root root     4096 Aug 23  2022 uwsgi_temp

  

nginx目录conf

-rw-r--r-- 1 root root 1077 Aug 23  2022 fastcgi.conf
-rw-r--r-- 1 root root 1077 Aug 23  2022 fastcgi.conf.default
-rw-r--r-- 1 root root 1007 Aug 23  2022 fastcgi_params
-rw-r--r-- 1 root root 1007 Aug 23  2022 fastcgi_params.default
-rw-r--r-- 1 root root 2837 Aug 23  2022 koi-utf
-rw-r--r-- 1 root root 2223 Aug 23  2022 koi-win
-rw-r--r-- 1 root root 4077 Aug  4  2022 m1.hcnft.cn_bundle.crt
-rw-r--r-- 1 root root 4077 Aug  4  2022 m1.hcnft.cn_bundle.pem
-rw-r--r-- 1 root root 1000 Aug  4  2022 m1.hcnft.cn.csr
-rw-r--r-- 1 root root 1700 Aug  4  2022 m1.hcnft.cn.key
-rw-r--r-- 1 root root 5170 Aug 23  2022 mime.types
-rw-r--r-- 1 root root 5170 Aug 23  2022 mime.types.default
-rw-r--r-- 1 root root 4077 Jan 21 00:31 mz.hcnft.cn_bundle.crt
-rw-r--r-- 1 root root 4077 Jan 21 00:31 mz.hcnft.cn_bundle.pem
-rw-r--r-- 1 root root 1000 Jan 21 00:31 mz.hcnft.cn.csr
-rw-r--r-- 1 root root 1700 Jan 21 00:31 mz.hcnft.cn.key
-rw-r--r-- 1 root root 3715 Jan 21 00:34 nginx.conf
-rw-r--r-- 1 root root 2447 Jan 21 00:32 nginx.conf20230121
-rw-r--r-- 1 root root 2841 Aug 23  2022 nginx.conf.bak
-rw-r--r-- 1 root root 2656 Aug 23  2022 nginx.conf.default
-rw-r--r-- 1 root root  636 Aug 23  2022 scgi_params
-rw-r--r-- 1 root root  636 Aug 23  2022 scgi_params.default
-rw-r--r-- 1 root root  664 Aug 23  2022 uwsgi_params
-rw-r--r-- 1 root root  664 Aug 23  2022 uwsgi_params.default
-rw-r--r-- 1 root root 3610 Aug 23  2022 win-utf

  

 

 

 

nginx.conf配置


user  root;
worker_processes  auto;

error_log  /var/log/nginx/error.log notice;
pid        /var/run/nginx.pid;


events {
    worker_connections  1024;
}


http {
    include       /usr/local/nginx/conf/mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  /var/log/nginx/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  65;
    proxy_read_timeout 120s; #连接成功后,后端服务器响应时间(代理接收超时)
    #gzip  on;

    include /etc/nginx/conf.d/*.conf;

    #这个是集群负载均衡
    upstream nftServerName{
       ip_hash;
       server 172.21.16.19:9001;
       server 172.21.16.41:9001;
       #server 172.21.16.21:9001;
       server 172.21.16.29:9001;
    }



    #这个是nacos集群
    upstream nacos{
        server 172.21.16.19:8848;
        server 172.21.16.41:8848;
        server 172.21.16.29:8848;
    }

   #nacos注册集群
    server {
        listen       8848;
        server_name  m1.hcnft.cn;
        location / {
          proxy_pass  http://nacos;
        }
    }


     server {

       listen       443 ssl;
       server_name  m1.hcnft.cn;
       error_page 403 = 403.html;
       error_page  404  https://m1.hcnft.cn;
       error_page 405 =200 http://$host$request_uri;
       ssl_certificate     m1.hcnft.cn_bundle.crt;
       ssl_certificate_key m1.hcnft.cn.key;

       ssl_session_cache    shared:SSL:1m;
       ssl_session_timeout  5m;

       ssl_ciphers  HIGH:!aNULL:!MD5;
       ssl_prefer_server_ciphers  on;

       location / {
           root   html;
           #index  index.html index.htm;
           try_files $uri $uri/ /index.html;
           #index 403.html;
       }
       location /admin {
           root   admin;
           index  index.html index.htm;
          try_files $uri $uri/ /index.html;
       }
       location ^~ /nft/ {
             proxy_pass https://nftServerName;
       }
       #页面访问
       location /nacos/ {
          proxy_pass  http://nacos;
       }
       location /accpapi/ {
          proxy_pass https://accpapi.lianlianpay.com/;
       }
       location /accpgw/ {
         proxy_pass https://accpgw.lianlianpay.com/;
       }
    }

     server {

           listen       443 ssl;
           server_name  mz.hcnft.cn;
           error_page 403 = 403.html;
           error_page  404  https://mz.hcnft.cn;
           error_page 405 =200 http://$host$request_uri;
           ssl_certificate     mz.hcnft.cn_bundle.crt;
           ssl_certificate_key mz.hcnft.cn.key;

           ssl_session_cache    shared:SSL:1m;
           ssl_session_timeout  5m;

           ssl_ciphers  HIGH:!aNULL:!MD5;
           ssl_prefer_server_ciphers  on;

           location / {
               root   html;
               #index  index.html index.htm;
           try_files $uri $uri/ /index.html;
               #index 403.html;
           }
           location /admin {
               root   admin;
               index  index.html index.htm;
              try_files $uri $uri/ /index.html;
           }
           location ^~ /nft/ {
                 proxy_pass https://nftServerName;
           }
           #页面访问
           location /nacos/ {
              proxy_pass  http://nacos;
           }
           location /accpapi/ {
              proxy_pass https://accpapi.lianlianpay.com/;
           }
           location /accpgw/ {
             proxy_pass https://accpgw.lianlianpay.com/;
           }
        }

  

标签:rw,Aug,23,--,2022,生产,docker,root
From: https://www.cnblogs.com/imfjj/p/17149267.html

相关文章

  • K8S 1.20 弃用 Docker 评估之 Docker CLI 的替代产品
    背景2020年12月初,Kubernetes在其最新的Changelog中宣布,自Kubernetes1.20之后将弃用Docker作为容器运行时。弃用Docker带来的,可能是一系列的改变,包括不限于:......
  • docker镜像从c盘转移到D盘
    windows上面最新的docker都是安装[DockerDesktopforWindow(https://hub.docker.com/editions/community/docker-ce-desktop-windows)最新的版本已经基于windows的......
  • 防错料使用二维码解决方案 生产过程物料防错管理 免费提供源码
    生产过程中,物料的防错管理是非常重要的一环。它能够有效地防止物料错用或混用,从而降低产品质量问题的发生率,减少生产成本和生产周期,提高生产效率和产品质量。以下是生产过......
  • ubuntu docker执行镜像出现时间过期问题
    执行docker-composeup-dnginxredismysql报错:Service'mysql'failedtobuild:Get"https://registry-1.docker.io/v2/":x509:certificatehasexpiredorisno......
  • docker安装mysql
    前言:docker安装mysql前需要在系统安装docker环境,安装docker环境这里就不演示了,​​https://www.runoob.com/docker/centos-docker-install.html​​这里有centos安装docker......
  • 优思学院|精益生产现场管理的要素是什么?
    精益生产的目的是通过消除3M来实现生产过程的优化和精简。3M指的是"Muda"、"Muri"、"Mura",这三个词来自于日本,代表了生产过程中的浪费、超负荷和不平衡。优思学院|精益管理......
  • Docker部署中间件
    Docker部署RabbitMQDocker下载RabbitMQdockerpullrabbitmq:3.8.4-managementDocker启动RabbitMQ容器dockerrun-d--namerabbitmq-p5672:5672-p15672:1567......
  • 珠海数据智能监控器+SaaS平台 轻松实现SMT生产管控
    数据智能监控器兼容市面上99%的SMT设备直接读取设备生产数据与状态,如:计划产出、实际产出、累计产出、停机、节拍、线利用率、直通率、停产时间、工单状态、OEE……产品功能......
  • 本地虚拟机centos7通过docker安装主从redis3.2
    1、下载redisdocker镜像dockerpullredis:3.22、在home下建立mydata目录在/home/mydata/redis下面建立两个目录conf与data3、docker运行主从dockerrun-p6379:6379--n......
  • docker安装anaconda3 python环境
    1、下载dockerpullcontinuumio/anaconda3firewall-cmd--add-port=8888/tcp--permanentfirewall-cmd--reloadfirewall-cmd--list-all2、运行dockerrun-i-t-p8888:......