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

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

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

2021年10月19日 Docker  ⁄ 被围观 3,813次+
本教程中用到的配置文件请参考下面的连接 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  ⁄ 被围观 4,758次+
本教程中用到的配置文件请参考下面的连接 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  ⁄ 被围观 19,645次+
本教程实现目的: 在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  ⁄ 被围观 3,961次+
一、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,064次+
准备篇 一、环境说明: 操作系统: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  ⁄ 被围观 5,645次+
一、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,400次+
一、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,026次+
一、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,154次+
一、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  ⁄ 被围观 5,651次+
一、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,369次+
一、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  ⁄ 被围观 5,424次+
一、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  ⁄ 被围观 5,472次+
一、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...
阅读全文
0℃

CentOS 7.x 安装Docker-ce社区版本

2021年07月30日 Docker  ⁄ 被围观 5,194次+
Docker是一个开源的应用容器引擎,目前分为社区版本(CE)和企业版本(EE),一般使用社区版本。 CentOS系统下Docker目前支持CentOS 7.x 8.x 版本,系统内核版本为Linux 3.10及其以上版本。 一、安装前准备工作 1、CentOS 升级系统内核到最新版 https://www.osyunwei.com/archives/11582.html 2、CentOS系统关闭selinux #执行以下命令 setenforce 0 sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config reboot #重启系统 /usr/sbin/sestatus -v #查看selinux状态,disabled表示关闭 [root@master01 ~]...
阅读全文
0℃

CentOS 升级系统内核到最新版

2021年07月07日 CentOS  ⁄ 被围观 6,414次+
说明: 系统版本:CentOS 7.x CentOS 7.x默认内核版本是Linux 3.10,我们需要部署K8s等项目需要高版本的内核。 Linux Kernel官方网站:https://www.kernel.org/ ELRepo源网站:http://elrepo.org/ 一、升级系统 #检查当前 CentOS 系统版本 cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) #检查当前 CentOS 系统内核版本 uname -sr Linux 3.10.0-1160.el7.x86_64 yum clean all #清除缓存 yum makecache fast #重新建立缓存 yum update -y #升级系统 reboot #重启系统 二、使用elrepo源升级内核 r...
阅读全文
0℃

Ubuntu 20.04.x/Debian 10.x译安装配置Pure-FTPd服务器

2021年06月30日 FTP  ⁄ 被围观 4,271次+
说明: Pure-FTPd是一款开源的FTP服务器软件,配置简单,安全高效,下面我们在CentOS 8.x/Rocky Linux 8.x系统下部署Pure-FTPd 一、配置防火墙,开启Pure-FTPd需要的端口 1.1安装iptables防火墙 Ubuntu Server默认没有开启任何防火墙的,但是默认安装了ufw防火墙,我们这里推荐使用iptables防火墙。 ufw status #查看系统自带的ufw防火墙状态 Status: inactive #表示关闭 ufw disable #关闭ufw防火墙,参数enable是开启,我们这里关闭 apt-get remove ufw #卸载ufw apt-get purge ufw #清除ufw依赖包 whereis ipt...
阅读全文
0℃

CentOS 8.x/Rocky Linux 8.x编译安装配置Pure-FTPd服务器

2021年06月28日 FTP  ⁄ 被围观 5,168次+
说明: Pure-FTPd是一款开源的FTP服务器软件,配置简单,安全高效,下面我们在CentOS 8.x/Rocky Linux 8.x系统下部署Pure-FTPd 一、配置防火墙,开启FTP服务器需要的端口 CentOS 8.x/Rocky Linux 8.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件 # Fire...
阅读全文


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