- 博客(22)
- 资源 (2)
- 收藏
- 关注
原创 mac install nginx 用命令编辑安装
./configure --prefix=/usr/local/Cellar/nginx --sbin-path=/usr/local/Cellar/nginx/sbin --modules-path=/usr/local/Cellar/nginx/modules --conf-path=/usr/local/Cellar/nginx/conf/nginx.conf --error-log-path=/usr/local/Cellar/nginx/logs/error.log --pid-path=/usr
2023-10-04 23:49:15
115
1
原创 swoole搭建web服务器及异步任务task
"document_root" => "/Users/johnson/WorkRoom/Project/live.csm.com/uniapp/", //访问的根目录。在浏览器里运行 http://localhost:9501/user.php 就可以看到输出的内容,切换到命令行也能看到异步任务输出的内容。//使用 Chrome 浏览器访问服务器,会产生额外的一次请求,/favicon.ico,可以在代码中响应 404 错误。共两个文件http.php与user.php,两个在同一个文件夹下。
2023-10-04 20:20:51
137
1
转载 实战型文章收纳
一、mysql定时全量与增量备份1.定时全量备份 https://mp.weixin.qq.com/s/I4tLPuzcnHMA9crChDXEeQ2.定时增量备份 https://blog.youkuaiyun.com/zone_/article/details/81321431二、Mysql优化-大数据量下的分页策略https://blog.youkuaiyun.com/ty_hf/articl...
2019-03-15 16:22:03
180
转载 authentication plugin caching_sha2_password
mysql 8.0 默认使用 caching_sha2_password 身份验证机制 —— 从原来的 mysql_native_password 更改为 caching_sha2_password。从 5.7 升级 8.0 版本的不会改变现有用户的身份验证方法,但新用户会默认使用新的 caching_sha2_password 。客户端不支持新的加密方式。方法之一,修改用户的密码和加...
2019-03-15 15:24:13
709
转载 mac安装mysql,brew install mysql
环境操作系统:macOS Sierra Version 10.13步骤如果已经存在ruby,直接执行以下命令进行Homebrew安装。若没有,详细步骤参见Homebrew官网。$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"b...
2019-03-15 15:06:24
163
原创 mac安装扩展出现grep: /usr/include/php/main/php.h
在Mac下执行 sudo phpize时提示:grep: /usr/include/php/main/php.h: No such file or directorygrep: /usr/include/php/Zend/zend_modules.h: No such file or directorygrep: /usr/include/php/Zend/zend_extensions....
2019-03-14 14:44:50
8484
原创 mac 无法解析php文件
mac 默认找不到php.ini文件先复制一份到/etc底下sudo cp /etc/php.ini.default /etc/特别注意,要进入php.ini看一下短标签有没有打开short_open_tag = On,默认是Off。这样可能造成php文件解析不了。sudo vim /etc/php.ini进入修改,不能保存的看看它的权限是否只读。ls -al php.in...
2019-03-14 12:32:58
1603
转载 mac下phpize编译提示Cannot find autoconf解决办法
在 mac 下phpize编译扩展时,出现如下报错:Cannot find autoconf. Please check your autoconf installation and the解决办法也简单,在终端中运行如下命令brew install autoconf如果 Homebrew 未安装,可先参考:Homebrew 套件管理器使 Mac OS X 更完美...
2019-03-13 12:25:17
1065
转载 Mac 安装PHP Redis 扩展
其实 Mac 安装 Redis 还是很简单,以下为个人搭建配置。注意:文章中的“*”代表任意版本号安装 Redis 服务安装 brew install redis 使用redis-server启动成功界面另开一个命令窗口,可以使用 Redis 命令在 redis 服务上执行操作。redis-cli安装 php-redis 扩展下文中的配置目录可根...
2019-03-13 12:15:03
165
转载 MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk
(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk.今天运行Redis时发生错误,错误信息如下:(error) MISCONF Redis is configured to save RDB snapshots, but is curr...
2019-03-08 15:46:18
161
转载 mac nginx的虚拟站点配置
1、首先在nginx 的配置目录下:/usr/local/etc/nginx 新建一个文件夹sites,然后可以创建一个或多个配置文件例如nginx-test.conf。 2、添加server的配置文件。 server { listen 80; //为了访问时不用写端口号,我把mac 的nginx监听端口改成80端口了 serve...
2019-03-05 16:27:21
1334
2
原创 MyCat故障的主从切换
一、先配置mysql双主架构,互为主从参考连接https://www.cnblogs.com/ygqygq2/p/6045279.html重点配置:log_bin = mysql-binlog-slave-updates = true #将复制事件写入binlog,一台服务器既做主库又做从库此选项必须要开启#masterA自增长IDserver_id = 2#auto_increment...
2018-05-03 11:11:22
5101
2
原创 MyCat读写分离、分库分表
一、准备工作1. 两台内网工作机。我是一台window、一台mac os。两台都装了版本5.7.15的mysql。版本最好一样!2. 指定mac os主机为master、window主机为slave。在master主机装好mycat,版本5.6.29。我装在当前用户底下的Application/mycat。 /Users/用户名/Application/mycat 先备份一下mycat...
2018-04-28 09:46:36
623
转载 mac安装Awscli失败
OS X EI 10.11报错信息如下:Found existing installation: six 1.4.1DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is d
2017-03-24 17:16:10
371
原创 mac配置apache创建虚拟主机
一、mac自带apachesudo apachectl start//开启sudo apachectl stop//关闭sudo apachectl restart//重启二、配置文件所在位置/etc/hosts //系统host文件/etc/apache2/httpd.conf//apache配置文件/etc/apache2/extra/htt
2017-03-10 22:00:17
408
转载 MacPro 安装Wget
HomebrewHomebrew是一款非常强大的可以应用在MAC中的Linux管理包,如果上面的方法感觉比较麻烦,我们可以通过下面的方法解决。A - 执行安装brewruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"进入终端之后,执
2017-03-10 16:36:03
164
转载 Yii2使用Redis - 从安装redis到使用
一、安装Redis和简单配置1. 下载Redis安装包地址:http://redis.io/download , 本文选择Stable(3.0)版本wget http://download.redis.io/releases/redis-3.0.5.tar.gz2. 安装Redistar xzf redis-3.0.5.tar.gzcd redis-3.0.5
2017-03-10 16:30:50
965
转载 mac下更新自带的PHP版本到5.6或7.0
下载和安装PHP 5.6打开终端并且运行如下命令:curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6然后,PHP 5.6的版本会被安装到下面的路径中:/usr/local/php5/下载和安装PHP 7.0打开终端并运行如下的命令:curl -s http://php-osx.liip.ch/i
2017-03-10 13:37:49
2321
phpExcel读取excel2007、excel2003文件内容,并返回二维数组
2013-05-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人