yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum list docker-ce --showduplicates | sort -r
yum install docker-ce -y
yum -y install docker-ce-3:20.10.6-3.el7
systemctl start docker
systemctl enable docker
systemctl status docker
systemctl stop docker
systemctl restart docker
docker ps
docker pull mysql
docker run --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root1234 -d mysql
docker exec -it mysql bash
mysql -u root -p
CREATE USER 'yunkeyo'@'%' IDENTIFIED WITH mysql_native_password BY 'yunkeyo123456!';
GRANT ALL PRIVILEGES ON *.* TO 'yunkeyo'@'%';
刷新数据库:
flush privileges;
docker pull nacos/nacos-server
https://github.com/alibaba/nacos/blob/master/config/src/main/resources/META-INF/nacos-db.sql
docker run -d \
-v /data/nacos/logs:/home/nacos/logs \
-e TZ="Asia/Shanghai" \
-e PREFER_HOST_MODE=yunkeyo \
-e MODE=standalone \
-e SPRING_DATASOURCE_PLATFORM=mysql \
-e MYSQL_SERVICE_HOST=172.16.3.255 \
-e MYSQL_SERVICE_PORT=3306 \
-e MYSQL_SERVICE_USER=yunkeyo \
-e MYSQL_SERVICE_PASSWORD=yunkeyo123456! \
-e MYSQL_SERVICE_DB_NAME=nacos \
-e MYSQL_SERVICE_DB_PARAM= \
-e NACOS_APPLICATION_PORT=8848 \
-p 8848:8848 \
--name nacos \
--restart=always \
nacos/nacos-server:latest
http://ip:8848/nacos
docker pull redis
docker run -p 6379:6379 --name redis -v /root/dockerConfig/redis/redis.conf:/etc/redis/redis.conf -v /root/dockerConfig/redis/data:/data -d redis redis-server /etc/redis/redis.conf --appendonly yes --requirepass yunkeyo123456!
docker pull registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
docker run -d -it -p 1521:1521 \
--name oracle \
--restart=always \
--mount source=oracle_vol,target=/root/dockerConfig/oracle/data registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
https://blog.csdn.net/weixin_43224306/article/details/124892121
alter user system identified by "yunkeyo123456!";
alter user sys identified by "yunkeyo123456!";
alter profile default limit PASSWORD_LIFE_TIME UNLIMITED;
create user sysdba identified by "yunkeyo123456!";
grant connect,resource,dba to sysdba;
docker run -d -v /root/dockerConfig/mysql8/conf/my.cnf:/etc/my.cnf -v /root/dockerConfig/mysql8/logs:/logs -v /root/dockerConfig/mysql8/data/mysql:/var/lib/mysql -p 3306:3306 --name mysql8 -e MYSQL_ROOT_PASSWORD=yunkeyo123456! mysql:latest
docker logs --tail=1000 mysql8
yum -y install git
GutHub上的地址:https://github.com/git/git/tags
tar -zxvf git-2.37.3.tar.gz
cd git-2.37.3
安装编译git源码所需要的依赖:
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker
make prefix=/usr/local/git all
make prefix=/usr/local/git install
vim /etc/profile
在末尾加上:export PATH=$PATH:/usr/local/git/bin
source /etc/profile
查看git是否安装成功:
git --version
进入官网下载页面下载:https://maven.apache.org/download.cgi
tar -zxvf apache-maven-3.8.6-bin.tar.gz
MAVEN_HOME=/usr/local/java/apache-maven-3.8.6
PATH=$MAVEN_HOME/bin:$PATH
export PATH MAVEN_HOME
source /etc/profile
mvn -v
docker pull jenkins/jenkins
docker run \
-m 1G \
-d \
--name jenkins \
-p 9999:8080 \
-p 50000:50000 \
-v /usr/local/java/jdk-11.0.16.1:/opt/java/jdk-11.0.16.1 \
-v /usr/local/java/apache-maven-3.8.6:/opt/apache-maven-3.8.6 \
-v /root/dockerConfig/jenkins/jenkins_home:/var/jenkins_home \
jenkins/jenkins:latest
vim hudson.model.UpdateCenter.xml