- 博客(12)
- 问答 (1)
- 收藏
- 关注
原创 内网环境centos7使用docker安装kong
内网环境使用docker安装kong下载好docker包、kong镜像包、postgresql镜像包上传 内网安装docker安装kong 和 postgresql进入容器看看下载好docker包、kong镜像包、postgresql镜像包查看系统发行版本:cat /etc/redhat-release查看系统架构:uname -a下载docker离线安装包: https://download.docker.com/linux/static/stable/x86_64/在有网环境下载kong
2022-03-17 15:34:51
1618
原创 php 获取数组子集
php 获取数组子集 /** * 获取子集 */ public function index(array $arr){ $arr_k = array_keys($arr);//数组键 $count = count($arr);//数组长度 $result = [];//子集结果 $pailies = [];//2进制集合 $max = pow(2,$count)-1; for
2022-02-17 10:21:18
626
原创 kong oauth2获取令牌找不到路由
直接访问端点 : https://localhost:8443/oauth2/token一直提示找不到路由:“message”: “no Route matched with those values”需要搭配安装了oAuth2 插件的服务路由才能使用如:我的服务路由路径为 /getArea那么正确地址为:https://localhost:8443/getArea/oauth2/token注意:安装 oauth2插件时 启用你需要使用的认证方式,按需要设置...
2022-01-21 17:11:06
3174
原创 centos 防火墙 firewall基础命令行
查看防火墙状态systemctl status firewalld在开机时启用服务systemctl enable firewalld在开机时禁用服务systemctl disable firewalld查看是否开机启动systemctl is-enabled firewalld启动防火墙systemctl start firewalld重启防火墙systemctl restart firewalld重新加载防火墙配置systemctl reload firewalld
2021-11-15 16:48:52
632
原创 centos7 ifconfig未找到命令
问题:使用 ifconfig 的时候发现没找到命令解决方法:查询下 ifconfig 所在的软件包yum provides ifconfigyum install net-tools完成
2021-11-15 11:49:20
623
原创 centos7 开启网络
1.查看你网络是否开启ip addr结果:如图我的网络配置文件名默认是:ifcfg-ens332.编辑网络配置文件vi /etc/sysconfig/network-scripts/ifcfg-ens33ONBOOT 为no表示网络未启用 ,修改为yes3.重新加载网路配置systemctl restart network4.再次查看网络连接状态ip addr5.ping一下试试ping www.baidu.comok了...
2021-11-15 11:04:30
3665
原创 mysql 主从复制
1.环境centos 8 64 位 MySQL8.0(mysql为yum安装) *2搭配好环境后克隆 生成第二套环境由于是克隆 两个虚拟机的 mysql 的server-uuid & server-id 会相同// 查看server-uuidmysql > show variables like '%server_uuid%';// 生成一个新的uuid 记住结果mysql > show variables like '%server_uuid%';// 查找m
2021-06-16 10:46:50
159
原创 redis 安装配置使用
redis 安装配置参照:晨曦_zdq(https://www.jianshu.com/p/7ccd5c902779)redis-6.0.6.tar.gz官网下载源码:http://www.redis.cn/http://download.redis.io/releases/安装依赖包1.安装gcc套装:yum install cppyum install binutilsyum install glibcyum install glibc-kernheadersyum ins
2020-07-21 12:00:23
181
转载 php header()
跳转页面header('Location:'.$url); //Location和":"之间无空格。声明content-typeheader('content-type:text/html;charset=utf-8');返回response状态码header('HTTP/1.1 404 Not Found');在某个时间后执行跳转header('Refres...
2020-01-16 15:03:32
93
转载 linux 关闭默认firewalld,开启iptables
linux 关闭默认firewalld,开启iptables//关闭firewalld防火墙systemctl stop firewalld//禁用firewalld防火墙systemctl mask firewalld//安装iptables-servicesyum install iptables-services设置开机启动systemctl enable iptables....
2020-01-14 10:47:55
608
转载 linux 防火墙部分操作
//防火墙查看firewalld状态,发现是dead状态,即防火墙未开启systemctl status firewalld开启防火墙,没有任何提示就是开启成功;运行上一条命令,显示running。systemctl start firewalld关闭防火墙设置systemctl stop firewalld。重启放火墙systemctl enable firewalld火墙的各...
2020-01-14 10:36:47
212
原创 linux 下编译安装php7.3
编译安装php7.3抄录别人的地址:https://blog.youkuaiyun.com/weixin_42579642/article/details/85290670如遇见 :make: *** 没有指明目标并且找不到 makefile抄录别人的:https://blog.youkuaiyun.com/asia66/article/details/85703643憨憨操作:sudo chmod -R 77...
2020-01-13 10:16:34
509
空空如也
java 中的 MultipartEntity 类上传图片 在 php 中应该如何实现
2021-07-27
TA创建的收藏夹 TA关注的收藏夹
TA关注的人