自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(107)
  • 收藏
  • 关注

原创 在VScode中如何配置带参数的debug

{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830...

2019-12-24 14:00:29 4125

转载 网络测速命令

linux命令行测速:https://blog.51cto.com/13718210/2418661

2019-09-19 22:54:34 1046

原创 新装的通过apt-get install -y mysql-server后连接不上mysql server(resolved)

关闭mysql: systemctl stop mysqlthen vim /etc/mysql/mysql.conf.d/mysqld.cnf, 在末尾增加 skip-grant-tables为什么这样, 在官网找到了说明:https://dev.mysql.com/doc/refman/8.0/en/resetting-permissions.html然后启动mysql: sys...

2019-09-13 17:30:40 641

原创 C语言环境搭建

基础版, 配置C语言开发环境用vscodehttps://blog.csdn.net/dark_tone/article/details/89079653

2019-09-06 22:56:41 386

原创 最简单的Consul集群配置, 双datacenter

官方Doc and API在这儿:https://www.consul.io/docs/internals/architecture.htmlAPI操作我一般用curl, 这个附一个命令curl -H "Content-Type: application/json" -X PUT --data '{"Datacenter":"dc1","Node":"[Nodename]"}' http...

2019-09-05 17:15:08 2464

原创 Log some useful command mount SMB server to MAC, attach dmg to local,

mount_smbfs smb://a4m:a4m@acadmac/A4MFileServer ~/Downloads/10136/cp -r ~/Downloads/10136/Softwares/OS\ X/macOSUpdCombo10.13.6.dmg ~/Downloads/hdiutil attach ~/Downloads/macOSUpdCombo10.13.6.dmg

2019-05-23 17:35:18 144

原创 when you face ""installer error trying to locate volume at"

https://superuser.com/questions/416897/how-do-i-set-the-target-parameter-for-package-installs-in-os-xI have installed some osx system use the command:sudo installer -pkg [path] -target /Volume...

2019-05-23 17:32:26 1166

转载 PHP 观察者模式

<?php/*** 观察者模式应用场景实例** 免责声明:本文只是以哈票网举例,示例中并未涉及哈票网任何业务代码,全部原创,如有雷同,纯属巧合。** 场景描述:* 哈票以购票为核心业务(此模式不限于该业务),但围绕购票会产生不同的其他逻辑,如:* 1、购票后记录文本日志* 2、购票后记录数据库日志* 3、购票后发送短信* 4、购票送抵扣卷、兑换卷、积...

2019-04-26 16:48:14 124

原创 Mysql 密码忘了怎么办

1: 安全模式启动mysql2:更改密码 刷新权限

2019-04-14 14:00:43 144

转载 how to install buildbot

1.1. First Run1.1.1. GoalThis tutorial will take you from zero to running your first buildbot master and worker as quickly as possible, without changing the default configuration.This tutorial i...

2019-03-07 15:55:04 209

转载 安装多版本系统的python

前言:随着python升级更新,新版本较于老版本功能点也有不同地方,作为一个初学者应该了解旧版本的规则,也要继续学习新版本的知识。为了能更好去学习python,我在ubuntu安装python2和python3,以便后期学习。安装步骤如下:1、查看系统下是否安装了pythondpkg -s pythonUbuntu 12.04自带了 Python2.7.3版本2、采用ap...

2019-03-07 11:54:25 102

转载 如何关闭HSTS功能(浏览器端)

必须建立一次完成的HTTPS连接(如果https的证书错误,name HSTS协议在客户端是不生效的) 在安装配置 SSL 证书时,可以使用一种能使数据传输更加安全的Web安全协议,即在服务器端上开启 HSTS (HTTP Strict Transport Security)。它告诉浏览器只能通过HTTPS访问,而绝对禁止HTTP方式。 HTTP Strict Transport Secur...

2019-02-27 16:05:46 6541

原创 set -e -x 等等的作用

set指令能设置所使用shell的执行方式,可依照不同的需求来做设置 -a  标示已修改的变量,以供输出至环境变量。  -b  使被中止的后台程序立刻回报执行状态。  -C  转向所产生的文件无法覆盖已存在的文件。  -d  Shell预设会用杂凑表记忆使用过的指令,以加速指令的执行。使用-d参数可取消。  -e  若指令传回值不等于0,则立即退出shell。    -f   取消使用...

2019-01-17 16:19:23 6411

原创 Centos7 设置开机自动联网 与 VMWORKSTATION 不能联网的排错步骤

Linux关于网络的命令是service network restart/reload/start/进入自己的系统查看自己用的是哪块网卡,[root@localhost network-scripts]# ifconfigens33: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt; mtu 1500 inet ...

2019-01-15 22:06:36 170

转载 两篇很好的讲WEB的文章

WEB请求处理一:浏览器请求发起处理https://www.jianshu.com/p/558455228c43WEB请求处理二:Nginx请求反向代理https://www.jianshu.com/p/bed000e1830b

2019-01-14 16:59:42 215

转载 各种网络通信协议的区别 Socket web-socket restful 与 TCP/IP IOS七层协议

转载自:https://www.jianshu.com/p/9a829ddc05f5(又读后有问题, TCP建立连接后是如何通信的,找到文章: https://blog.csdn.net/sinat_21455985/article/details/53508115)这里还有一篇类似的文章:https://www.jianshu.com/p/947a2673102a这篇文章加了soa...

2019-01-10 16:09:49 1565

原创 PIP 安装包 报错 SSL

报错如下:D:\acadci-github\wk_client_tools\venv\lib\site-packages\pip\_vendor\urllib3\util\ssl_.py:137: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from conf...

2019-01-09 14:55:09 515

转载 细说socket PHP版本

 @phper细说socketphp老实讲,到目前为止,我对socket一无所知,真的。我就现学现卖用过nodejs平台的socket.io搭建过一套高可用实时性的网页聊天系统,其他,就真的只是听过它。今天就来仔仔细细的学一下,socket是什么?它能干什么?什么是socketsocket,我们先仅仅看这个英文单词的中文翻译,它翻译成:"孔"或者"插座",擦,能不能稍微...

2019-01-08 17:39:07 379

原创 VSFTP 主动模式 被动模式 扩展被动模式的区别? 如何发起请求的?

FTP有主动模式 port 被动模式 pasv epasv服务器端一般两种模式都支持. 客户端发起请求时候会指定模式 , 如下是一段vsftpd中的一段logFri Jan 4 13:46:33 2019 [pid 28] [ftpuser] FTP response: Client "10.148.253.154", "230 Login successful."Fri Jan ...

2019-01-04 22:06:38 562

原创 Compose 中如挂载在已经创建成功的docker volume

先上代码version: "3.2"services: jenkins: image: jenkins/jenkins:lts ports: - "8080:8080" - "50000:50000" volumes: - "jenkins_home:/var/jenkins_home"volumes: jenkins_home:网上中说纷纭,有...

2018-12-27 16:08:59 1570

转载 Docker-compose error: docker-compose: error while loading shared libraries: libz.so.1: failed to map

Please refer to this doc: https://rafpe.ninja/2016/03/25/docker-compose-error-while-loading-shared-libraries-libz-so-1/   sudo mount /tmp -o remount,exec 

2018-12-26 18:16:07 2003

原创 Docker; standard_init_linux.go:190: exec user process caused "exec format error"

Dockerfile 入口文件的shell脚本写的有错误example#! /bin/bash这里写错 或者不写任何东西都会报错.  可以参考这个链接

2018-12-20 18:07:06 10854

转载 转载: set,env,export,source,exec傻傻分不清楚?

https://segmentfault.com/a/1190000013356532你是否被下面的几个问题困扰过,甚至至今无法真正理解?什么是export,什么时候用export,为什么有时用了export还要source? 为什么用env来设置环境变量,不用export,有什么好处? source和exec有什么区别?本文试图通过普及unix进程、环境变量等概念,让读者真真理解这...

2018-12-07 20:31:03 139

原创 CTRL+C CTRL+D CTRL+Z CTRL+Q CTRL+S CTRL+L 区别

CTRL+C 终止fg中的程序CTRL+D 结束inputCTRL+Z 将fg程序放入bg并且将状态设置为stoppedCTRL+Q 在终端输入ctrl+q 以后再输入的东西将不会显示 直到你按CTRL+SCTRL+SCTRL+L 有点像clear这个跟fg bg jobs kill 有点关系  属于当前bash下的job control. 放入bg的程序会在当前bash结束后...

2018-12-06 18:33:45 786

原创 Mac os 用命令清空废纸篓

alias emptytrash='sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash;mac的废纸篓很特别嘛,在每个Volume下还有一个隐藏的Trash

2018-12-03 13:18:29 4935

原创 Linux与windows下长路径名

BTRFS 255 bytesexFAT 255 UTF-16 charactersext2 255 bytesext3 255 bytesext3cow 255 bytesext4 255 bytesFAT32 8.3 (255 UCS-2 code units with VFAT LFNs)NTFS 255 charactersXFS ...

2018-11-27 18:15:55 172

原创 Linux 系统不区分大小写

首先要明确的一点 是否区分大小写是由文件系统决定的 跟操作系统没有关系EXT系列不支持配置 case insensitive,JFS XFS 支持XFS的命令是 mkfs.xfs -n version=ci /dev/sdxsdx是磁盘名字.如果不指定 -n 默认的version=2是大小写敏感的, 创建完aa 就不能再创建AA了, 但显示的依然会区分大小写.这里...

2018-11-27 17:32:17 6712

原创 Ubuntu 禁止内核更新或禁止更新某个软件

Rundpkg -l|grep linux-imagedpkg -l是列出所有安装的软件,第一行是ii第一个i表示desired status为安装, 第二个i表示current status.详情参考https://blog.csdn.net/weixin_42215229/article/details/83828803**linux-image** 是linux内核...

2018-11-23 17:50:05 1695

原创 Mac 设定自动启动 自动关机

定时开机pmset schedule wakeorpoweron "mm/dd/yy hh:ii:ss"定时关机 pmset schedule shutdown "mm/dd/yy hh:ii:ss"pmset相当于windows的scheduler,但是他只管电源相关的,设定关机时候会弹出一个提示框 等待十分钟 shudown -h yymmddhhii 会设定一个p...

2018-11-23 17:27:21 844

原创 如何清理/boot 在Ubuntu环境中

/boot分区未满sudo dpkg --list 'linux-image*'|awk '{ if ($1=="ii") print $2}'|grep -v `uname -r` | while read -r line; do sudo apt-get -y purge $line;done;sudo apt-get autoremove; sudo update-grub/boo...

2018-11-09 13:35:55 1158

转载 The meaning of the first line when you use dpkg list

You can find this information out in the head of dpkg -l output, as it's just a formatting convention:dpkg -l | head -3Copied here for reference:Desired=Unknown/Install/Remove/Purge/Hold ...

2018-11-07 18:05:18 173

原创 Resolved: installing pycrypto faced stdint.h syntax error

pycrypto is one dependency of impacket,when running the command:pip install impacketat the step to install pycrypto I encontered error: stdint.h syntax error.(no scrrenshot here, you can lookth...

2018-11-06 13:50:27 100

原创 How to change the GitHub password which has cached in your local

When you changed your password of Github in the remote, then run git fetch, git pull so on you will get the prompt remote: Invalid username or password.fatal: Authentication failed for 'https://g...

2018-10-30 16:11:05 130

原创 SPLUNK 简单查询语句| lookup使用

Here is offical document: http://docs.splunk.com/Documentation/SplunkCloud/7.0.2/Search/GetstartedwithSearch| inputlookup all_w | search slavename="MAC-BUILD-GIT*"| join type=outer slavename    [...

2018-09-11 19:16:43 7387

原创 Virtual box 安装虚拟机后 网路的设定

 systemctl stop firewalld.service 关闭防火墙 (Centos7)关闭Selinux 命令记不清了NAT 可以访问主 但是主机并不能访问 vurtial machine, 主机相当于虚拟机的hub router.Hos-Only 相当于双绞线将虚拟机与主机连接, 主机与虚拟机可以互相访问,但是虚拟机并不能访问外网Bridge 虚拟与主机处于同等...

2018-09-07 16:38:12 219

原创 How to install virtualbox on the centos | docker-machine need the driver of virtualbox

cd /etc/yum.repos.d/; wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repoyum serach vitualbox;yum install virtualboxyum install -y VirtualBox-5.2.x86_64 How to install d...

2018-09-07 15:20:32 121

原创 Windows下远程删除文件/目录命令

psexec \\10.41.88.179,10.41.105.142,10.41.105.232,10.41.80.112 -u administrator -p password cmd /c "rd /s /q E:\CI\build\54413f08\"Psexec是cmd下的一个命令:https://download.sysinternals.com/files/PSTools....

2018-09-05 10:26:09 4358

原创 车与手机

感觉这几年的车企有点像五年前中国的手机企业(只是看表像,毕竟汽车要比手机复杂的多). 那时候小米刚出了米1,把国产手机带入了两千元档次. 中华酷联刚刚摘掉山寨的标签,从夸张的双卡双待,大电池,大音量全部台湾台积电心, 到三年前的开始拼配置,拼价格,再到现在慢慢的转向追求工业设计,品控,黑科技,以及各种服务, 现如今麒麟处理器牛B了, 麒麟960已经可以与骁龙935同台唱戏了,小米也...

2018-08-01 20:55:21 154

原创 How to save the SQL output to CSV format

COPY (select u.user_name,u.email from users as u left join user_login_time as ult on ult.user_id = u.user_id where ult.time&gt;=1514736000 and ult.time &lt;= 1528387200 and status='A' order by u.user_...

2018-08-01 19:25:36 237

原创 Migrate Jenkins-2 preparation

 IP is 10.157.167.129 Account name: sfd Password: sfd123 The key of the account sdfThe key of the account root Create non-root account -rwx------ 1 sfd sfd  410 May 22 09:41 authorized_...

2018-07-31 16:23:41 115

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除