我在后台运行了大量进程来尝试获得足够的熵,但我仍然失败。
**We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
Not enough random bytes available. Please do some other work to give
the OS a chance to collect more entropy! (Need 210 more bytes)**
Run Code Online (Sandbox Code Playgroud)
我需要一种方法来生成有效的密钥,因为我试图做的事情显然失败了。
iotop中的“TID”是什么意思?
Total DISK READ: 0.00 B/s | Total DISK WRITE: 3.90 M/s
TID PRIO USER DISK READ DISK WRITE SWAPIN IO> COMMAND
2150 be/4 root 0.00 B/s 0.00 B/s 0.00 % 65.25 % [flush-202:0]
6694 be/4 www-data 0.00 B/s 19.64 K/s 0.00 % 0.00 % php-fpm: pool www
6700 be/4 www-data 0.00 B/s 23.56 K/s 0.00 % 0.00 % php-fpm: pool www
8646 be/4 www-data 0.00 B/s 424.12 K/s 0.00 % 0.00 % php-fpm: pool www
10974 be/4 www-data 0.00 …Run Code Online (Sandbox Code Playgroud) 目前我有一个应用程序在 8080 上运行,由 mod_proxy 前端。
<Location /hudson>
Order allow,deny
Allow from all
ProxyPass http://localhost:8080/hudson
ProxyPassReverse http://localhost:8080/hudson
</Location>
Run Code Online (Sandbox Code Playgroud)
我需要阻止 TCP 8080 但不需要阻止本地主机如何使用 IPtables 来完成?
我无法在 puppet 2.6.4(客户端和主)中使用参数化类
######## from /etc/puppet/manifests/nodes.pp
# defining one node to use certain version
#######################################################
node 'dev-internal-000008.domain.com' {
include software($version="dev-2011.02.11")
}
Run Code Online (Sandbox Code Playgroud)
# 来自 /etc/puppet/modules/software/manifests/init.pp
class software($version="dev-2011.02.04b") {
File {
links => follow
}
file { "/opt/software_AIR":
ensure => directory
}
file { "/opt/software_AIR/share":
source => "puppet://puppet/software/air/$version",
recurse => "true",
}
}
Run Code Online (Sandbox Code Playgroud)
#
傀儡师的错误
#err: Could not parse for environment production: Syntax error at '='; expected ')' at /etc/puppet/manifests/nodes.pp:10 on node dev-internal-domain.com
Run Code Online (Sandbox Code Playgroud)
#
找到了解决方法
尝试
node 'dev-internal-000008.domain.com' { …Run Code Online (Sandbox Code Playgroud) sudo cat idenityfile.rsa >authorized_keys
-bash:authorized_keys:权限被拒绝
如果我 su - 给用户,那么我可以做到这一点,但为什么我不能用我的用户的 sudo 做到这一点?