技术交流QQ群:①185473046   ②190706903   ③203744115   网站地图
登录

下次自动登录
现在的位置: 首页
0℃

Docker Swarm集群使用NFS共享存储

2021年11月03日 Docker  ⁄ 被围观 5,703次+
CentOS 7.x 安装Docker-ce社区版本 https://www.osyunwei.com/archives/11592.html 搭建docker本地私有镜像仓库 https://www.osyunwei.com/archives/11928.html CentOS 7.x安装部署NFS文件共享服务器 https://www.osyunwei.com/archives/11942.html 使用Docker-Compose实现Docker容器编排 https://www.osyunwei.com/archives/11903.html 一、通过在Docker Swarm集群内每台服务器挂载nfs目录实现共享存储 1、在nfs服务器配置好挂载目录 /nfs 192.168.21.0/24(insecure,rw,sync,no_subtree_check,no_root_squash) 2...
阅读全文
0℃

Docker swarm容器集群使用教程

2021年10月28日 Docker  ⁄ 被围观 5,910次+
本教程中用到的配置文件请参考下面的连接 CentOS 7.x 安装Docker-ce社区版本 https://www.osyunwei.com/archives/11592.html 搭建docker本地私有镜像仓库 https://www.osyunwei.com/archives/11928.html CentOS 7.x安装部署NFS文件共享服务器 https://www.osyunwei.com/archives/11942.html 一、Dcoker、Docker-Compose、Docker Swarm、Docker services、Docker stack简介 1、Dcoker Docker是一个容器引擎,容器最终是由Docker创建,运行在Docker中,其他相关的容器技术都是以Docker为基础 2、Docker-Compose Doc...
阅读全文
0℃

CentOS 7.x安装部署NFS文件共享服务器

2021年10月28日 NFS  ⁄ 被围观 5,482次+
一、防火墙配置 CentOS 7.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件 # sample configuration for iptables service # you can edit this manually or use system-config-f...
阅读全文
0℃

搭建Docker本地私有镜像仓库

2021年10月27日 Docker  ⁄ 被围观 7,813次+
在使用Docker service create创建容器时,Docker首先默认从Docker Hub官方去下载镜像,这很不方便,很多时候我们的镜像都是使用Dockerfile自定义私有镜像,不对外公开,而且为了安全期间docker可能在内外环境下运行,所以我们有必要搭建一套docker本地私有镜像仓库,以供整个内外集群环境使用。 下面我们使用docker官方提供的registry镜像搭建私有仓库 一、搭建非https访问的私有镜像仓库 #私有镜像仓库服务器ip和对应域名,集群内所有服务器都提前做好解析 vi /etc/hosts #添加以下解析 192.168.21.8 hub.osyunw...
阅读全文
0℃

使用Docker-Compose实现Docker容器编排

2021年10月19日 Docker  ⁄ 被围观 4,391次+
本教程中用到的配置文件请参考下面的连接 Linux下使用Docker容器部署Web应用 https://www.osyunwei.com/archives/11855.html 1、什么是容器编排? 所谓容器编排就是多个Docker容器的自动配置、协作和管理服务的过程,最后执行一个yaml文件,将文件中所定义的多个容器依次启动,这就是容器编排。 2、什么是Docker-Compose? Docker-Compose是docker提供的一个命令行工具,用来定义和运行由多个容器组成的应用。使用Docker-Compose,我们可以通过yaml文件定义应用程序的各个服务,并由单个命令完成应用的创建和启动...
阅读全文
0℃

使用Docker network进行Docker容器之间通信

2021年10月18日 Docker  ⁄ 被围观 5,352次+
本教程中用到的配置文件请参考下面的连接 Linux下使用Docker容器部署Web应用 https://www.osyunwei.com/archives/11855.html 一、基础概念 1、默认状态下,创建好的容器之间通过容器内部的虚拟ip是能够相互ping通和访问的 2、因为容器有可能在停止、重启等操作后容器内部ip地址发生变化,从而导致连接失败 3、一般不使用容器的虚拟ip来进行通信,而是使用容器的名称(docker run --name)来相互通信 4、Docker容器使用[容器的名称]进行相互通信有两种方式:Link 单向访问和 Bridge 网桥双向访问 5、使用Link 单向...
阅读全文
0℃

Linux下使用Docker容器部署Web应用

