会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zipon
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
4
5
6
7
8
9
10
11
12
···
35
下一页
2019年11月26日
git本地以及远程分支回滚
摘要: 转:https://www.cnblogs.com/sunny-sl/p/11236280.html 1. git本地版本回退 2. git远程版本回退 下面的命令也可以实现远程版本回退 3. git reverse和git reset的区别 git revert是用一次新的commit来回滚之前的
阅读全文
posted @ 2019-11-26 17:14 zipon
阅读(6575)
评论(0)
推荐(0)
2019年11月14日
C#使用cmd运行命令并返回控制台输出信息
摘要: public static string RunCmd(string cmd){ cmd = cmd.Trim().TrimEnd('&') + "&exit";//说明:不管命令是否成功均执行exit命令,否则当调用ReadToEnd()方法时,会处于假死状态 Process p =new Process(); p.StartInfo.FileName = "cmd.exe"; //p.Star
阅读全文
posted @ 2019-11-14 14:59 zipon
阅读(2001)
评论(0)
推荐(0)
2019年10月11日
分割nginx日志
摘要: #!/bin/bash #此脚本用于自动分割Nginx的日志,包括access.log和error.log #每天00:00执行此脚本 将前一天的access.log重命名为access-xxxx-xx-xx.log格式,并重新打开日志文件 #Nginx日志文件所在目录 LOG_PATH=/data/logs #获取昨天的日期 YESTERDAY=$(date -d "yesterday" +%...
阅读全文
posted @ 2019-10-11 18:53 zipon
阅读(232)
评论(0)
推荐(0)
2019年9月17日
redis启动警告解决
摘要: vim /etc/rc.localecho never > /sys/kernel/mm/transparent_hugepage/enabled加入上面那句到/etc/rc.local,开机启动,并且直接执行上面那句或者sudo /etc/rc.local,直接生效vim /etc/sysctl.
阅读全文
posted @ 2019-09-17 14:41 zipon
阅读(182)
评论(0)
推荐(0)
何以解忧,唯有暴富
该文被密码保护。
阅读全文
posted @ 2019-09-17 09:45 zipon
阅读(3)
评论(0)
推荐(0)
2019年8月23日
git worktree 目录修复
摘要: 三种方式挨个尝试,1不行用2 2不行用3 1.拉取阶段失败 git worktree add -f -B xxx_branch ./xxx_branch origin/xxx_branch 强制拉取 2.删除worktree目录,再录取 git worktree remove xxx_branch
阅读全文
posted @ 2019-08-23 14:09 zipon
阅读(822)
评论(0)
推荐(0)
2019年8月22日
git worktree 稀疏检出(sparseCheckout)
摘要: 稀疏检出配置: worktree稀疏配置: 1.git worktree add -b xxxx_branch ./xxxx_branchorigin/xxxx_branch --no-checkout ,先使用--no-checkout,然后加配置,然后checkout 2.要在./git/wor
阅读全文
posted @ 2019-08-22 10:09 zipon
阅读(754)
评论(0)
推荐(0)
2019年8月21日
python json dumps datetime类型报错
摘要: # -*- coding: utf-8 -*- import json from datetime import date, datetime class MyEncoder(json.JSONEncoder): def default(self, obj): # if isinstance(obj, datetime.datetime): # ...
阅读全文
posted @ 2019-08-21 17:21 zipon
阅读(1076)
评论(0)
推荐(0)
2019年8月19日
golang高级用法总结
摘要: sync.WaitGroup add() done() wait() 相当于计数器,done会减一,wait会等待所有线程都执行完才执行下面代码 sync.pool 用来封装连接池
阅读全文
posted @ 2019-08-19 19:32 zipon
阅读(1066)
评论(0)
推荐(0)
2019年8月9日
主机可以ping通虚拟机,虚拟机ping不通主机和外网
摘要: vmware-->编辑-->虚拟网络编辑器-->更改配置,如下图选择:
阅读全文
posted @ 2019-08-09 15:51 zipon
阅读(1321)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
35
下一页
公告