logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

golang操作redis

1、使用go getgithub.com/garyburd/redigo/redis下载redis2、连接redispackage mainimport ("fmt""github.com/garyburd/redigo/redis")func main() {conn, err := redis.Dial("tcp", "127.0.0.1:6379")if err != nil {fmt.Pr

#golang
nginx上安装lua并执行lua脚本

(写在前面:以下是在centos7系统进行安装)一、安装lua# 安装依赖yum -y install gcc+ gcc-c++ readline-devel# 下载LuaJITwget http://luajit.org/download/LuaJIT-2.0.4.tar.gz# 解压tar -xf LuaJIT-2.0.4.tar.gz# 进入目录cd LuaJIT-2.0.4# 安装make

#lua#nginx#运维
mysql按日期分库分表后如何分页查询

方案一、直接通过union all连表查询,然后通过limit进行分页查询,如果连表过多,会报如下错误:ERROR 23 (HY000) at line 1: Out of resources when opening file '/tmp/tbs.log' (Errcode: 24 "Too many open files")解决方案详见:https://blog.csdn.net/rgb_rg

编写简单的.gitlab-ci.yml打包部署项目

ssh-agent是一个密钥管理器,运行ssh-agent以后,使用ssh-add将私钥交给ssh-agent保管,其他程序需要身份验证的时候可以将验证申请交给ssh-agent来完成整个认证过程。3.cd /root/.ssh/ && cat id_rsa.pub >> authorized_keys, 把 ssh 公钥添加到认证授权文件,这样可以不需要输入密码。# scp -o StrictH

文章图片
#gitlab
golang发送http请求

1、使用http.Get发送get请求package mainimport ("fmt""io/ioutil""net/http")func main() {resp, err := http.Get("https://www.baidu.com")if err != nil {panic(err)}defer resp.Body.Close()body, err := ioutil.ReadAl

#golang#http
centos7之lighttpd上配置https

1、编译安装lighttpd(具体详见CentOS7之编译安装lighttpd)注意:安装lighttpd之前,请安装相关编译工具和依赖下载、解压lighttpd,并进入解压后的目录,执行下面命令./configure --prefix=/usr/local/lighttpd --with-opensslmakemake install安装lighttpd之后,查看是否支持s...

使用Docker部署Coze Studio开源版

【代码】使用Docker部署Coze Studio开源版。

文章图片
#docker
使用php执行linux命令

程序执行函数escapeshellarg— 把字符串转码为可以在 shell 命令里使用的参数escapeshellcmd— shell 元字符转义exec— 执行一个外部程序passthru— 执行外部程序并且显示原始输出proc_close— 关闭由 proc_open 打开的进程并且返回进程退出码proc_get_status— 获取由 proc_open...

使用Docker部署GitLab代码托管平台

【代码】使用Docker部署GitLab代码托管平台。

文章图片
#docker#gitlab
使用Docker安装Ghost博客(Ghost Local版)

【代码】使用Docker安装Ghost博客(Ghost Local版)

文章图片
#docker
    共 43 条
  • 1
  • 2
  • 3
  • 4
  • 5
  • 请选择