摘要: Linux CentOS 7 安装 nginx linux版本:CentOS7 64位 在安装nginx前首先要确认系统中安装了gcc、pcre-devel、zlib-devel、openssl-devel。 安装命令: yum -y install gcc pcre-devel zlib-deve 阅读全文
posted @ 2021-06-28 18:31 柯宝宝智商感人 阅读(122) 评论(0) 推荐(0) 编辑
摘要: nginx 配置软连接 ln -s /usr/local/nginx/sbin/nginx /usr/bin/nginx 阅读全文
posted @ 2021-06-28 18:19 柯宝宝智商感人 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 查看防火墙 firewall-cmd --state 停止防火墙 systemctl stop firewalld.service 禁止开机启动 systemctl disable firewalld.service 如果想增加对外开放的端口,就需要通过防火墙的管理命令firewalld-cmd,例 阅读全文
posted @ 2021-06-28 18:17 柯宝宝智商感人 阅读(40) 评论(0) 推荐(0) 编辑
摘要: CentOS7下gogs git仓库搭建/踩坑 一、使用yum安装Git: sudo yum install git 二、添加git用户: sudo useradd git # 设置密码 passwd git #按照要求输入密码即可 三、查看CentOS内核版本,确定架构(x64、x86还是arm) 阅读全文
posted @ 2021-06-28 18:15 柯宝宝智商感人 阅读(141) 评论(0) 推荐(0) 编辑