摘要: 本机安装,非docker方式 1、添加存储库:yum的repo中默认没有Jenkins,需要先将Jenkins存储库添加到yum repos# sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stabl 阅读全文
posted @ 2023-02-16 16:12 imwhx 阅读(153) 评论(0) 推荐(0)
摘要: #拉取镜像 docker pull portainer/portainer-ce:latest #启动容器 docker run -d --name portainer -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v /app 阅读全文
posted @ 2022-12-06 16:30 imwhx 阅读(213) 评论(0) 推荐(0)
摘要: 一、docker创建java项目 1、在服务器/root/app/目录新建“backend”项目文件夹; 2、新建Dockerfile配置文件,内容如下: FROM java:8 //或安装的是openjdk,用下面这个 FROM openjdk:8 MAINTAINER wanghx # copy 阅读全文
posted @ 2022-12-06 14:32 imwhx 阅读(159) 评论(0) 推荐(0)
摘要: 一、建立一个docker空项目 准备工作:在服务器根目录建立docker文件夹,新增“web-test”文件夹,新增html、conf、logs文件夹,conf中复制nginx的nginx.conf文件 解释:项目代码从此目录映射到docker容器 conf/nginx.conf为代码运行时启动的端 阅读全文
posted @ 2022-12-06 14:02 imwhx 阅读(125) 评论(0) 推荐(0)
摘要: 通过echo $PATH查看路径,配置jdk和maven 阅读全文
posted @ 2022-12-06 10:49 imwhx 阅读(14) 评论(0) 推荐(0)
摘要: 安装docker项目 --hostname 127.0.0.1 \ --publish 443:443 --publish 80:80 \ --name gitlab \ --restart always \ --volume $GITLAB_HOME/config:/etc/gitlab:Z \ 阅读全文
posted @ 2022-12-06 10:25 imwhx 阅读(26) 评论(0) 推荐(0)
摘要: 1、安装git yum -y install git 文章引用地址:https://blog.csdn.net/debug1001/article/details/125330308 cd /usr/local/ wget http://mirrors.tuna.tsinghua.edu.cn/ap 阅读全文
posted @ 2022-12-06 10:22 imwhx 阅读(24) 评论(0) 推荐(0)
摘要: 1、下载cd /homewget https://nodejs.org/dist/v14.18.1/node-v14.18.1-linux-x64.tar.xz2、解压tar -xvf node-v14.18.1-linux-x64.tar.xz3、配置环境变量vim /etc/profile在文件 阅读全文
posted @ 2022-12-06 10:13 imwhx 阅读(37) 评论(0) 推荐(0)
摘要: 来自:https://www.runoob.com/docker/centos-docker-install.html首先安装服务器公钥:#rpm --import http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7一键安装#curl -sSL ht 阅读全文
posted @ 2022-12-06 10:09 imwhx 阅读(61) 评论(0) 推荐(0)
摘要: 首先安装所需的环境一.安装 PCRE pcre-devel##### yum install -y pcre pcre-devel二.安装gcc##### yum -y install gcc gcc-c++ kernel-devel 三.安装 zlib##### yum install -y zl 阅读全文
posted @ 2022-12-06 10:00 imwhx 阅读(77) 评论(0) 推荐(0)