-
Linux 之 Ubuntu 安装 JDK 及 JRE
安装 Jave8 导入Webupd8 PPA sudo add-apt-repository ppa:webupd8team/java sudo apt-g
-
Git 提示 error failed to push some refs to git@github.com
错误信息 error: failed to push some refs to 'git@github.com:....." Updates were rej
2019-03-25, Views: 3857 , Topics: Git
-
Git 提示 You asked me to pull without telling me which branch you...
错误信息 Git未关联本地分支与远程分支,报错如下: You asked me to pull without telling me which branch
2019-03-25, Views: 6039 , Topics: Git
-
Git 提示 refusing to merge unrelated histories
错误提示 git push时提示: fatal: refusing to merge unrelated histories 解决方法 git pull --a
2019-03-25, Views: 3633 , Topics: Git
-
GitHub 访问慢解决方案
2021-04-21 编辑 GitHub访问更多因为DNS解析问题,可自己登陆IPAddress网站查询可用DNS,具体可参考最新文章解决方案:GitHub O
-
Git 命令之查看及设置用户名邮箱
说明 GitHub统计contributions是以邮箱依据的。 查看用户名和邮箱地址 git config user.name git config user
2019-03-23, Views: 4488 , Topics: Git
-
Nginx 配置之屏蔽 IP 访问
查看 IP 访问次数 Nginx日志名为access.log。 awk '{print $1}' access.log |sort |uniq -c|sort
-
Nginx 配置之开启状态检查
查看是否安装所需模块 --with-http_stub_status_module nginx -V 如若未安装改模块,需重新编译安装 ./configure
2019-03-21, Views: 3183 , Topics: Nginx
-
Nginx 配置之开启 Gzip 压缩
配置可供参考 gzip on; gzip_min_length 1k; gzip_buffers 4 16k; #gzip_http_version 1.0;
-
Nginx 配置之解决 413 错误(Request Entity Too Large)
错误信息 Failed to load resource: the server responded with a status of 413 (Reques
2019-03-20, Views: 6730 , Topics: Nginx
-
Nginx 配置之视频防盗链
查看安装的模块 nginx -V 安装 secure_link 模块 如果没有secure_link模块,则需安装。 ./configure --with-ht
-
Nginx 配置之图片防盗链
配置 location ~* ^/uploads/img/.*?\.(jpe?g|png|gif|svg)$ { valid_referers none
-
Nginx 配置之开启缓存过期时间
expires 默认单位:秒。 h:时 m:分 s:秒 y:年 location ~ .*\.(?:jpg|jpeg|gif|png|ico|cur|gz|
-
Nginx 配置之 PHP 路径配置
80 端口对应单个 PHP 服务 server { listen 80; server_name localhost; r
-
Nginx 配置之反向代理获取真实 IP
方法 保留代理之前的host: proxy_set_header Host $host; 保留代理之前的真实客户端IP: proxy_set_header X-
-
Nginx 配置之隐藏版本号
方法 打开Nginx主配置文件:nginx.conf,取消注释或添加配置语句。 server_tokens off; http { # ...省
2019-03-20, Views: 2766 , Topics: Nginx
-
Nginx 配置之 worker_processes
1.9.10 版本后可以配置 worker_processes auto; worker_cpu_affinity auto; 解释 0001表示启用第一个CP
2019-03-19, Views: 5790 , Topics: Nginx
-
Nginx 之基础命令
查看简要信息 nginx -v 查看详细信息 nginx -V 启动服务 nginx 重新加载配置文件 nginx -s reload 快速停止服务 nginx
2019-03-19, Views: 2968 , Topics: Nginx
-
Git 命令之代码合并 rebase
合并代码之 rebase 合并某个分支上的一系列 commits 如需要合并commit abc-def-ghi-jkl到master分支。 创建一个
2019-03-18, Views: 3226 , Topics: Git
-
Git 命令之回退到指定 commit
1. 查看提交日志 git log # 已经删除的commitId可以用git reflog查看 git reflog 2. 本地代码回到指定的comm
2019-03-18, Views: 3676 , Topics: Git