自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(429)
  • 资源 (1)
  • 收藏
  • 关注

转载 Generators in PHP

If you’ve followed my previous posts about iterators then you’ll know that iteration is an important programming concept, but implementing the required interfaces to create an iterable object can be a...

2019-07-23 16:47:01 345

原创 git项目的remote地址替换

This week I'll show you how you can move a full Git repository from one remote server to another. The steps I'm using even allow you to choose which branches and tags to include.Let’s call the orig...

2018-04-13 14:44:05 1829

原创 git 误删分支恢复方法

首先用以下步骤创建一个新分支,修改一些文件后删除,以便进行恢复。1.创建分支 abcgit branch abc112.查看分支列表git branch -a abc* develop remotes/origin-dev/develop123412343.切换到abc分支,随便修改一下东西后 c...

2017-04-13 16:02:29 741

原创 git tag — 标签相关操作

标签可以针对某一时间点的版本做标记,常用于版本发布。列出标签$ Git tag # 在控制台打印出当前仓库的所有标签$ git tag -l ‘v0.1.*’ # 搜索符合模式的标签打标签git标签分为两种类型:轻量标签和附注标签。轻量标签是指向提交对象的引用,附注标签则是仓库中的一个独立对象。建议使用附注标签。# 创建轻量标签$ git tag v0.1.2-light...

2017-04-11 17:11:12 168

原创 Install Elasticsearch 5.0 on RHEL / CentOS

Install Elasticsearch 5.x On RHEL / CentOS using Elasticsearch RepositoryInstall Public Signing Key:rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearchCreate new repo in your /etc/...

2017-03-20 18:36:42 147

原创 ElasticSearch 5.2.2 安装问题记录

      转载自: http://www.itdadao.com/articles/c15a1228740p0.html1、启动 elasticsearch 如出现异常 can not run elasticsearch as root解决方法:创建elasticsearch 账户,修改文件夹 文件 所属用户 组2、启动异常:ERROR: bootstrap checks fail...

2017-03-20 18:33:43 150

supervisor部署及对管理elk的配置

1: Supervisor安装1.1: yum -y install python-setuptools  #安装easy_install 这个命令的软件包1.2:   easy_install supervisor           #安装supervisor生成配置文件 echo_supervisord_conf > /etc/supervisord.conf...

2017-02-23 17:44:16 220

elasticsearch (exit status 1; not expected)

在尝试用supervisord管理elk的时候,elasticsearch一直报如下错误: INFO exited: elasticsearch (exit status 1; not expected)INFO gave up: elasticsearch entered FATAL state, too many start retries too quickly查找资料解决...

2017-02-23 16:43:07 2509

centos6安装git2.x

安装 repo package: yum install http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm安装 Git 2.x: yum install git确定是否安装成功 git --version摘选自: h...

2017-02-21 21:32:04 206

原创 mqtt资料收集链接

1: https://www.cloudmqtt.com/docs-api.html 2:    https://github.com/bluerhinos/phpMQTT 3:    https://blog.risingstack.com/getting-started-with-nodejs-and-mqtt/ 4:    https://github.com/s...

2016-12-13 10:30:01 174

原创 Install mosquitto on mac os x

 转载: http://www.xappsoftware.com/wordpress/2014/10/30/install-mosquitto-on-mac-os-x/ Install mosquitto on mac os xBY GG1 · OCTOBER 30, 2014  Mosquitto is a BSD licensed message brok...

2016-12-13 10:16:29 132

php7和mysql5.7的升级历程

第一步:  brew install php71  --with=apache brew tap  homebrew/dupesbrew tap  homebrew/versionsbrew tap  homebrew/homebrew-phpbrew unlink   php56brew  install  php71  —with=apache 第二步:...

2016-11-09 17:48:35 205

原创 macOS 10.12 Sierra Apache Setup: Multiple PHP Versions

转载自: https://getgrav.org/blog/macos-sierra-apache-multiple-php-versions

2016-11-09 17:31:29 140

原创 php实现的thrift socket server

转载自:  http://www.ooso.net/archives/537  这些天用php写了个thrift的socket server,因为原来thrift的源码里php部分只有基于apache的服务器端代码,再加上前些日子看到php也能直接使用libevent构建web服务器,所以才会想到写这个玩玩。php-thrift-server源码代码直接从apache的thr...

2016-10-28 00:41:15 358

原创 CENTOS7下安装GRPC FOR CPP

 转载: http://dreamlikes.cn/archives/555 gRPC 是一个高性能、开源和通用的 RPC 框架,面向移动和 HTTP/2 设计。目前提供 C、Java 和 Go 语言版本,分别是:grpc, grpc-java, grpc-go. 其中 C 版本支持 C, C++, Node.js, Python, Ruby, Objective-C, PHP 和 ...

2016-10-25 10:58:46 343

原创 细说socket

   转载自: https://www.zybuluo.com/phper/note/47110     老实讲,到目前为止,我对socket一无所知,真的。我就现学现卖用过nodejs平台的socket.io搭建过一套高可用实时性的网页聊天系统,其他,就真的只是听过它。今天就来仔仔细细的学一下,socket是什么?它能干什么? 什么是socketsocket,我们先仅仅看...

