摘要: 1、安装所需依赖软件 apt install software-properties-common apt-transport-https wget 2、获取GPG key,并添加到可信任列表 wget -q http://www.webmin.com/jcameron-key.asc -O- | 阅读全文
posted @ 2021-08-31 10:06 PeterSun888 阅读(443) 评论(0) 推荐(0) 编辑
摘要: 1、拉取aria2镜像 docker pull p3terx/aria2-pro:202108221156 2、启动镜像 docker run -d \ --name aria2 \ --restart=always \ --log-opt max-size=1m \ -e PUID=$UID \ 阅读全文
posted @ 2021-08-31 09:58 PeterSun888 阅读(1388) 评论(0) 推荐(0) 编辑
摘要: 1、拉取镜像文件 docker pull gitlab/gitlab-ce:14.1.0-ce.0 2、启动容器 docker run --restart=always \ -p 1443:443 -p 18080:18080 \ --name mygitlab-ce \ -v ~/gitlab/g 阅读全文
posted @ 2021-08-31 09:47 PeterSun888 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 1、安装Samba服务 sudo apt-get install samba samba-common 2、配置需要共享的目录 sudo chmod -R 777 /home/ 3、添加samba用户 sudo smbpasswd -a root 注:添加samba用户,用于其他人或设备认证,这里添 阅读全文
posted @ 2021-08-27 09:20 PeterSun888 阅读(1549) 评论(0) 推荐(0) 编辑
摘要: 1、centos中firewalld与iptables centos7以前的版本默认使用iptables服务进行管理防火墙规则。centos7以及其以上版本默认使用firewalld服务管理防火墙。所以在centos8中,就使用其默认的firewalld配置防火墙。 2、firewalld相关命令 阅读全文
posted @ 2021-08-18 14:33 PeterSun888 阅读(1557) 评论(0) 推荐(0) 编辑
摘要: 1、PHP7.4 容器配置 #1. 启动PHP7.4 docker run --restart=always --name myphp-docker -v ~/nginx/www:/www -d php:7.4-fpm #2.登录PHP7.4容器 docker exec -it myphp-dock 阅读全文
posted @ 2021-08-18 14:26 PeterSun888 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 1、制作 repo 文件 使用 vim 创建repo文件 sudo vim /etc/yum.repos.d/mongodb-org-4.2.repo 输入如下配置到repo文件,然后保存,退出vim [mongodb-org-4.2] name=MongoDB Repository baseurl 阅读全文
posted @ 2020-12-25 09:46 PeterSun888 阅读(629) 评论(0) 推荐(0) 编辑
摘要: 1、使用yum 命令安装 sudo yum install redis 2、安装完毕后,即可使用下面的命令启动redis服务 service redis start 或者 systemctl start redis 3、查看redis版本 redis-cli --version 4、设置为开机自动启 阅读全文
posted @ 2020-12-25 09:45 PeterSun888 阅读(2601) 评论(0) 推荐(0) 编辑
摘要: @RestController is a stereotype annotation that combines @ResponseBody and @Controller. @RestController注解相当于@ResponseBody + @Controller合在一起的作用。 1)如果只是 阅读全文
posted @ 2020-09-22 10:21 PeterSun888 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 一、安装扩展 在 Visual Studio Code 中打开扩展视图(Ctrl+Shift+X)。 安装 Java Extension Pack (Java 扩展包), 或者安装 Language Support for Java(TM) by Red Hat,及 Java Debugger fo 阅读全文
posted @ 2020-09-22 10:15 PeterSun888 阅读(1927) 评论(0) 推荐(0) 编辑