问题1:harbor服务不能正常提供? Error response from daemon: Get http://hub.atguigu.com/v2/: dial tcp 192.168.66.100:80: connect: connection refused 原因分析:harbor服务器 ...
分类:
其他好文 时间:
2021-06-03 17:53:13
阅读次数:
0
前言 在当今在互联网微服务比较适用的情况下,docker 可以说一个利器。每次我们打包docker的时候都是适用docker 的配置文件,那么配置文件里面会设置环境变量,这个时候需要我们的应用能够识别到这些环境变量并作出相应的选择。 适用场景: docker 运行环境 k8s 运行环境 因为他们都是 ...
分类:
Web程序 时间:
2021-06-03 17:37:44
阅读次数:
0
1、关闭正在运行的容器 2、查看容器ID,docker ps -a 3、找到宿主机容器目录, cd /var/lib/docker/containers/f65c8e2e* 4、修改hostconfig.json 找到PortBindings,例如容器内的端口是50070,绑定的宿主机端口是5007 ...
分类:
其他好文 时间:
2021-06-02 20:14:50
阅读次数:
0
1 #include <time.h> 2 #include <stdio.h> 3 #include <errno.h> 4 #include <string.h> 5 #include <stdlib.h> 6 7 #include <winsock2.h> 8 #include <iphlpa ...
docker-compose.yaml version: "3" services: redis: image: redis:5.0.8 container_name: redis restart: always command: redis-server /etc/redis/redis.conf ...
分类:
其他好文 时间:
2021-06-02 19:51:51
阅读次数:
0
启动nginx服务时如果遇到这个错误 Job for nginx.service failed because the control process exited with error code. See “systemctl stat 可能原因如下: 1.nginx配置文件有错误 运行下面命令查 ...
分类:
其他好文 时间:
2021-06-02 19:50:08
阅读次数:
0
默认nginx不开启缓存 open_file_cache off; nginx可以缓存以下三种信息: (1) 文件元数据:文件的描述符、文件大小和最近一次的修改时间 (2) 打开的目录结构 (3) 没有找到的或者没有权限访问的文件的相关信息max=N:可缓存的缓存项上限;达到上限后会使用LRU算法实 ...
分类:
其他好文 时间:
2021-06-02 19:44:50
阅读次数:
0
环境介绍 RHEL8 nginx 192.168.92.129 RHEL8 myxql 192.168.92.130 RHEL8 php 192.168.92.131 nginx配置 //关闭服务器和selinux [root@nginx ~]# systemctl disable --now fi ...
分类:
其他好文 时间:
2021-06-02 19:38:14
阅读次数:
0
平滑升级的步骤 1. 获取之前的编译参数 2. 下载新模块 3. 重新编译软件,加上--add-module=新模块的解压路径 4. 备份原程序并停止服务 5. 把原程序用新程序覆盖 6. 启动新程序 Nginx信号简介 主进程支持的信号 TERM, INT: 立刻退出 QUIT: 等待工作进程结束 ...
分类:
其他好文 时间:
2021-06-02 19:37:54
阅读次数:
0
nginx官网 windwos版本使用 linux版本使用 部署到windows的nginx上使用 windows下修改配置文件 ...
分类:
其他好文 时间:
2021-06-02 19:30:47
阅读次数:
0