2016-10-20 13:38:07 147

原创 rpc是什么?php中流行的rpc框架有哪些。

转载自: https://www.zybuluo.com/phper/note/76641什么是rpc框架先回答第一个问题:什么是RPC框架? 如果用一句话概括RPC就是:远程调用框架(Remote Procedure Call)那什么是远程调用?通常我们调用一个php中的方法,比如这样一个函数方法: localAdd(10, 20),localAdd方法的具体实现要么是用户自...

2016-10-20 13:32:45 196

解决mysql无法启动的问题

(1)➜ ~ sudo mysql.server startStarting MySQL. ERROR! The server quit without updating PID file (/usr/local/var/mysql/yuandeMacBook-Pro.local.pid).   Last login: Sat Oct 10 23:07:52 on t...

2016-10-17 10:16:09 302

原创 Install MySQL on Mac OSX using Homebrew

转载自:  https://blog.joefallon.net/2013/10/install-mysql-on-mac-osx-using-homebrew/  UPDATE: This post is probably very out of date. Please use at your own risk.Recently, while doing some d...

2016-09-29 17:28:05 187

原创 MySQL提示:The server quit without updating PID file问题的解决办法

转载自:  http://www.jb51.net/article/48625.htm今天网站web页面提交内容到数据库,发现出错了,一直提交不了,数找了下原因,发现数据写不进去!第一反应,重启mysql数据库,一直执行中,停止不了也启动不了,直觉告诉我磁盘满了 ! 用df命令查了下,果然磁盘满了,因为当时分区采用系统默认,不知道为什么不能自动扩容!以后在处理这个问题!...

2016-09-06 11:16:57 476

原创 Linux 系统实时监控的瑞士军刀 —— Glances

转载自:  https://linux.cn/article-2782-1.html  早些时候,我们提到过有很多可以用来监视系统性能的 Linux 系统监视工具。 但我们估计,或许更多的用户会倾向与绝大多数 Linux 发行版都带的工具 (top 命令)。top 命令是 Linux 下的一个实时任务管理器, 同时也是用于在 GNU/Linux 发行版中寻找系统性能方面的瓶颈,并...

2016-08-09 01:05:04 120

原创 四种框架分别实现百万 websocket 常连接的服务器

转载自: https://mp.weixin.qq.com/s?__biz=MzA5ODM5MDU3MA==&mid=2650861881&idx=1&sn=43d3081bae920db328beb02d0c754dcd&scene=0&key=8dcebf9e179c9f3ad7b23542656b0bb41efcfbc56321e0e67d31244...

2016-08-02 11:12:22 743

原创 Web服务器磁盘满故障深入解析

转载自:  http://oldboy.blog.51cto.com/2561410/612351  ########################################################## 硬盘显示被写满但是用du -sh /*查看时占用硬盘空间之和还远#小于硬盘大小问的解决#date:2010-06-09#作者:老男孩---《老男孩linux就业培训中...

2016-07-29 16:05:32 207

原创 linux管道后命令xargs

转载自: http://www.360doc.com/content/12/0405/13/532901_201081911.shtmlxargs用法:xargsxargs - build and execute command lines from standard input在 使用find命令的-exec选项处理匹配到的文件时, find命令将所有匹配到的...

2016-07-19 01:25:50 417

原创 SecureCRT for Mac 7.3.1 破解版下载 – Mac 上专业的终端 SSH 工具

链接地址:  http://www.waitsun.com/securecrt-for-mac-7-3.html

2016-07-15 00:36:20 397 1

原创 最好用的日志分析工具ELK

转载: http://blog.oldboyedu.com/elk/  一、ELK介绍1.1 elasticsearch1.1.1 elasticsearch介绍ElasticSearch是一个基于Lucene的搜索服务器。它提供了一个分布式多用户能力的全文搜索引擎,基于RESTful web接口。Elasticsearch是用Java开发的,并作为Apache许可条款下...

2016-07-04 12:45:08 789

原创 How to Install Elasticsearch (Single Node Cluster) on CentOS & Ubuntu

 转载自: http://tecadmin.net/install-elasticsearch-on-linux/# Elasticsearch is flexible and powerful open source, distributed real-time search and analytic engine. Using a simple set of APIs, it p...

2016-07-04 12:40:28 172

原创 Install Elasticsearch 2.x on CentOS 6 by rpm

转载自: http://techieroop.com/install-elasticsearch-2-x-on-centos-6/ This article will cover install Elasticsearch 2.x version on CentOS 6. Also guideline to change to Default Cluster and Index sett...

2016-07-04 12:37:55 131

原创 CENTOS安装ElasticSearch

 转载: http://my.oschina.net/topeagle/blog/591451CENTOS安装ElasticSearchElasticSearch 概述ElasticSearch是一个高可扩展的开源的全文搜索分析引擎。 它允许你快速的存储、搜索和分析大量数据。ElasticSearch通常作为后端程序,为需要复杂查询的应用提供服务。Ela...

