上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要: 经常遇到 txt 文件在 Mac 上显示乱码, 如图所示. 解决 1. 单个乱码文件的转换 使用 Shell 的 iconv 命令来转换文件编码, 其语法是: iconv -f encoding -t encoding sourcefile > destinationfile 例如, 想把 GB18 阅读全文
posted @ 2020-03-30 11:18 ToDarcy 阅读(1104) 评论(0) 推荐(0) 编辑
摘要: #vim /etc/ssh/sshd_config 找到下面两行 #ClientAliveInterval 0 #ClientAliveCountMax 3 去掉注释,改成 ClientAliveInterval 30 ClientAliveCountMax 86400 这两行的意思分别是 1、客户 阅读全文
posted @ 2020-03-27 15:24 ToDarcy 阅读(570) 评论(0) 推荐(0) 编辑
摘要: server { listen 80 default_server; server_name _; return 500; } 或者 server { listen 80 default_server; server_name _; rewrite ^(.*) http://todarct.com 阅读全文
posted @ 2020-03-23 15:42 ToDarcy 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 局域网中搭建共享MySQL数据库比较适合学习阶段的同学,适合搭建平台进行测试,也方便共同管理数据库,但是还是有较大的弊端,本文的讲解方法只能在局域网中进行搭建。 一、配置单个电脑访问共享数据库需要注意的是: 几台电脑的ip地址需要在同一个段安装的有MySQL服务navicat客户端软件不强制,只是建 阅读全文
posted @ 2020-03-20 09:51 ToDarcy 阅读(2335) 评论(0) 推荐(0) 编辑
摘要: import requests from bs4 import BeautifulSoup url1 = "https://mip.keoaeic.org/journal_skills/6616.html" html = requests.get(url1).content html=html.de 阅读全文
posted @ 2020-03-16 11:48 ToDarcy 阅读(5188) 评论(0) 推荐(0) 编辑
摘要: nginx “nginx could not build the server_names_hash”解决方法 给一个服务器下增加了一些站点别名,差不多有20多个。 重启nginx时候,提示: could not build the server_names_hash, you should inc 阅读全文
posted @ 2020-02-25 09:46 ToDarcy 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 1、查看使用端口进程 lsof -i: 端口号 2、释放进程 kill 你的PID 3、再次执行第一步,是否无进程占用 lsof -i: 端口号 阅读全文
posted @ 2020-02-12 16:32 ToDarcy 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 取消合并 git merge --abort push强制提交 git push -f origin master git pull 强制覆盖本地 // 从远程仓库下载最新版本 git fetch --all // 将本地设为刚获取的最新的内容 git reset --hard origin/mas 阅读全文
posted @ 2020-02-11 17:10 ToDarcy 阅读(1099) 评论(0) 推荐(0) 编辑
摘要: 服务器环境为CentOS,php-fpm,使用curl一个https站时失败,打开curl_error,捕获错误:Problem with reading the SSL CA cert (path? access rights?) 解决方案:1. yum install ca-certificat 阅读全文
posted @ 2020-01-17 17:15 ToDarcy 阅读(396) 评论(0) 推荐(0) 编辑
摘要: 配置nginx server { autoindex on;# 显示目录 autoindex_exact_size on;# 显示文件大小 autoindex_localtime on;# 显示文件时间 listen 80; server_name 192.168.22.22; root /data 阅读全文
posted @ 2019-12-03 15:57 ToDarcy 阅读(202) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页