首页 > 系统相关 >docker安装并配置nginx

docker安装并配置nginx

时间:2022-11-24 16:55:41浏览次数:34  
标签:10 23 nginx host 110 128 docker 安装

1. 下载

[root@host-10-23-110-128 mysql]# docker pull nginx:latest
latest: Pulling from library/nginx
a2abf6c4d29d: Already exists
a9edb18cadd1: Pull complete
589b7251471a: Pull complete
186b1aaa4aa6: Pull complete
b4df32aa5a72: Pull complete
a0bcbecc962e: Pull complete
Digest: sha256:0d17b565c37bcbd895e9d92315a05c1c3c9a29f762b011a10c54a66cd53c9b31
Status: Downloaded newer image for nginx:latest
docker.io/library/nginx:latest
[root@host-10-23-110-128 mysql]# docker images
REPOSITORY   TAG       IMAGE ID       CREATED         SIZE
nginx        latest    605c77e624dd   10 months ago   141MB
redis        latest    7614ae9453d1   11 months ago   113MB
mysql        latest    3218b38490ce   11 months ago   516MB
mongo        latest    dfda7a2cf273   11 months ago   693MB
[root@host-10-23-110-128 mysql]#
2. 配置

[root@host-10-23-110-128 data]# mkdir nginx
[root@host-10-23-110-128 data]# cd nginx/
[root@host-10-23-110-128 nginx]# ls
[root@host-10-23-110-128 nginx]# mkdir www
[root@host-10-23-110-128 nginx]# mkdir kig
[root@host-10-23-110-128 nginx]# mkdir conf
[root@host-10-23-110-128 nginx]#

标签:10,23,nginx,host,110,128,docker,安装
From: https://www.cnblogs.com/youran-he/p/16922420.html

相关文章

  • c#已经安装了该产品的另一个版本
    https://blog.csdn.net/xiaomei2010280/article/details/88949151当之前安装了某个版本的**.msi之后,再去安装新版本的**.msi,就会出现错误:已经安装了该产品的另一个版本。......
  • 安装
    下载地址:https://v2.cn.vuejs.org/v2/guide/installation.html#%E7%9B%B4%E6%8E%A5%E7%94%A8-lt-script-gt-%E5%BC%95%E5%85%A5 我们选择从<script>标签引入的方法,下......
  • docker 安装mongodb 并配置
    1.下载[root@host-10-23-110-128mysql]#dockerpullmongo:latestlatest:Pullingfromlibrary/mongo7b1a6ab2e44d:Pullcomplete90eb44ebc60b:Pullcomplete5085......
  • systemctl提示start docker.service: Unit not found. (一个伤心的故事)
    前因:很久之前做了一个项目,最近要在项目上更新,发现之前部署的K8S集群好几个节点掉线了,一顿操作下来发现这几台机器上的docker服务挂了。习惯性的喜欢用systemctl......
  • 在 Linux 7(RHEL7 和 OEL7)上安装 11.2.0.4(和 11.2.0.3)的问题
    概述REHL7和OracleLinux7在Oracle数据库11.2.0.4出来的时候还没有发布,所以安装程序确实在先决条件和安装软件时给出了一些问题。我建议首先只安装软件,因为在安......
  • Mnikube 安装 Prometheus + grafana
    官网:Prometheus,GrafanaGithub:kube-prometheusGrafana:官方单独集成K8Skube-prometheus:存储库收集Kubernetes清单、Grafana仪表板和Prometheus规则,结合文档和脚......
  • Jenkin安装及使用说明
    介绍Jenkins是基于Java开发的一种持续集成及交付工具,可用于自动打包部署项目内容下载安装官网镜像地址:https://mirrors.jenkins.io/下载地址:https://jenkins.io/......
  • linux离线安装boost
    默认安装方式https://www.boost.org,官网下载***.tar.gz离线安装包sh./bootstrap.sh安装./b2install指定安装目录方式https://www.boost.org,官网下载*......
  • 配置nginx动静分离全步骤
    1、目的高并发环境下,大量请求从服务器后端获取资源,给后台服务器造成了巨大的压力。因此,在发布代码时,需要将后端的静态资源放到nginx,形成动态文件和静态文件分离。静态文件就......
  • php 安装 grpc 扩展
    升级gcc默认gcc的版本为4.8.5,grpc扩展需要支持c++14查询对照的话gcc6.1就可以完全至此c++14(转载至)如图:踩过的坑,重新安装升级了gcc6.5.0的版本,安装grpc还是提示如下:......