摘要: Iptables配置端口转发 本文所有操作都在Centos7下面完成 #安装iptables yum install -y iptables* yum update iptables #启动 systemctl enable iptables systemctl start iptables #开启 阅读全文
posted @ 2021-05-26 10:49 suitliang 阅读(557) 评论(0) 推荐(0) 编辑
摘要: 基于CentOS7搭建GitLab 1. 准备环境 在正式开始安装之前,先更新软件包并打开相关服务的权限。 #更新软件包 yum update -y #安装sshd yum install -y curl policycoreutils-python openssh-server systemctl 阅读全文
posted @ 2021-05-18 13:58 suitliang 阅读(69) 评论(0) 推荐(0) 编辑
摘要: vscode安装go插件 在 VSCode 安装完 Go 插件之后,需要安装 Go 相关的依赖。但是由于国内众所周知的网络问题,一些 golang.org 的包无法正常下载。这个时候我们需要手动从 Github 下载,再更新 Go 插件的依赖。 首先,在命令行确认你配置好了 GOPATH 和 GOP 阅读全文
posted @ 2021-01-29 11:53 suitliang 阅读(289) 评论(0) 推荐(0) 编辑
摘要: Centos7更改root密码 1. 在开机出现下图界面,按 ‘e’ 键 2. 在步骤一按下”e”键之后,出现如下界面,按 ↓键一直到底部找到“LANG=zh_CN.UTF-8”这句,在这句后面加上“init=/bin/sh”,然后按Ctrl+x进入单用户。 3. 挂载文件系统为可写模式:mount 阅读全文
posted @ 2021-01-18 15:51 suitliang 阅读(197) 评论(0) 推荐(0) 编辑
摘要: OpenVpn部署(上) 部署环境:Centos7 4c8g , 需在root用户下部署 一. 系统环境优化 关闭防火墙,selinux #关闭防火墙 systemctl stop firewalld ; systemctl disable firwalld #关闭selinux sed -i "s 阅读全文
posted @ 2020-12-30 15:36 suitliang 阅读(10) 评论(0) 推荐(0) 编辑
摘要: Linux设置ssh免密登录 创建本机公钥和私钥 [root@hdss7-200 ~]# ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh 阅读全文
posted @ 2020-12-09 16:02 suitliang 阅读(128) 评论(0) 推荐(0) 编辑