上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页
摘要: nginx支持的信号量 TERM, INT fast shutdown QUIT graceful shutdown HUP changing configuration, keeping up with a changed time zone (only for FreeBSD and Linux 阅读全文
posted @ 2020-09-12 15:47 NetRookieX 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 环境 CentOS7 步骤 安装依赖包 yum install -y policycoreutils-python openssh-server systemctl enable sshd systemctl start sshd 安装邮件服务 yum -y install postfix syst 阅读全文
posted @ 2020-09-06 18:40 NetRookieX 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 示例1-无break和last 请求:访问/1.html 结果:最终会匹配到b.html 执行顺序:连续执行两次rewrite后,匹配到location /3.html,最终匹配到b.html server{ listen 80; server_name test.com; root /tmp; l 阅读全文
posted @ 2020-09-06 10:52 NetRookieX 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 背景 一般情况下,我们直接拉取mysql的镜像即可。但是如果需要在centos的镜像里安装并启动mysql,那么这篇文章将会给你帮助。 既然可以在容器中安装mysql,本教程同样适用于CentOS中。 安装 yum -y install mariadb-server mariadb 初始化 mysq 阅读全文
posted @ 2020-09-06 01:13 NetRookieX 阅读(0) 评论(0) 推荐(0) 编辑
摘要: inode是什么 一个文件由两部分组成:元信息和数据。 在Linux中,inode包含文件的元信息,具体来说有以下内容: Size 文件的字节数 Uid 文件拥有者的User ID Gid 文件的Group ID Access 文件的读、写、执行权限 文件的时间戳,共有三个: Change 指ino 阅读全文
posted @ 2020-08-30 23:06 NetRookieX 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 背景 直接通过yum安装的ruby版本太低,不能满足redis、fpm等软件的需求。 系统环境 CentOS7 安装步骤 下载ruby http://www.ruby-lang.org/en/downloads/ 安装依赖包 yum -y install gcc openssl-devel make 阅读全文
posted @ 2020-08-30 17:40 NetRookieX 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 背景 在mac上使用brew安装软件发生错误 解决办法 执行以下命令即可 rm -rf /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core brew update 阅读全文
posted @ 2020-08-30 00:14 NetRookieX 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 例1 type Transport struct { Time string Id int } func main() { //将struct的切片包装成json格式 var st []Transport t1 := Transport{Time: "22", Id: 44} st = append 阅读全文
posted @ 2020-08-23 20:53 NetRookieX 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 简介 Token就像是一个暗号,使用它就可以访问一些需要认证的系统或者服务。 那么,如何在http(s)中使用Token值呢? 使用方法 在http请求的头部字段中添加key-value。key为"Authorization",value为Token值。 例如 curl -H 'Authorizat 阅读全文
posted @ 2020-08-23 15:40 NetRookieX 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 在CentOS7上安装Mariadb https://blog.csdn.net/NetRookieX/article/details/104734181 常用的增删改查 show databases; #查看数据库 create database test; #创建一个数据库,名字为test us 阅读全文
posted @ 2020-07-13 22:28 NetRookieX 阅读(9) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页