2016-06-28 18:55:25 84

原创 zabbix is not runing解决方案

转载自: http://fengzhige.blog.51cto.com/3691377/1034485在linux系统中,几乎所有运行的服务都会产生相对就的日志(log),所运行的程序在出错时都会有错误提示,即使没有任何提示也可以通过“echo $”来查看运行是否成功。使用zabbix已经有一段时间了,整理一下遇到过的问题和解决的方法以。zabbix的日志存放在/tmp下,服务器端对...

2016-06-20 01:52:26 245

原创 centos6.5使用yum安装mysql5.6实现不同磁盘的表分区

转载自: http://www.tuicool.com/articles/MVVZfe很快,很直接  ~   最近在折腾线上的mysql的表分区分表,但是貌似5.5之前的版本不支持分区磁盘的制定,据朋友说 5.6 才支持。   好吧,速度yum一个mysql5.6 试试。 需要先导入一个repo的包。   yum install http://dev.mysql....

2016-06-19 23:50:57 152

原创 centos7下php5.6的安装

转载自 :  http://www.zabbix.cc/technic/1858/CentOS7.0公布也有一段时间了,因此今天把zabbix.cc从CentOS6.5迁移到CentOS7.0,并把Apache改为Nginx了。在这里简单介绍一下安装php5.6的方法。安装php5.6版本以后不再需要安装Zend Guard,而是用yum命令安装php-opcache及php-pec...

2016-06-19 23:50:42 123

原创 centos6下php5.6的安装

 转载自: http://www.zabbix.cc/technic/1420/简单介绍一下,如何在CentOS上安装PHP5.6。配置yum源追加CentOS 6.5的epel及remi源。# rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm#...

2016-06-19 23:49:28 193

原创 Linux下高并发socket最大连接数所受的各种限制

转载:  https://mp.weixin.qq.com/s?__biz=MzAwNjMxNjQzNA==&mid=2651150571&idx=1&sn=3b530ab61da9b20df6b2ff30056cce4a&scene=0&key=8d8120cb97983fade86c611005edc544f065f81ff7b8016d1b87d80...

2016-06-02 11:28:16 212

原创 CoreSeek Mysql 安装与测试 For Mac OS X(中文分词与中文全文检索)

 转载自: http://www.lanecn.com/article/main/aid-67 TagPHPCoreSeekMAC      CoreSeek安装比较麻烦,官方手册对此的支持并不算很好。CoreSeek是基于Sphinx的中文的分词和全文检索软件。本文是在MAC OS X系统下安装和调试CoreSeek。    安装过程中报错如果是警告wa...

2016-05-11 12:43:38 185

原创 RabbitMQ 的CLI管理工具 rabbitmqadmin

转载自:  http://soft.dog/2016/04/20/RabbitMQ-cli-rabbitmqadmin/   RabbitMQ 的CLI管理工具 rabbitmqadminApr 20, 2016Erlang 的仓库下载配置,Erlang 的升级,RabbitMQ 的升级,服务启动,插件启用 ,RabbitMQ CLI 管理工具 rabbitmqadmin...

2016-05-11 12:02:42 671

原创 移动端前端开发调试

转载自:  http://yujiangshui.com/multidevice-frontend-debug/ 通过移动端使用 Web 服务的比率越来越大,例如淘宝 2014 年双十一,移动端交易份额就达到 42.6%。由此可见,掌握移动端的前端开发和测试是非常有必要的。本文只介绍与调试有关的内容,至于其他移动端开发知识(技巧、坑)太多太大,推荐 Mars 移动前端开发知识库。这...

2016-05-09 16:15:29 236

原创 使用ab进行页面的压力测试

转载:  http://www.cnblogs.com/yjf512/archive/2011/05/24/2055723.htmlab是apache自带的一个很好用的压力测试工具,当安装完apache的时候,就可以在bin下面找到ab 1 我们可以模拟100个并发用户,对一个页面发送1000个请求./ab -n1000 -c100 http://vm1.jianfeng.com...

2016-04-19 23:22:01 92

原创 (转载)Building XtraBackup for Mac OS

 转载自: http://www.tuicool.com/articles/mAj26jNPercona XtraBackup is free and open source backup tool for MySQL. Percona distributes XtraBackup via package repositories for RedHat and Debian .Unf...

2016-04-18 12:32:38 1434

原创 (转载) 支撑微博千亿调用的轻量级RPC框架:Motan

转载:  http://mp.weixin.qq.com/s?__biz=MzAwMDU1MTE1OQ==&mid=403874424&idx=1&sn=22d5f15814c297c623ffd2cac4e797ba&scene=21#wechat_redirect 编者按:高可用架构分享及传播在架构领域具有典型意义的文章,本文由张雷在高可用架构群分享。...

2016-04-18 11:50:33 169

jquery1.8手册

jquery 1.8 手册,中文版的。 挺清晰的。大家可以下载下来看看吧。

2013-12-27

空空如也

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

TA关注的人

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