postgresql查看用户拥有权限

postgresql查看用户拥有权限(database,schema,table) 我们已经知道在pg中可以使用元命令列出相应权限,例如 \l+查看database,\dn+查看schema,\dp查看table、view 、sequence。 但是,...

  • 0
  • 0
  • shitian
  • 发布于 2024-11-03 22:20
  • 阅读 ( 35 )

PostgreSQL 权限 list 插件 pg_permissions

背景 通常列出权限可以使用psql的一些简写: \dp+ \dp+ *.* 列出用户,schema的默认权限。列出表、视图、序列的权限。 这几个简写的介绍如下 \ddp [ pattern ] Lists default...

  • 0
  • 0
  • shitian
  • 发布于 2024-11-03 22:13
  • 阅读 ( 30 )

最好的权限设计,是先区分功能权限和数据权限

做2B的系统总是不可回避的遇上权限问题,他不是核心业务却又必不可少,而且总是牵一发而动全身,更要命的是不同客户组织架构完全不同,功能复用性很低。有没有什么方法论能快速理清权限问题呢?...

  • 0
  • 0
  • shitian
  • 发布于 2024-10-30 15:18
  • 阅读 ( 27 )

Sonatype Nexus3 Repository Manager 搭建 npm 私服

添加npm仓库 点击在左侧菜单Repositories,可以看到仓库类型列表,如下: 0、重要关系含义 npm(group)表示分组,npm(hosted)表示本机私有,npm(proxy)表示远程代理。若registry配置为group...

  • 0
  • 0
  • shitian
  • 发布于 2024-10-30 14:06
  • 阅读 ( 27 )

新版nexus(nexus-oss-3.73以上)会显示 Nexus was not configured with an encryption key and is using the Default key

这是因为nexus使用默认的密钥文件来加密数据,正式环境有能会有数据泄露风险,需要换成你自己的密钥文件加密 步骤如下: ou can follow the steps below for configuring an encryption key f...

  • 0
  • 0
  • shitian
  • 发布于 2024-10-30 12:21
  • 阅读 ( 41 )

curl 请求数据因为content-type 导致Unsupported Media Type

错误的请求如下:报Unsupported Media Type curl -X POST -d '{"username":"19926420263","password":"waglo127net","platform":"Android","client":"pos","shopId":0,"macNo":"197f0058f9b25b...

  • 0
  • 0
  • shitian
  • 发布于 2024-10-29 17:01
  • 阅读 ( 28 )

pom.xml 文件中配置私库下载和上传的方法

<!-- 以下部分为私库的配置-->           <!--配置远程私库的下载地址,允许release和snapshots 版本的依赖都可以下载 -->     <repositories>         <repository&gt...

  • 0
  • 0
  • shitian
  • 发布于 2024-10-21 17:18
  • 阅读 ( 23 )

一文搞懂Maven配置,从此不再糊涂下载依赖(文末有成品)

一般来说Maven都是配合着idea一起使用,下载依赖速度慢就去网上找个镜像配置一下,但总会遇到莫名其妙的问题,比如镜像源不生效、Error reading file pom.xml等等。今天详细讲解一下maven配置文...

  • 0
  • 0
  • shitian
  • 发布于 2024-10-14 00:44
  • 阅读 ( 28 )

canvas@2.11.2 报错,提示

npm配置文件: metrics-registry = "https://registry.npmmirror.com/" canvas_binary_host_mirror = "https://registry.npmmirror.com/-/binary/canvas/" chromedriver_cdnurl = "https://r...

  • 0
  • 0
  • shitian
  • 发布于 2024-10-11 12:16
  • 阅读 ( 26 )

天翼自己封装系统(欧拉 centos8.x)和阿里云自己封装系统(fedaro centos8.x) 安装软件 提示找不到 libssl.so.10 的解决方法

compat-openssl10-1.0.2o-3.el8.x86_64.rpm是一个用于兼容CentOS 8和RHEL 8操作系统中的OpenSSL 1.0.2版本的软件包。OpenSSL是一个广泛使用的加密库,我们可以将其应用于网络安全、加密通信、数...

  • 0
  • 0
  • shitian
  • 发布于 2024-10-05 19:01
  • 阅读 ( 42 )

