AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-71120

nelaaro's questions

Martin Hope
nelaaro
Asked: 2020-02-24 22:54:40 +0800 CST

如何检查 Kubernetes 节点的最大 pod 容量

  • 8

我正忙于设置新的 k8s 集群。

我将 rke 与 --max-pods: 200 一起使用

kubelet: # https://rancher.com/docs/rke/latest/en/config-options/services/services-extras/#extra-args
    extra_args: 
    - max-pods: 200  # https://forums.rancher.com/t/solved-setting-max-pods/11866/5

如何检查是否使用正确的设置创建了正在运行的节点。

kubernetes kubeadm
  • 4 个回答
  • 16956 Views
Martin Hope
nelaaro
Asked: 2018-02-08 03:18:27 +0800 CST

'/var/lib/mysql/mysql.sock' (13 "Permission denied") 以非 mysql 用户身份访问套接字时

  • 1

我正在尝试连接到我用于开发的本地 mysql 服务器

服务器启动正常,但我无法以非 root 用户身份连接到它。

[root@somepc ]# mysql -u [someuser] -p[somepass]
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13 "Permission denied")

作为 root,这可以按预期工作。这样该用户确实有权访问mysql。

mysql -u [user] -p[password]
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 2
Server version: 10.1.30-MariaDB MariaDB Server

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

当我检查作为我的用户的权限时

stat /var/lib/mysql/mysql.sock
stat: cannot stat '/var/lib/mysql/mysql.sock': Permission denied

对于非 root 用户,这些权限应该是什么?

linux
  • 2 个回答
  • 15754 Views
Martin Hope
nelaaro
Asked: 2017-06-07 08:06:13 +0800 CST

如何使用名称中的变量创建 puppet 文件目录资源,以便它不会在名称 [] 周围添加括号

  • 0

当我在清单中尝试以下内容时。

$profile = hiera('duplicity::profile', 'test123')

file { [ "/tmp/${profile}" ]:
  ensure => directory,
  owner  => root,
  group  => root,
}

我在该节点的 heira 中定义了以下内容

duplicity::profile:
  - 'testfails'

它会创建这样的文件夹

find /tmp/\[testfails\]
/tmp/[testfails]

为什么将括号添加到文件夹名称中?

  • https://puppet.com/docs/puppet/latest/lang_variables.html#variable-interpolation
  • https://puppet.com/docs/puppet/latest/types/file.html
linux
  • 1 个回答
  • 782 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve