自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 mac设置sql_mode失效

Error 1055: Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'xxxxxx‘ which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by设置sql_mod1关闭mysql服务2查找

2020-12-10 17:57:10 333 1

原创 mac安装php-mq扩展

系统版本macosphp版本php@7.2.31_1一 使用brew安装 rabbitmqbrew install rabbitmqbrew services start rabbitmq 启动二 安装rabbitmq-cwget https://github.com/alanxz/rabbitmq-c/releases/download/v0.7.1/rabbitmq-c-0.7.1.tar.gztar zxf rabbitmq-c-0.7.1.tar.gz#有修改下用户sudo .

2020-06-19 10:50:06 384

原创 tesseract-orc

~]# yum search tesseract~]# yum install tesseract-devel.x86_64 tesseract-osd.x86_64~]# yum install tesseract-langpack-chi_sim.noarch需要安装composer我开始有安装composer 然后 运行一些命令时提时不行然后尝试网上说的使用国内镜像      ...

2018-10-19 14:38:15 707

原创 linux beego安装

安装好go后就可以去安装beego框架先去确认/etc/profile文件中是否存在export GOBIN=$GOROOT/bin然后go get github.com/astaxie/beegogo get github.com/beego/beebeego是框架  bee是命令...

2018-09-05 18:04:49 901

原创 linux(fedora)安装vscode

wget https://az764295.vo.msecnd.net/stable/7ba55c5860b152d999dda59393ca3ebeb1b5c85f/code-stable-code_1.7.2-1479766213_amd64.tar.gz //获取非最新版本的vscodetar -xvzf code-stable-code_1.7.2-1479766213_amd64.t...

2018-09-05 16:36:59 2875

原创 sql查询正则,中文或英文

SELECT * FROM `tablename` WHERE Name REGEXP '^[a-zA-Z]+$' OR TmName REGEXP '^[^\x00-\xff]+$';一个正则没想到办法,就用两个吧

2018-08-07 10:35:18 6293

原创 linux php 安装scws扩展

wget http://www.xunsearch.com/scws/down/scws-1.2.3.tar.bz2tar xvjf scws-1.2.3.tar.bz2cd scws-1.2.3/./configure --prefix=/usr/local/scwsmake && make installcd ../scws/ls -al lib/libscws.l...

2018-08-02 18:20:21 887

原创 Fatal error: Declaration of must be compatible with

eclipse php include path phalconide 报错Fatal error: Declaration of rule\validator\IsNumValidator::validate() must be compatible with Phalcon\Validation\Validator::validate(Phalcon\Validation $validati...

2018-08-02 14:25:56 8780

原创 Warning:session_start()failed: Permission denied (13)

我用的时nginx服务nginx  没有权限写入session文件到session.save_path所指文件夹中修改用户组[root@localhost php]# chown -R nginx:nginx session/

2018-08-01 17:21:29 911

原创 fedora安装phalcon扩展

[root@localhost local]# git clone --depth=1 git://github.com/phalcon/cphalcon.git[root@localhost local]# cd cphalcon/build/[root@localhost build]# ./install[root@localhost build]# vim /etc/php.ini...

2018-07-31 08:36:25 248

原创 权限修改

[ename@localhost edocs]$ git pullerror: cannot open .git/FETCH_HEAD: Permission denied[ename@localhost edocs]$ suPassword:[root@localhost edocs]# chown -R ename:ename /work/edocs/[root@localhost...

2018-07-27 14:08:46 144

原创 fedora20安装redis

[root@localhost usr]# wget http://download.redis.io/releases/redis-2.8.3.tar.gz[root@localhost usr]# tar xzf redis-2.8.3.tar.gz[root@localhost usr]# cd redis-2.8.3[root@localhost redis-2.8.3]# make...

2018-07-26 20:03:55 311

原创 git连接服务器ssh key

Please make sure you have the correct access rightsand the repository exists.[ename@localhost work]$ git config --global user.name "xxx"[ename@localhost work]$ git config --global user.email "xxx@...

2018-07-26 16:18:21 326

原创 fedora20 mysql安装与卸载

卸载:查看系统是否安装过mysql的rpm包[root@localhost lib64]# rpm -qal | grep -i mysql //安装过会显示文件信息[root@localhost lib64]# rpm -q MySQL-server-5.6.16-1.linux_glibc2.5.i386package MySQL-server-5.6.16-1.linux_glibc...

2018-07-25 18:06:29 434

原创 linux安装vim

fedora20安装vim时,使用yum -y install vim时出现下面错误Transaction check error:  file /usr/share/man/man1/vim.1.gz from install of vim-common-2:7.4.475-2.fc20.x86_64 conflicts with file from package vim-minimal...

2018-07-24 20:06:41 2944

转载 dockerfile

自動構建docker鏡像的配置文件,快速创建自定义镜像。文件内容:#基礎鏡像(父鏡像)。基於基礎鏡像構建其它docker鏡像,基礎鏡像可通過docker pull命令獲取,也可以自己制作FROM php:7.0-fpm#維護者信息MAINTAINER ename.com#鏡像操作命令:#ENV(environment)设置环境变量ENV TZ "Asia/Shanghai...

2018-07-24 09:53:55 162

原创 DOCKER基础概念及常用命令

概念:容器的概念:轻量级的,包含应用运行所需的所有东西(代码、库、运行时环境、系统设置,以及依赖关系)的独立的包。每个容器都部署于它自己的cpu、内存、块I/O,以及网络资源。docker:操作系統管理工具(容器技術)。提供了一種管理、打包和部署應用程序(輕量級容器)的方式。對應用分裝隔離,放在獨立的環境中運行。镜像:一只读模板,可用来创建容器。容器:鏡像創建的應用的運行實例。運行、隔離應...

2018-07-24 09:53:07 188

转载 php 毫秒级时间搓与日期格式互换

/**     * 将日期转化13位的时间戳     */    private function get_data_format($time)    {        list($usec,$sec) = explode(".", $time);        $date = strtotime($usec);        $return_data = str_pad($date...

2018-07-24 09:23:22 2458

原创 身份证验证正则表达式

/** * 判断是否是身份证号 */function checkIDNumber(num){ /* //国外身份证号 { var Expression=/^[\w\s\S]{4,20}$/; var objExp=new RegExp(Expression); if(objExp.test(num)!=true){ return false; } return true; }*/ n...

2018-07-16 11:24:29 999

空空如也

空空如也

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

TA关注的人

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