当前位置: 首页 > news >正文

杭州做网站的公司有哪些苏州网站设计选哪家

杭州做网站的公司有哪些,苏州网站设计选哪家,天元建设集团有限公司新闻,怎么安装wordpress主题一 摘要 本文主要介绍harbor 的安装及使用。 二 环境信息及部署图 2.1 环境信息 名称版本备注操作系统centos7.9容器docker 23.0.1harbor2.7代理nginx待补充 2.2 架构图 说明#xff1a; 1.harbor 核心服务里有个nginx #xff0c;也可以用该nginx 做代理 2.proxy-ngin…一 摘要 本文主要介绍harbor 的安装及使用。 二 环境信息及部署图 2.1 环境信息 名称版本备注操作系统centos7.9容器docker 23.0.1harbor2.7代理nginx待补充 2.2 架构图 说明 1.harbor 核心服务里有个nginx 也可以用该nginx 做代理 2.proxy-nginx 不是必须安装的我这里是因为内部已经有个一个专用反向代理服务器为了方便管理就在原harbor nginx 上再代理了一层。 2.3 安装目录结构不包含proxy-nginx /data/yunweistg1/harbor/harborsoft: 存放软件解压文件以及配置文件 /data/yunweistg1/harbor/harbordata: 存放harbor 运行时数据文件 [rootlocalhost harbor]# pwd /data/yunweistg1/harbor [rootlocalhost harbor]# tree -L 3 . ├── harbordata │ ├── ca_download │ ├── database │ │ └── pg13 │ ├── job_logs │ │ ├── 14588b0a2d344e858b1a88ee.log │ │ ├── 60332bdfa0bb84f6d88db9451695686400.log │ │ ├── 60332bdfa0bb84f6d88db9451695772800.log │ │ ├── 9dffa133c54e1dc2df7c84ba.log │ │ ├── be5bf53eb57feb447dcf7b2d.log │ │ └── fa303561c3ca9909d0d3180d.log │ ├── redis │ │ └── dump.rdb │ ├── registry │ │ └── docker │ ├── secret │ │ ├── core │ │ ├── keys │ │ └── registry │ └── trivy-adapter │ ├── reports │ └── trivy └── harborsoft└── harbor├── common├── common.sh├── docker-compose.yml├── harbor.v2.7.1.tar.gz├── harbor.yml├── harbor.yml.tmpl├── install.sh├── LICENSE└── prepare18 directories, 15 files [rootlocalhost harbor]# 三 安装 3.1 安装准备 下载安装包以及安装操作系统和docker\docker-compose 3.1.1 下载安装包 harbor 官网地址https://goharbor.io/ 3.1.2 安装docker 以及docker-compose 具体安装略 3.2 安装harbor核心服务 harbor 的安装思路如下 harbor.yml 是原始配置文件根据需要修改然后执行.prepare 命令会根据harbor.yml 内容生成各子系统的配置文件然后运行install.sh 执行安装。 3.2.1 修改配置文件 主要配置harbor.yml 3.2.1.1 httphttps 这块大家根据需要调整比如端口冲突就调整端口。 重点说明下 hostname 和external_url 1.官网解释若配置了external_url可以不配置hostname external_url 一般与proxy_nginx 里配置的域名保持一致 2.harbor 搭建好后检查pull 或者push 地址 是否是你想要的地址这个地址 是由这两个参数控制 # Configuration file of Harbor# The IP address or hostname to access admin UI and registry service. # DO NOT use localhost or 127.0.0.1, because Harbor needs to be accessed by external clients. hostname: 10.3.170.75# http related config http:# port for http, default is 80. If https enabled, this port will redirect to https portport: 8033# https related config #https:# https port for harbor, default is 443 # port: 443# The path of cert and key files for nginx # certificate: /your/certificate/path # private_key: /your/private/key/path# # Uncomment following will enable tls communication between all harbor components # internal_tls: # # set enabled to true means internal tls is enabled # enabled: true # # put your cert and key files on dir # dir: /etc/harbor/tls/internal# Uncomment external_url if you want to enable external proxy # And when it enabled the hostname will no longer used external_url: https://stg1junharbor.XXXXX.com3.2.1.2 配置 harbor容器 映射目录 这里配置 harbor 容器的映射目录 # The default data volume data_volume: /data/yunweistg1/harbor/harbordata 3.2.2 安装 然后执行 ./prepare ./install.sh 到此harbor 核心服务就完成安装 3.3 非核心服务安装 harbor 里有些组件是非核心服务作为可选组件安装。比如容器漏洞扫描软件trivy 3.3.1 安装trivy 先关闭harbor 容器然后再安装 docker-compose -f docker-compose.yml down -v ./install.sh --with-trivy四 日常使用及维护 4.1 trivy 漏洞库离线同步 主要通过在外网下载trivy 漏洞库然后人工同步到内网trivy 4.1.1 关闭harbor 里trivy 自动更新配置 trivy:# 关闭在线更新skip_update: true # 开启离线扫描offline_scan: true #其余配置请使用默认或者按需调整重新执行 ./prepare ./install.sh --with-trivy4.1.2 外网下载trivy 漏洞库 通过oras 下载漏洞库然后人工同步到内网对应目录 下载oras 地址https://github.com/oras-project/oras/releases 漏洞库下载 trivy v2 oras pull ghcr.io/aquasecurity/trivy-db:2 oras pull ghcr.io/aquasecurity/trivy-java-db:1trivy v1 https://github.com/aquasecurity/trivy-db/releases oras pull ghcr.io/aquasecurity/trivy-java-db:1我用的是V2 人工同步到内网 漏洞库存放到对应目录 # 漏洞库离线文件移动至对应目录 tar -xzvf db.tar.gz -C /data/yunweistg1/harbor/harbordata/trivy-adapter/trivy/db tar -xzvf javadb.tar.gz -C /data/yunweistg1/harbor/harbordata/trivy-adapter/trivy/java-db # 授权 chown 10000:10000 -R /data/harbordata/trivy-adapter/trivy 最好重启下harbor 容器即可。 4.2 proxy-nginx 反向代理配置 这个配置仅供参考 upstream harbor {# session stickyserver 10.3.170.75:8033 max_fails3 fail_timeout10s;keepalive 128; }server {listen 80;listen 443 ssl;server_name stg1junharbor.xxxxx.com;ssl_certificate /etc/nginx/conf.d/cert/_.xxxxx.com.pem;ssl_certificate_key /etc/nginx/conf.d/cert/_.xxxxx.com.key;ssl_session_cache builtin:1000 shared:SSL:10m;ssl_protocols TLSv1 TLSv1.1 TLSv1.2;ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;ssl_prefer_server_ciphers on;charset utf-8;client_body_buffer_size 10M;client_max_body_size 10240M;location / {proxy_pass http://harbor;proxy_connect_timeout 300;proxy_send_timeout 600;proxy_read_timeout 600;proxy_max_temp_file_size 5000m;}error_page 500 502 503 504 /50x.html;location /50x.html {root html;} }
http://www.hkea.cn/news/14470303/