2021年10月17日 Docker  ⁄ 被围观 20,343次+
本教程实现目的: 在CentOS 7.x系统下使用Docker分别安装nginx、php-fpm-mysql容器镜像,部署一套Web应用wordpress系统 一、CentOS 7.x 安装Docker-ce社区版本 https://www.osyunwei.com/archives/11592.html 二、下载容器镜像 以下容器镜像是提前制作好并上传到阿里云镜像仓库 docker pull registry.cn-hangzhou.aliyuncs.com/osyunwei/nginx:1.20.1 #nginx容器镜像 docker pull registry.cn-hangzhou.aliyuncs.com/osyunwei/php-fpm:8.0.11 #php-fpm容器镜像 docker pull registry.cn-hangzhou.aliyuncs.com/os...
阅读全文
0℃

Docker下使用Dockerfile基于CentOS基础镜像构建Nginx容器镜像

2021年10月16日 Linux  ⁄ 被围观 4,337次+
一、CentOS 7.x 安装Docker-ce社区版本 https://www.osyunwei.com/archives/11592.html 二、准备安装软件包 cd /usr/local/src #建议先把需要安装的软件包下载到本地目录 1、下载nginx wget http://nginx.org/download/nginx-1.21.1.tar.gz #nginx 2、下载pcre wget http://ftp.pcre.org/pub/pcre/pcre-8.45.tar.gz #nginx扩展 3、下载openssl wget https://www.openssl.org/source/openssl-1.1.1l.tar.gz #nginx扩展 4、下载zlib wget http://www.zlib.net/zlib-1.2.11.tar.gz #nginx扩展 三、准备Nginx相关配置...
阅读全文
0℃

Windows Server 2022 IIS10.0+PHP(FastCGI)+MySQL环境搭建教程

2021年10月07日 IIS  ⁄ 被围观 9,938次+
准备篇 一、环境说明: 操作系统:Windows Server 2022 PHP版本:php 8.0.11 MySQL版本:MySQL 8.0.18.0 二、相关软件下载: 1、PHP下载地址: https://windows.php.net/downloads/releases/php-8.0.11-nts-Win32-vs16-x64.zip 2、MySQL下载地址: https://cdn.mysql.com//Downloads/MySQLInstaller/mysql-installer-community-8.0.26.0.msi 3、Visual C++ Redistributable for Visual Studio 2015-2022(安装PHP、MySQL需要此插件) https://aka.ms/vs/16/release/vc_redist.x86.exe https://aka.ms/vs/16/releas...
阅读全文
0℃

Docker下使用Dockerfile基于centos基础镜像构建mysql-8.0容器镜像

2021年09月07日 Docker  ⁄ 被围观 6,226次+
一、CentOS 7.x 安装Docker-ce社区版本 https://www.osyunwei.com/archives/11592.html 二、准备安装软件包 cd /usr/local/src #建议先把需要安装的软件包下载到本地目录 下载mysql二进制安装包 wget https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-8.0.26-linux-glibc2.12-x86_64.tar.xz 三、构建mysql容器镜像 1、从docker hub拉取官方基础镜像 #我们用centos系统进行构建 https://hub.docker.com/_/centos?tab=tags&page=1&ordering=last_updated 选择centos:7.9.2009版本 docker pull centos:7...
阅读全文
0℃

Docker下使用Dockerfile基于centos基础镜像构建mysql-5.7容器镜像

2021年09月03日 Linux  ⁄ 被围观 4,759次+
一、CentOS 7.x 安装Docker-ce社区版本 https://www.osyunwei.com/archives/11592.html 二、准备安装软件包 cd /usr/local/src #建议先把需要安装的软件包下载到本地目录 1、下载mysql(自带boost版本) https://cdn.mysql.com/archives/mysql-5.7/mysql-boost-5.7.34.tar.gz -O mysql-5.7.34.tar.gz 2、下载cmake(编译工具) https://cmake.org/files/v3.21/cmake-3.21.1.tar.gz 三、构建mysql容器镜像 1、从docker hub拉取官方基础镜像 #我们用centos系统进行构建 https://hub.docker.com/_/centos?tab=tags...
阅读全文
0℃

Docker下使用Dockerfile基于centos基础镜像构建mysql-5.6容器镜像

