摘要: k8s x 阅读全文
posted @ 2023-08-16 11:13 三百里江山 阅读(17) 评论(0) 推荐(0) 编辑
摘要: k1s 是 kubectl 辅助工具 阅读全文
posted @ 2022-12-06 19:21 三百里江山 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 以 golang 构建项目为例。 新建任务 输入一个任务名称 选择:构建一个自由风格的软件项目 可选:也可以复制已创建的任务 确定提交 配置 再次编辑刚创建的任务 描述 对你的项目进行描述,可以写如下信息。 项目名称 部署的IP地址 部署远程的目录 日志路径 配置目录及文件名称 启动服务 停止服务 阅读全文
posted @ 2021-02-03 18:13 三百里江山 阅读(614) 评论(0) 推荐(0) 编辑
摘要: Golang tracks stack error package. 优雅追踪堆栈错误包 安装(Install) go get github.com/yezihack/e 介绍(Introduction) github.com/yezihack/e 项目是一个优雅地追踪你的堆栈信息.方便存储日志里. 阅读全文
posted @ 2021-01-22 11:04 三百里江山 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 原理 当本地 向Github远程仓库提交代码时,可以通过配置github自带webhook向服务器发送请求,利用github webhook工具在服务器端接到请求后,调用自定义shell脚本来实现自动构建 使用github webhook 源码: "https://github.com/yeziha 阅读全文
posted @ 2020-04-24 14:52 三百里江山 阅读(2350) 评论(0) 推荐(0) 编辑
摘要: ``` where[$field] = $value; return $obj; } public function update(array $params) { $obj = self::getInstance(); $obj->update = $params; } public function get() {... 阅读全文
posted @ 2019-07-19 09:45 三百里江山 阅读(631) 评论(0) 推荐(0) 编辑
摘要: phalcon 框架3.0更新时报错 环境 docker环境 错误 原因 composer.json 升级 google/protobuf, grpc/grpc 出现以上错误 .无法加/var/www/config/config.php配置文件 , 而真实config目录为: /var/www/ap 阅读全文
posted @ 2019-06-18 19:01 三百里江山 阅读(427) 评论(0) 推荐(0) 编辑
摘要: 更换成阿里云 替换后的格式文档 阅读全文
posted @ 2019-06-13 14:38 三百里江山 阅读(1675) 评论(0) 推荐(0) 编辑
摘要: 首先查看你LINUX的版本 笔者的版本是: centos7.5 更换为阿里云镜像源 https://opsx.alibaba.com/mirror 打开,找到你对应的版本, 点击帮助 复制脚本 执行命令更新源 执行到此处就遇到以下错误 解决以上问题 更换后的CentOS Epel.repo 执行以 阅读全文
posted @ 2019-06-13 14:14 三百里江山 阅读(3824) 评论(0) 推荐(0) 编辑
摘要: ``` //设置内存大小 ini_set('memory_limit','512M'); //打开日志 ini_set('log_errors', 'On'); //定向日志记录文件 ini_set('error_log', '/tmp/zz_error_sis.log'); set_time_limit(600); ``` 阅读全文
posted @ 2019-06-05 09:52 三百里江山 阅读(568) 评论(0) 推荐(0) 编辑
摘要: 源码 "https://github.com/sektioneins/pcc" 使用方法 环境: mac cli 命令行执行 审查结果分等级显示 high: 高危 medium: 中危 low: 低危 maybe: 见意 comment: 见意 显示结果为英文的,可以使用chrome自带的翻译转换一 阅读全文
posted @ 2019-05-23 13:32 三百里江山 阅读(143) 评论(0) 推荐(0) 编辑
摘要: CentOS7.1 . 运行某镜像时,报WARNING: IPv4 forwarding is disabled. Networking will not work. . 解决方法 阅读全文
posted @ 2019-05-21 23:41 三百里江山 阅读(819) 评论(0) 推荐(0) 编辑
摘要: [TOC] 基础命令 常用命令列表 查看状态 添加到本地仓库 现在,你的改动已经提交到了 HEAD,但是还没到你的远端仓库 推送到远程仓库 创建分支 更新分支, 合并分支 查看分支的差异 回滚 其它 缩写命令 阅读全文
posted @ 2019-05-21 17:41 三百里江山 阅读(1817) 评论(0) 推荐(0) 编辑
摘要: Grpc 实现流程图 资料 https://grpc.io/docs/quickstart/go/ https://studygolang.com/articles/16627 使用方法 新建一个proto文件 GRPC服务端 客户端代码 代码归档: "https://github.com/yezi 阅读全文
posted @ 2019-05-14 17:05 三百里江山 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 1. 在mac上没有找到好用的shell图形界面的软件,但也是有办法的,使用ssh公钥达到互相有无目的 2.场景是mac连A(linux,以下简称A)服务器 3.登陆mac shell ,按command+空格,输入:terminal.app 4.生成密钥和公钥 5.登陆A服务器 6.在mac上设置 阅读全文
posted @ 2018-08-10 11:45 三百里江山 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 1. 设置别名 阅读全文
posted @ 2018-08-10 11:08 三百里江山 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1. mac 安装git 2.初使化 3.生成密钥 #一路回车即可 4.查看id_rsa.pub 阅读全文
posted @ 2018-08-06 21:05 三百里江山 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 一.安装brew 二.安装composer 阅读全文
posted @ 2018-08-06 20:11 三百里江山 阅读(1941) 评论(0) 推荐(0) 编辑
摘要: PHP message: PHP Warning: require(/data/wwwroot/blog.sgfoot.com/bootstrap/autoload.php): failed to open stream: Operation not permitted in /data/wwwro 阅读全文
posted @ 2018-06-25 15:41 三百里江山 阅读(19998) 评论(0) 推荐(0) 编辑
摘要: 1 . mysql真正的utf8是utf8mb4才是有效的utf8 a). mariaDB的设置方法 b) mysql的设置方法 阅读全文
posted @ 2018-06-25 11:23 三百里江山 阅读(3453) 评论(0) 推荐(0) 编辑
摘要: 通用启动方法 /etc/init.d/mariadb status #查看状态 /etc/init.d/mariadb start #启动 /etc/init.d/mariadb restart #重启 /etc/init.d/mariadb reload #重启 /etc/init.d/maria 阅读全文
posted @ 2018-06-25 10:58 三百里江山 阅读(6522) 评论(0) 推荐(0) 编辑
摘要: shell 实现自动备份nginx下的站点 优点 实现自动备份ngnix下的所有运行的站点 自定义排除备份站点,支持三种排除 自动维护备份目录,防止备份目录无限扩大 备份压缩tar.gz格式 源码: #!/bin/bash ######################### # 功能:实现自动备份n 阅读全文
posted @ 2018-06-05 11:03 三百里江山 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 自动实现备份整个数据库 实现一个库备份一个文件 实现排除不需要备份的库 实现备份成压缩文件 实现定义保留多少天的备份文件 核心代码 转自 时光博客 阅读全文
posted @ 2018-06-04 14:55 三百里江山 阅读(977) 评论(0) 推荐(0) 编辑
摘要: 相当于: 阅读全文
posted @ 2018-01-15 18:08 三百里江山 阅读(338) 评论(0) 推荐(0) 编辑
摘要: ini_set("display_errors", "On");//若页面不报错的话,请设置php.ini 的display_errors 为 On error_reporting(E_ALL);//报所有的错误 阅读全文
posted @ 2017-12-31 19:36 三百里江山 阅读(635) 评论(0) 推荐(0) 编辑