<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[小白的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/github_39437588</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; github_39437588]]></copyright><item><title><![CDATA[WorkerMan客户端连接失败]]></title><link>https://blog.youkuaiyun.com/github_39437588/article/details/112648599</link><guid>https://blog.youkuaiyun.com/github_39437588/article/details/112648599</guid><author>github_39437588</author><pubDate>Fri, 15 Jan 2021 10:52:00 +0800</pubDate><description><![CDATA[workerman客户端连接失败
今天访问客服聊天功能发现不能发送信息，然后看到是因为 WebSocket 连接失败，图如下：
根据字面意思已经了解了问题是因为连接拒绝，那么为什么会拒绝呢？
接下来开始找原因：

官网上找常见问题
百度 or Google

很幸运的是在官网上可以找到 客户端连接失败原因
connection refuse（连接拒绝）
一般是以下原因:
1、客户端连接的端口错了
2、客户端连接的域名或者ip错了
3、如果客户端使用了域名连接，域名可能指向了错误的服务器ip
4、服务端没有启]]></description><category></category></item><item><title><![CDATA[安装PHP扩展phpredis]]></title><link>https://blog.youkuaiyun.com/github_39437588/article/details/103643490</link><guid>https://blog.youkuaiyun.com/github_39437588/article/details/103643490</guid><author>github_39437588</author><pubDate>Sat, 21 Dec 2019 13:22:05 +0800</pubDate><description><![CDATA[PHP扩展-phpredis
# 下载
wget https://github.com/phpredis/phpredis/archive/5.0.2.tar.gz

tar -zxvf 5.0.2.tar.gz

# 进入解压文件
cd phpredis-5.0.2/
# 编译安装
/Applications/MAMP/bin/php/php7.3.1/bin/phpize

./configu...]]></description><category></category></item><item><title><![CDATA[安装Redis（Mac）]]></title><link>https://blog.youkuaiyun.com/github_39437588/article/details/103642443</link><guid>https://blog.youkuaiyun.com/github_39437588/article/details/103642443</guid><author>github_39437588</author><pubDate>Sat, 21 Dec 2019 11:17:45 +0800</pubDate><description><![CDATA[安装Redis（Mac）
安装Redis
cd /Users/baichuanzhen/Downloads/
//下载redis源码包
wget http://download.redis.io/releases/redis-5.0.5.tar.gz
//解压
tar -zxvf redis-5.0.5.tar.gz 
cd redis-5.0.5
//编译安装
make PREFIX=/usr/...]]></description><category></category></item><item><title><![CDATA[生成带post参数的微信小程序二维码]]></title><link>https://blog.youkuaiyun.com/github_39437588/article/details/103522228</link><guid>https://blog.youkuaiyun.com/github_39437588/article/details/103522228</guid><author>github_39437588</author><pubDate>Fri, 13 Dec 2019 14:46:49 +0800</pubDate><description><![CDATA[/**
     * 生成微信小程序二维码
     * @param $params // 需要携带的参数
     * @return string
     */
    public function createWxQrcode($params)
    {
        //配置APPID、APPSECRET
        $wxapp = \config();
        ...]]></description><category></category></item><item><title><![CDATA[Supervisor安装配置（MAC）]]></title><link>https://blog.youkuaiyun.com/github_39437588/article/details/99716432</link><guid>https://blog.youkuaiyun.com/github_39437588/article/details/99716432</guid><author>github_39437588</author><pubDate>Mon, 19 Aug 2019 11:01:10 +0800</pubDate><description><![CDATA[Supervisor安装配置（MAC）
安装supervisor:
brew install supervisor

显示如下，就证明安装成功了
==&gt; python
Python has been installed as
  /usr/local/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc....]]></description><category></category></item><item><title><![CDATA[安装Memcached]]></title><link>https://blog.youkuaiyun.com/github_39437588/article/details/99716330</link><guid>https://blog.youkuaiyun.com/github_39437588/article/details/99716330</guid><author>github_39437588</author><pubDate>Mon, 19 Aug 2019 10:58:59 +0800</pubDate><description><![CDATA[安装Memcached
安装memcached之前需要安装libevent依赖
shell&gt; cd /root/amp
shell&gt; wget https://github.com/libevent/libevent/releases/download/release-2.1.11-stable/libevent-2.1.11-stable.tar.gz
shell&gt;tar -z...]]></description><category></category></item><item><title><![CDATA[npm install报错，npm WARN ajv-keywords@3.4.0 requires a peer of ajv@^6.9.1 but none is installed. You m]]></title><link>https://blog.youkuaiyun.com/github_39437588/article/details/93282088</link><guid>https://blog.youkuaiyun.com/github_39437588/article/details/93282088</guid><author>github_39437588</author><pubDate>Sat, 22 Jun 2019 05:34:02 +0800</pubDate><description><![CDATA[报错
npm WARN ajv-keywords@3.4.0 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
解决方法
输入
npm i ajv

