会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Darcy
心有山海,静而无边.
博客园
新随笔
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
下一页
2020年4月8日
java时间戳互转
摘要: 时间转换为时间戳: /* * 将时间转换为时间戳 */ public static String dateToStamp(String s) throws ParseException{ String res; SimpleDateFormat simpleDateFormat = new Simp
阅读全文
posted @ 2020-04-08 14:38 ToDarcy
阅读(252)
评论(0)
推荐(0)
2020年3月31日
nginx反向代理- b域名访问a域名
摘要: server { listen 80; server_name A.com; location /{ proxy_pass https://B.com/asi/; } location ^~/web/ { proxy_pass https://B.com/web/; } }
阅读全文
posted @ 2020-03-31 10:13 ToDarcy
阅读(910)
评论(0)
推荐(0)
2020年3月30日
解决 Mac 的 txt 文件乱码问题
摘要: 经常遇到 txt 文件在 Mac 上显示乱码, 如图所示. 解决 1. 单个乱码文件的转换 使用 Shell 的 iconv 命令来转换文件编码, 其语法是: iconv -f encoding -t encoding sourcefile > destinationfile 例如, 想把 GB18
阅读全文
posted @ 2020-03-30 11:18 ToDarcy
阅读(1322)
评论(0)
推荐(0)
2020年3月27日
阿里云服务器ssh经常断开问题处理。
摘要: #vim /etc/ssh/sshd_config 找到下面两行 #ClientAliveInterval 0 #ClientAliveCountMax 3 去掉注释,改成 ClientAliveInterval 30 ClientAliveCountMax 86400 这两行的意思分别是 1、客户
阅读全文
posted @ 2020-03-27 15:24 ToDarcy
阅读(583)
评论(0)
推荐(0)
2020年3月23日
nginx禁止ip直接访问
摘要: 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
阅读(231)
评论(0)
推荐(0)
2020年3月20日
局域网中搭建共享MySQL数据库
摘要: 局域网中搭建共享MySQL数据库比较适合学习阶段的同学,适合搭建平台进行测试,也方便共同管理数据库,但是还是有较大的弊端,本文的讲解方法只能在局域网中进行搭建。 一、配置单个电脑访问共享数据库需要注意的是: 几台电脑的ip地址需要在同一个段安装的有MySQL服务navicat客户端软件不强制,只是建
阅读全文
posted @ 2020-03-20 09:51 ToDarcy
阅读(2441)
评论(0)
推荐(0)
2020年3月16日
python获取script里的内容
摘要: 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
阅读(5232)
评论(0)
推荐(0)
2020年2月25日
nginx could not build the server_names_hash 解决方法
摘要: 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
阅读(188)
评论(0)
推荐(0)
2020年2月12日
查看端口
摘要: 1、查看使用端口进程 lsof -i: 端口号 2、释放进程 kill 你的PID 3、再次执行第一步,是否无进程占用 lsof -i: 端口号
阅读全文
posted @ 2020-02-12 16:32 ToDarcy
阅读(195)
评论(0)
推荐(0)
2020年2月11日
git取消合并和 强制提交和强制覆盖本地
摘要: 取消合并 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
阅读(1161)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
下一页
公告