相关文章:

  • 企业内部门户网站建设seo还有前景吗
  • 网站建设 长沙如何做好区县外宣网站建设
  • 网站工信部不备案吗百度 云上传wordpress 失败
  • 唐山公司网站制作物流网站建设摘要
  • 做淘宝保健品药品在哪个网站找素材app开发公司联系方式
  • 北京网站建设定制型报价php初学者网站
  • 自己做的网站点击赚钱培训学校网站建设方案
  • 贵州省建设部网站怎么制作网页表白
  • 哪个网站可以做视频片头郑州教育网站建设
  • 成都网站建设网在广州注册公司流程和费用
  • 蓝牙音箱东莞网站建设wordpress模版seo
  • 南宁网站制作最新招聘信息杭州app建设
  • 读书网站建设策划书摘要泉州网页
  • 邯郸做网站询安联网络专业的o2o网站建设
  • wordpress 站内资讯企业咨询管理公司是干嘛的
  • 黑龙江企业网站建设公司怎样免费建立网站
  • 北京东八区网站建设python做网站开发
  • 小说网站建设多少钱wordpress会员卡
  • 如何做外文网站专业的企业进销存软件比较好
  • 牡丹江站最大的源码分享平台
  • 枸杞网站的建设方案seo81
  • 苏州做i网站的网站首页文案模板
  • 做一个什么网站好山东机械加工网
  • dedecms做网站怎么查看1元建站
  • 网站建设推广的方法Wordpress双主题
  • 做网站做哪个网站建设的教材
  • 吉林科技网站建设公司网站建设费入哪个科目
  • 生成拼贴的网站广告公关公司
  • 做网站推广被骗中国纪检监察报价格
  • 济南建站公司效果专业网站制作公司咨询