cmake 编译mysql8.4时候报:Please do not build in-source. Out-of source builds are highly recommended

It wants you to create a separate build directory (anywhere), and run cmake there. For example:mkdir my_build_dir cd my_build_dir rm ../CMakeCache.txt cmake .. -DCMAKE_BUILD_TYPE=R...

  • 0
  • 0
  • shitian
  • 发布于 2024-09-30 00:22
  • 阅读 ( 30 )

ubuntu 20.0.4上安装percona mysql 8.0.X 顺序

apt install libgflags-dev debsums libmecab2 dpkg -i percona-server-common_8.0.37-29-1.focal_amd64.deb dpkg -i libperconaserverclient21_8.0.37-29-1.focal_amd64.deb  dpkg -i lib...

  • 0
  • 0
  • shitian
  • 发布于 2024-09-17 19:39
  • 阅读 ( 29 )

jenkins 源头在ubuntu中添加方式。

Jenkins Debian Packages This is the Debian package repository of Jenkins to automate installation and upgrade. To use this repository, first add the key to your system (for the We...

  • 0
  • 0
  • shitian
  • 发布于 2024-09-14 21:31
  • 阅读 ( 26 )

gitlab从13.1.11 升级到13.8.8 报502错误

From gitlab 13.0 Puma becoming default web server instead of Unicorn Starting with GitLab 13.0, Puma will be the default web server used in omnibus-gitlab based installations. Th...

  • 0
  • 0
  • shitian
  • 发布于 2024-09-13 23:41
  • 阅读 ( 58 )

gitlab 再机器重启后,所有服务器正常,报502

今天服务器重启了,gitlab服务所有服务都正常,访问页面报502错误,看日志发现,gitlab-workhorse 服务器中有报错信息: /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket: connect: conne...

  • 0
  • 0
  • shitian
  • 发布于 2024-09-08 22:57
  • 阅读 ( 40 )

PhpStorm配置Xdebug最完整最详解教程,100%成功!

前言 很多人好奇网上关于php配置xdebug的教程那么多,为什么我还要写这篇文章?因为网上的教程配置很乱,很多都是复制粘贴,有些配置项根本不需要,也不解释干嘛的,而且不够详细。 本教程主...

  • 0
  • 0
  • shitian
  • 发布于 2024-08-31 03:19
  • 阅读 ( 69 )

linux 下源码安装 rabbitMQ

一:下载对应的 Erlang和RabbitMq 版本对应关系,参考如下链接 https://www.rabbitmq.com/docs/which-erlang#erlang-repositories 二:下载对应的Erlang版本 下载地址: https://www.erlang....

  • 0
  • 0
  • shitian
  • 发布于 2024-08-28 21:22
  • 阅读 ( 82 )

VIM 入门教程

vim的三种模式 1.命令模式 当您启动 Vim 时,您会进入命令模式。在此模式下,您可以执行各种操作,例如移动光标、删除、复制和粘贴。常用命令:i :切换到输入模式,开始输入文本。x :删除当...

  • 0
  • 0
  • shitian
  • 发布于 2024-08-27 19:42
  • 阅读 ( 23 )

diff 与 patch 的使用

摘要 在 Linux 的日常使用中,我们经常需要修改一些配置文件,然而在软件升级以后,经常会面临配置更新后与原配置部分不兼容的问题(当然我们更多的可能是来制作软件升级的补丁)。在这种情况...

  • 0
  • 0
  • shitian
  • 发布于 2024-08-20 22:23
  • 阅读 ( 27 )

Certbot免费证书的安装·使用·自动续期

安装 (CentOS): yum update yum install certbot -y (Debian): apt update apt install certbot -y 有的云服务器可能需要提前安装epel源: yum install epel-release -y  使用 1...

  • 0
  • 0
  • shitian
  • 发布于 2024-08-20 13:10
  • 阅读 ( 27 )