logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

【运维】centos查看连接的会话和所有的账号

getent passwd:该命令将列出系统中所有用户账号的详细信息,与第一个命令类似,但是能够显示来自其他命名空间的用户账号,例如LDAP或NIS账号等。cat /etc/passwd:该命令将显示系统中所有用户账号的详细信息,包括用户名、用户ID、组ID、用户家目录路径和默认shell等。可以使用whoami命令来查询CentOS 8当前用户的会话信息,该命令将显示当前登录用户的用户名。该命令

#运维#centos#linux
[运维] - 服务器的初始化流程

[golang] - strings 包使用(字符串的相关操作)

#服务器
【分布式】Redis分布式之分布式唯一Id

说明Redis生成分布式唯一Id的方式之一。使用示例代码:package com.demo.redis.generate;import org.redisson.api.RIdGenerator;import org.redisson.api.RedissonClient;import org.springframework.stereotype.Component;import org.spri

#分布式#java#redis +2
【分布式】Redis之分布式CountDownLatch

说明使用参考 Jdk中的CountDownLatch使用参考package com.demo.redis.string;import org.redisson.api.RCountDownLatch;import org.redisson.api.RedissonClient;import org.springframework.util.Assert;import javax.annotatio

#分布式#后端#redis +2
【分布式】Redis分布式之BlockingDeque

使用package com.demo.redis.list;import org.redisson.api.RBlockingDeque;import org.redisson.api.RedissonClient;import org.redisson.client.codec.StringCodec;import org.springframework.stereotype.Component

#分布式#java#redis +2
【分布式】Redis分布式之BitSet(BitMap)

使用package com.demo.redis.set;import org.redisson.api.RBitSet;import org.redisson.api.RedissonClient;import org.springframework.stereotype.Component;import org.springframework.util.Assert;import javax.

#分布式#缓存#redis +2
【golang】list操作

1、importimport ("container/list")2、示例代码// 初始化listallTask := list.New()// 循环for task := allTask.Front(); task != nil; task = task.Next() {value := task.Value.(数据类型,比如string、自定义结构体)}

#golang#list
【golang】正则提取及替换

importimport ("container/list""encoding/json""fmt""github.com/go-resty/resty/v2""github.com/robfig/cron/v3"log "github.com/sirupsen/logrus""net/http""os""regexp""strconv""time")示例代码func GetExecutor(co

#golang
【golang】字符串分隔

1、说明xxx2、示例代码func GetSplitArr(ling string) []string {return strings.Split(ling, ",")}

#golang
【golang】多时间格式转换

var formatArr = []string{"2006-01-02 15:04:05", "2006-01-02T15:04:05","2006-01-02T15:04:05Z", "Jan 02 15:04:05 2006 GMT", "1月 02 15:04:05 2006 GMT"}// StrToDate 时间转换func StrToDate(dateStr string) time

    共 28 条
  • 1
  • 2
  • 3
  • 请选择