摘要: 添加清除header信息 location /api/ { more_clear_headers "X-Powered-By"; more_clear_headers "Server"; more_clear_headers "ETag"; more_clear_headers "Connectio 阅读全文
posted @ 2020-02-12 17:38 enumx 阅读(5287) 评论(0) 推荐(0) 编辑
摘要: 复制以下代码 → 博客后台 → 设置 → 页面定制CSS代码 → 粘贴 #ad_t2,#cnblogs_c1,#under_post_news,#cnblogs_c2,#under_post_kb {display:none;!important} F12查看源码找到对应的id修改。 ad_t2: 阅读全文
posted @ 2020-02-12 16:18 enumx 阅读(137) 评论(0) 推荐(0) 编辑
摘要: gzip on; gzip_min_length 1k; gzip_buffers 4 16k; gzip_comp_level 2; gzip_types text/plain application/x-javascript text/css application/xml text/javas 阅读全文
posted @ 2020-02-12 13:31 enumx 阅读(474) 评论(0) 推荐(0) 编辑
摘要: 根据操作系统下载对应的软件包 https://golang.google.cn/dl/ GOROOT就是go的安装路径 vim /etc/profile,在末尾加上三行 ``` export GOROOT=/usr/local/goexport GOPATH=/home/goexport PATH= 阅读全文
posted @ 2020-02-12 03:00 enumx 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1.企业贡献: 搜狐开源镜像站:http://mirrors.sohu.com/ 网易开源镜像站:http://mirrors.163.com/ 阿里巴巴开源镜像站:https://mirrors.aliyun.com华为开源镜像站:https://mirrors.huaweicloud.com/ 阅读全文
posted @ 2020-02-11 22:34 enumx 阅读(201) 评论(0) 推荐(0) 编辑
摘要: yum install -y gcc gcc-c++ PCRE. wget https://netix.dl.sourceforge.net/project/pcre/pcre/8.40/pcre-8.40.tar.gz tar -zxvf pcre-8.40.tar.gz cd pcre-8.40 阅读全文
posted @ 2020-02-11 21:35 enumx 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 一、/usr/sbin与/usr/bin区别: 1、/usr/sbin:root权限下的命令属于基本的系统命令,如shutdown,reboot,用于启动系统,修复系统; 2、/usr/bin普通用户权限,存放一些普通的基本命令,如ls,chmod等; 二、/usr/bin与/usr/local/b 阅读全文
posted @ 2020-02-07 21:00 enumx 阅读(284) 评论(0) 推荐(0) 编辑
摘要: F B 30 40 黑色 31 41 红色 32 42 绿色 33 43 黄色 34 44 蓝色 35 45 紫红色 36 46 青蓝色 37 47 白色 阅读全文
posted @ 2020-02-06 15:57 enumx 阅读(543) 评论(0) 推荐(0) 编辑
摘要: 基本格式:echo -e “\033[字背景颜色;文字颜色m字符串\033[0m”样例:echo -e “\033[1;32mhello\033[0m” #!/bin/bash xmessage() { echo -e "\033[1;$1m`date "+[%Y/%m/%d %H:%M:%S]"` 阅读全文
posted @ 2020-02-06 12:43 enumx 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 在linux系统中,文件或目录的权限可以分为3种: r:4 读 w:2 写 x:1 执行(运行)-:对应数值0 数字 4 、2 和 1表示读、写、执行权限 rwx = 4 + 2 + 1 = 7 (可读写运行) rw = 4 + 2 = 6 (可读写不可运行) rx = 4 +1 = 5 (可读可运 阅读全文
posted @ 2020-02-06 12:15 enumx 阅读(169) 评论(0) 推荐(0) 编辑