然后就OK了。

]]></description><category></category></item><item><title><![CDATA[安装yarn报错：dyld: Library not loaded]]></title><link>https://blog.youkuaiyun.com/github_39437588/article/details/92802673</link><guid>https://blog.youkuaiyun.com/github_39437588/article/details/92802673</guid><author>github_39437588</author><pubDate>Wed, 19 Jun 2019 06:15:36 +0800</pubDate><description><![CDATA[在Mac上安装yarn，使用了brew install yarn，然后代码自动执行了brew update，将yarn dependency: icu4c安装为了64.2版本，与原来php版本不对应，因此PHP不能继续使用，报如下错误：

更新包
更新之前先使用brew outdated查看哪些包可以更新。
brew outdated

使用brew upgrade更新
brew upgrade ...]]></description><category></category></item><item><title><![CDATA[NPM run dev报错，yarn install安装不上]]></title><link>https://blog.youkuaiyun.com/github_39437588/article/details/92761031</link><guid>https://blog.youkuaiyun.com/github_39437588/article/details/92761031</guid><author>github_39437588</author><pubDate>Tue, 18 Jun 2019 10:09:36 +0800</pubDate><description><![CDATA[解决NPM run dev报错问题删除cross-env
删除cross-env
打开package.json,将scripts下面的cross-env删掉，devDependencies下的不能删除
然后执行下面代码
yarn install --no-bin-links
npm run dev

然后就OK了。

...]]></description><category></category></item><item><title><![CDATA[CentOS添加PHP扩展文件]]></title><link>https://blog.youkuaiyun.com/github_39437588/article/details/90023951</link><guid>https://blog.youkuaiyun.com/github_39437588/article/details/90023951</guid><author>github_39437588</author><pubDate>Thu, 09 May 2019 10:57:50 +0800</pubDate><description><![CDATA[添加PHP扩展文件安装扩展安装`mbstring`扩展启用扩展模块
安装扩展
首先我们需要一份与当前版本相同的PHP源码
wget https://www.php.net/distributions/php-7.2.11.tar.gz
tar -zxvf php-7.2.11.tar.gz
cd php-7.2.11

点击此处下载相应源码包
安装mbstring扩展
进入mbstring目录：
...]]></description><category></category></item><item><title><![CDATA[Valet安装laravel报错]]></title><link>https://blog.youkuaiyun.com/github_39437588/article/details/88381529</link><guid>https://blog.youkuaiyun.com/github_39437588/article/details/88381529</guid><author>github_39437588</author><pubDate>Sun, 10 Mar 2019 18:09:21 +0800</pubDate><description><![CDATA[Valet安装错误指南valet command not foundmysql command not foundlaravel command not found
valet command not found
说明 valet 命令没有被添加到环境变量中，进行以下操作即可解决，如果没有错误提示，则忽略以下内容。
添加 valet 到环境变量

编辑配置文件，如果文件不存在则自动创建，所以即使打...]]></description><category></category></item><item><title><![CDATA[打开防火墙后仍不能访问服务器]]></title><link>https://blog.youkuaiyun.com/github_39437588/article/details/84780650</link><guid>https://blog.youkuaiyun.com/github_39437588/article/details/84780650</guid><author>github_39437588</author><pubDate>Mon, 03 Dec 2018 22:14:02 +0800</pubDate><description><![CDATA[Nginx打开防火墙后域名不能访问查看防火墙
查看防火墙

查看防火墙打开了哪些服务firewall-cmd --list-services


查看可以打开的服务firewall-cmd --get-services


添加服务   添加--permanent是永久生效firewall-cmd --permanent --add-service=https //将https换成你想要开放的se...]]></description><category></category></item><item><title><![CDATA[TP5处理MSSQL分组数据后分页报错]]></title><link>https://blog.youkuaiyun.com/github_39437588/article/details/81738654</link><guid>https://blog.youkuaiyun.com/github_39437588/article/details/81738654</guid><author>github_39437588</author><pubDate>Thu, 16 Aug 2018 11:38:05 +0800</pubDate><description><![CDATA[

 这个的原始代码是


