240 发简信
IP属地:广东
  • What does the Broken pipe message mean in an SSH session?

    It's possible that your server closes connections that are idle for too ...

  • Import and Export Postgres database

    pg_dump -U lcola designated-driving > dbexport.pgsqlpsql -U postgres dai...

  • Deep set

    hash = { }def deep_set(hash, value, keys)keys[0...-1].inject(hash) do |...

  • 运维常用命令笔记

    查看 container 的资源使用情况 按内存排序使用情况 命令行登录 Postgres 查看postgresql的连接数、最大连接数限制: ...

  • tar 常用命令

    仅打包,不压缩tar -cvf /tmp/etc.tar /etc 以 gzip 压缩tar -zcvf /tmp/etc.tar.gz /et...

  • Docker Swarm Usage

    创建db-compose.yml 执行命令docker stack deploy -c db-compose.yml dbservice运行服务...

  • CentOS 端口管理

    关闭端口 $ sudo firewall-cmd --remove-port=8080/tcp --zone=public --permanen...

  • Docker cheatsheet

    From: https://docs.docker.com Build an image: $ docker build -t [image-n...

  • User Management on Linux

    Show all users: cut -d: -f1 /etc/passwd [For Ubuntu] Add user, change pa...