摘要: 1.卸载原先安装的PHP 2.更改yum源(linux的yum源不存在php7.x) 3.yum安装php72w和各种拓展 阅读全文
posted @ 2018-09-07 10:25 博尔特希 阅读(2324) 评论(0) 推荐(0) 编辑
摘要: 1、备份 2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/ 3、之后运行yum makecache生成缓存 阅读全文
posted @ 2018-09-06 14:17 博尔特希 阅读(640) 评论(0) 推荐(0) 编辑
摘要: 1.安装使用里面说的自动化安装脚本 2.然后可以看到 git2u相关内容 3.执行安装,并查看下版本 阅读全文
posted @ 2018-09-06 14:13 博尔特希 阅读(893) 评论(0) 推荐(0) 编辑
摘要: java的递归方法记录: private List<Map<String, Object>> generateOrgMapToTree(List<Map<String, Object>> orgMaps, Integer pid) { if (null == orgMaps || orgMaps.s 阅读全文
posted @ 2018-03-29 14:36 博尔特希 阅读(7136) 评论(0) 推荐(0) 编辑
摘要: 使用spring-boot 做接口,如果按restful的路由形式想使用put方式进行表单提交,第一个参数应该为文件参数,代码如下: @PutMapping("/http-put") public IbaseWorkResult httpPut(@RequestParam("file") Multi 阅读全文
posted @ 2018-01-26 09:20 博尔特希 阅读(2359) 评论(0) 推荐(0) 编辑
摘要: 1.编辑 /etc/sysctl.conf 文件,将其中三条禁用IPv6的设置更改为: net.ipv6.conf.all.disable_ipv6 = 0 net.ipv6.conf.default.disable_ipv6 = 0 net.ipv6.conf.lo.disable_ipv6 = 阅读全文
posted @ 2017-07-04 10:32 博尔特希 阅读(1995) 评论(0) 推荐(0) 编辑
摘要: public static function getNode($node_arr = [], $pid = 0) { $node_arr = empty($node_arr) ? self::getAll() : $node_arr; $node = []; $tem = []; foreach ($node_arr ... 阅读全文
posted @ 2017-05-26 11:21 博尔特希 阅读(124) 评论(0) 推荐(0) 编辑
摘要: function is_https() { if ( !empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off') { return true; } elseif ( isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_... 阅读全文
posted @ 2017-05-23 10:20 博尔特希 阅读(11662) 评论(0) 推荐(0) 编辑
摘要: #强制重定向到wwwRewriteEngine OnRewriteCond %{HTTP_HOST} ^jb51.net/ [NC]RewriteRule ^(.*)$ http://www.jb51.net/$1 [L,R=301]#强制重定向到不带www的顶级域名RewriteEngine On 阅读全文
posted @ 2017-03-22 20:20 博尔特希 阅读(1818) 评论(0) 推荐(0) 编辑
摘要: 1. 创建适用于RHEL/CentOS系统的安装源文件,位置为: /etc/yum.repos.d/nginx.repo , 并写入以下内容: 替换baseurl地址中的内容, “OS” 替换为系统名称 “rhel” 或者 “centos”, “OSRELEASE” 替换为系统版本 “5”,“6” 阅读全文
posted @ 2017-03-16 13:58 博尔特希 阅读(1018) 评论(0) 推荐(0) 编辑