$sqlz = Db::connect('数据库')-&amp;gt;table('表名')-&amp;gt;alias('g')
                    -&amp;gt;join('表名 u', 'g.=u.')
                    -&amp;gt;join('数据库..表名 b', 'g.=b.')
                    -&amp;gt;wher...]]></description><category></category></item><item><title><![CDATA[Centos7.4出现“FirewallD is not running”]]></title><link>https://blog.youkuaiyun.com/github_39437588/article/details/81201044</link><guid>https://blog.youkuaiyun.com/github_39437588/article/details/81201044</guid><author>github_39437588</author><pubDate>Wed, 25 Jul 2018 13:31:57 +0800</pubDate><description><![CDATA[方法/步骤

 


	 

	执行firewall-cmd --permanent --zone=public --add-port=3306/tcp，提示FirewallD is not running，如下图所示。

	
	
	
	 

	通过systemctl status firewalld查看firewalld状态，发现当前是dead状态，即防火墙未开启。

	
	
	
	 

	通过...]]></description><category></category></item><item><title><![CDATA[Centos7.4安装LAMP环境]]></title><link>https://blog.youkuaiyun.com/github_39437588/article/details/81198511</link><guid>https://blog.youkuaiyun.com/github_39437588/article/details/81198511</guid><author>github_39437588</author><pubDate>Wed, 25 Jul 2018 13:26:21 +0800</pubDate><description><![CDATA[一、配置

系统：Centos7.4

Apache：2.4

PHP：PHP7.2

二、Apache

安装Apache
	
	
yum install httpd

	配置ServerName
	
	
	
vim /etc/httpd/conf/httpd.conf
搜索
AddType application/x-gzip .gz .tgz
然后在后面添加
AddType applicat...]]></description><category></category></item><item><title><![CDATA[CentOS7安装VirtualBox5.2]]></title><link>https://blog.youkuaiyun.com/github_39437588/article/details/81130141</link><guid>https://blog.youkuaiyun.com/github_39437588/article/details/81130141</guid><author>github_39437588</author><pubDate>Fri, 20 Jul 2018 12:25:44 +0800</pubDate><description><![CDATA[https://www.virtualbox.org/wiki/Linux_Downloads

第一步

然后在/etc/yum.repos.d/目录下新建virtualbox.repo，并输入


[virtualbox]
name=Oracle Linux / RHEL / CentOS-$releasever / $basearch - VirtualBox
baseurl=http://...]]></description><category></category></item><item><title><![CDATA[Windows下的PHP配置PHPStrom的Xdebug]]></title><link>https://blog.youkuaiyun.com/github_39437588/article/details/81076189</link><guid>https://blog.youkuaiyun.com/github_39437588/article/details/81076189</guid><author>github_39437588</author><pubDate>Tue, 17 Jul 2018 10:58:48 +0800</pubDate><description><![CDATA[一、首先

先去官网下载对应的版本：https://xdebug.org
	选择合适的版本
	官网版本检测工具：https://xdebug.org/wizard.php
		打印phpinfo(),将所有信息复制到检测工具的文本框内
	
	将下载的.dll文件放到PHP的ext目录下，然后在php.ini配置文件里面添加

zend_extension=配置文件

重启服务器，查看是否安装成功，...]]></description><category></category></item><item><title><![CDATA[with as   SQL语句]]></title><link>https://blog.youkuaiyun.com/github_39437588/article/details/78791747</link><guid>https://blog.youkuaiyun.com/github_39437588/article/details/78791747</guid><author>github_39437588</author><pubDate>Wed, 13 Dec 2017 14:42:36 +0800</pubDate><description><![CDATA[with 表名 as (
select * from A
union all
select * from B
)
select * from 表名

A表和B表查询的字段要一样  顺序也要相同]]></description><category></category></item><item><title><![CDATA[判断微信和支付宝扫码]]></title><link>https://blog.youkuaiyun.com/github_39437588/article/details/78791696</link><guid>https://blog.youkuaiyun.com/github_39437588/article/details/78791696</guid><author>github_39437588</author><pubDate>Wed, 13 Dec 2017 14:39:00 +0800</pubDate><description><![CDATA[//判断微信还是支付宝扫码
	public function haha(){
		//获取用户信息
		//dump($_SERVER['HTTP_USER_AGENT']);
		//判断是不是微信
		if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') !== false ) {  
                      ]]></description><category></category></item><item><title><![CDATA[微信支付成功后返回聊天界面]]></title><link>https://blog.youkuaiyun.com/github_39437588/article/details/78716526</link><guid>https://blog.youkuaiyun.com/github_39437588/article/details/78716526</guid><author>github_39437588</author><pubDate>Tue, 05 Dec 2017 10:05:14 +0800</pubDate><description><![CDATA[//调用微信JS api 支付
        function jsApiCall()
        {
            WeixinJSBridge.invoke(
                'getBrandWCPayRequest',
                ,
                function(res){
                    v]]></description><category></category></item></channel></rss>