摘要: 解决的办法是把string(adminname)替换为adminname.(string)。其它类型也是类似。 阅读全文
posted @ 2018-01-25 18:50 换行程序员 阅读(1740) 评论(0) 推荐(0) 编辑
摘要: fmt.Println("type:", reflect.TypeOf(err.Error())) 阅读全文
posted @ 2018-01-25 13:18 换行程序员 阅读(4215) 评论(0) 推荐(0) 编辑
摘要: import ( "crypto/md5" "encoding/hex" ) //生成32位md5字串 func Md5(s string) string { h := md5.New() h.Write([]byte(s)) return hex.EncodeToString(h.Sum(nil)) } 阅读全文
posted @ 2018-01-22 10:23 换行程序员 阅读(4545) 评论(0) 推荐(0) 编辑
摘要: 安装环境:CentOS7 64位 MINI版,安装MySQL5.7 1、配置YUM源 在MySQL官网中下载YUM源rpm安装包:http://dev.mysql.com/downloads/repo/yum/ 检查mysql源是否安装成功 看到上图所示表示安装成功。 可以修改vim /etc/yu 阅读全文
posted @ 2018-01-09 14:00 换行程序员 阅读(394) 评论(0) 推荐(0) 编辑
摘要: 以下以CentOS 7.2为例,安装php的运行环境,首先打开php官网http://php.net/点击导航栏的Downloads进入下载页面:http://php.net/downloads.php 这里下载最新版的php 7.0.5 的源码包: 下载下来之后上传至服务器 因为php安装需要编译 阅读全文
posted @ 2018-01-09 13:30 换行程序员 阅读(200) 评论(0) 推荐(0) 编辑
摘要: /bin/sh: line 2: ./config: No such file or directorymake[1]: *** [/usr/local/ssl/.openssl/include/openssl/ssl.h] Error 127make[1]: Leaving directory ` 阅读全文
posted @ 2017-09-23 12:38 换行程序员 阅读(13509) 评论(2) 推荐(2) 编辑
摘要: 说明: 操作系统:CentOS php安装目录:/usr/local/php php.ini配置文件路径:/usr/local/php/etc/php.ini 1、安装cphalcon cd /usr/local/src git clone git://github.com/phalcon/cpha 阅读全文
posted @ 2017-09-22 13:46 换行程序员 阅读(1198) 评论(0) 推荐(0) 编辑
摘要: 初学乍到 等级1 游学四方 等级2 有学而志 等级3 青年俊才 等级4 学长师友 等级5 初为人师 等级6 师者解惑 等级7 为师有道 等级8 有智之士 等级9 智者达观 等级10 仁人明师 等级11 仁者无惑 等级12 仁者无敌 等级13 尊者淡泊 等级14 大智若愚 等级15 圣心如水 等级16 阅读全文
posted @ 2017-09-06 13:32 换行程序员 阅读(986) 评论(0) 推荐(0) 编辑
摘要: 此时运行按照提示执行 npm rebuild node-sass 命令,(如若不行,则先运行npm install node-sass命令执行) 然后再运行 node命令,启动服务。 阅读全文
posted @ 2017-09-04 15:07 换行程序员 阅读(9638) 评论(2) 推荐(2) 编辑
摘要: 1、先cd到根目录,执行git config --global credential.helper store命令 [root@iZ25mi9h7ayZ ~]# git config --global credential.helper store 2、执行之后会在.gitconfig文件中多加红色 阅读全文
posted @ 2017-09-03 20:09 换行程序员 阅读(909) 评论(0) 推荐(0) 编辑