2021年09月02日 Docker  ⁄ 被围观 4,579次+
一、CentOS 7.x 安装Docker-ce社区版本 https://www.osyunwei.com/archives/11592.html 二、准备安装软件包 cd /usr/local/src #建议先把需要安装的软件包下载到本地目录 1、下载mysql http://mirrors.sohu.com/mysql/MySQL-5.6/mysql-5.6.48.tar.gz 2、下载cmake(编译工具) https://cmake.org/files/v3.21/cmake-3.21.1.tar.gz 三、构建mysql容器镜像 1、从docker hub拉取官方基础镜像 #我们用centos系统进行构建 https://hub.docker.com/_/centos?tab=tags&page=1&ordering=last_updated 选择cento...
阅读全文
0℃

Docker下使用Dockerfile基于centos基础镜像构建mysql-5.5容器镜像

2021年09月02日 Docker  ⁄ 被围观 4,779次+
一、CentOS 7.x 安装Docker-ce社区版本 https://www.osyunwei.com/archives/11592.html 二、准备安装软件包 cd /usr/local/src #建议先把需要安装的软件包下载到本地目录 1、下载mysql https://cdn.mysql.com/archives/mysql-5.5/mysql-5.5.62.tar.gz 2、下载cmake(编译工具) https://cmake.org/files/v3.21/cmake-3.21.1.tar.gz 三、构建mysql容器镜像 1、从docker hub拉取官方基础镜像 #我们用centos系统进行构建 https://hub.docker.com/_/centos?tab=tags&page=1&ordering=last_updated 选择cent...
阅读全文
0℃

Docker下使用Dockerfile基于ubuntu基础镜像构建php-fpm容器镜像

2021年08月22日 Docker  ⁄ 被围观 6,293次+
一、CentOS 7.x 安装Docker-ce社区版本 https://www.osyunwei.com/archives/11592.html 二、准备安装软件包 cd /usr/local/src #建议先把需要安装的软件包下载到本地目录 1、下载php http://mirrors.sohu.com/php/php-7.2.34.tar.gz 2、下载openssl https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz 3、下载libmcrypt(php扩展) https://nchc.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz 4、下载yasm(php扩展) http://www.tortall.net/projects/yasm/releases...
阅读全文
0℃

Docker下使用Dockerfile基于centos基础镜像构建php-fpm容器镜像

2021年08月21日 Docker  ⁄ 被围观 4,904次+
一、CentOS 7.x 安装Docker-ce社区版本 https://www.osyunwei.com/archives/11592.html 二、准备安装软件包 cd /usr/local/src #建议先把需要安装的软件包下载到本地目录 1、下载php https://www.php.net/distributions/php-7.1.33.tar.gz 2、下载openssl https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz 3、下载libmcrypt(php扩展) https://nchc.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz 4、下载yasm(php扩展) http://www.tortall.net/projects/yasm/re...
阅读全文
0℃

Docker下使用Dockerfile基于debian基础镜像构建php-fpm容器镜像

2021年08月19日 Docker  ⁄ 被围观 6,014次+
一、CentOS 7.x 安装Docker-ce社区版本 https://www.osyunwei.com/archives/11592.html 二、准备安装软件包 cd /usr/local/src #建议先把需要安装的软件包下载到本地目录 1、下载php http://mirrors.sohu.com/php/php-7.0.33.tar.gz 2、下载openssl https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz 3、下载libmcrypt(php扩展) https://nchc.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz 4、下载yasm(php扩展) http://www.tortall.net/projects/yasm/releases...
阅读全文
0℃

Docker下使用Dockerfile构建Nginx容器镜像

2021年08月09日 Docker  ⁄ 被围观 6,118次+
一、CentOS 7.x 安装Docker-ce社区版本 https://www.osyunwei.com/archives/11592.html 二、构建Nginx容器镜像 1、准备软件包 cd /usr/local/src #建议先把需要安装的软件包下载到本地目录 wget http://nginx.org/download/nginx-1.21.1.tar.gz #nginx wget http://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz #nginx扩展 wget https://www.openssl.org/source/openssl-1.1.1k.tar.gz #nginx扩展 wget http://www.zlib.net/zlib-1.2.11.tar.gz #nginx扩展 2、从docker hub拉取构建所需要的基础系统镜像 #我们用cento...
阅读全文


Copyright© 2011-2024 系统运维 All rights reserved
版权声明:本站所有文章均为作者原创内容,如需转载,请注明出处及原文链接
陕ICP备11001040号-3