我曾经在几台服务器上使用过munin,这是第一次把我花这么多时间来设置它。 当我直接telnet munin时,我可以列出服务,日志和munin没有错误,每5分钟更新一次。 但是没有创buildhtml文件。 我使用的默认位置(/ var /caching/ munin / www),我可以确认该目录的权限设置为munin.munin (IP和域已被更改) munin.conf: dbdir /var/lib/munin htmldir /var/cache/munin/www logdir /var/log/munin rundir /var/run/munin [example.ne.jp;] address 100.100.50.200 穆宁-node.conf: log_level 4 log_file /var/log/munin/munin-node.log pid_file /var/run/munin/munin-node.pid background 1 setsid 1 user root group root host_name example.ne.jp allow ^127\.0\.0\.1$ allow ^100\.100\.50\.200$ allow ^::1$ / etc / hosts: 100.100.50.200 example.ne.jp mail.example.ne.jp 127.0.0.1 localhost […]
我尝试了所有可能的组合,尝试在AWS环境中对rabbitmq进行群集。 但要回顾一下: closures并删除我的本地Ubuntu 14上的erlang和rabbit发行版 尝试了networking上的自动configuration模块 默认安装的ubuntu 14版本将不会削减它。 erlang cookie匹配 – 这在下面演示 主机名称不匹配是唯一的难题。 节点本身认为它的主机名分别是“q1”或“q2”。 当我尝试将容器的主机名设置为主机的私有DNS名称(因此它可以连接到其他节点)容器中的兔子实例崩溃。 不低于如何hostname生产q2但我炮轰到亚马逊的私人dns? root@q2:~# hostname q2 root@q2:~# exit christian@q2:~$ logout Connection to ip-10-0-3-101.us-west-2.compute.internal closed. 我正在使用最新的rabbitmq docker镜像。 docker run -d –restart always –hostname q1 –name rabbitmq -p 4369:4369 -p 15671:15671 -p 25672:25672 -p 15672:15672 -p 5672:5672 -e RABBITMQ_HIPE_COMPILE=1 -e RABBITMQ_ERLANG_COOKIE='ilikecookies' rabbitmq:3-management 服务启动得很好 root@q1:~# curl […]
我想在docker容器中的ubuntu 14.04上安装mongodb,在我的Dockerfile中使用官方mongodb指南中的以下步骤: RUN sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv 7F0CEB10 RUN echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list RUN apt-get update && apt-get -q -y install \ nodejs\ npm \ git \ mongodb-org 这些命令在我的主机ubuntu系统上正确安装mongodb,但不是在docker中。 在我的docker镜像中,/etc/init.d/mongod不存在。 运行“docker build”时会打印以下错误: invoke-rc.d: unknown initscript, /etc/init.d/mongod not found. invoke-rc.d: policy-rc.d denied execution of start.
我已经从namecheap.com购买了SSL证书。 我正试图在运行Ubuntu 14.04和Apache的服务器上安装它。 我使用以下教程来设置Apache https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts 。 服务器具有仅在HTTP上运行的预先存在的站点。 该网站使用两个子域名admin.example.com和api.example.com,所以我购买了通配符证书。 我已经根据证书颁发机构安装了证书,并修改了Apache config example.com.conf来添加SSL虚拟主机,我仍然希望非HTTPS页面能够正常工作,所以我离开了现有的80端口configuration,并添加了新的虚拟主机主机configuration如下。 我重新启动Apache并尝试通过https查看页面,但从Firefox获取以下错误代码(Error code: ssl_error_rx_record_too_long) 我已经尝试了这个post中提到的修复,但没有成功https://www.digicert.com/ssl-support/apache-fix-common-ssl-errors.htm#SSLRecordLength 我也检查了防火墙已经打开了端口443。 Apacheconfiguration <VirtualHost *:80> ServerAdmin [email protected] ServerName example.com ServerAlias www.example.com api.example.com admin.example.com DocumentRoot /var/www/example.com/public/ <Directory "/var/www/example.com/public/"> Options Indexes FollowSymLinks AllowOverride None Order deny,allow Allow from all Satisfy all IndexIgnore */* RewriteEngine on # if a directory or a file exists, […]
刚刚在云端Ubuntu 14.04上购买了新的虚拟服务器。 我用apt-get update更新了我的软件包。 尝试安装节点js时遇到问题。 我遵循这个指南: https : //github.com/joyent/node/wiki/installing-node.js-via-package-manager 当我运行sudo apt-get install -y nodejs我得到这个: user@server sudo apt-get install nodejs Reading package lists… Done Building dependency tree Reading state information… Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that […]
(以前张贴在错误的计算器) 我正在运行一系列Ubuntu 14.04.1(sun,hyperion,…)的服务器,所有这些服务器都使用rsync的公钥(OpenSSH_6.6.1,OpenSSL 1.0.1f 2014年1月6日,在所有机器上),没有任何问题。 几乎全部… 一个连接失败,没有任何configuration或密钥的变化。 然后我会尝试重新添encryption钥,检查ECDSA,重新启动/重新启动ssh,然后再次运行。 或者它不。 在这种情况下,我只需要等待一段时间(1小时到3个月)。 这一次,它解决了这个问题 – 一段时间。 ssh -vvv diff的相关部分: 成功的连接 debug1: Host 'hyperion.internal' is known and matches the ECDSA host key. debug1: Found key in /home/bar/.ssh/known_hosts:20 debug1: ssh_ecdsa_verify: signature correct debug2: kex_derive_keys debug2: set_newkeys: mode 1 debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug2: set_newkeys: mode 0 debug1: SSH2_MSG_NEWKEYS […]
我们正在为一些开发人员使用Ubuntu 14.04桌面环境进行试用,并将这些机器连接到了SSSD的域中。 这一直工作正常。 然而,系统认识到域用户为[email protected],因此'ls -l'输出相当混乱。 这也certificate他们有一些testing脚本,用户名硬编码,所以这@ @ DOMAIN.COM打破他们。 有没有办法让SSSD将域用户显示为“username”而不是“[email protected]”? 如果没有,是否有一个系统可以让我做到这一点? 谢谢
我正在尝试将现有的Ubuntu 14.04 LTS升级到Ubuntu 16.04 LTS ,而且我似乎陷入了中间的某个地方。 当我打开我的工作站,我得到了Ubuntu 16.04 LTS欢迎和login屏幕,这是好的,最新的内核已经启动,但是,当我做sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get autoremove ,然后按Y / y确认升级,我得到: user@work002:~$ sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get autoremove Get:1 http://si.archive.ubuntu.com/ubuntu xenial InRelease [247 kB] Hit:2 http://archive.canonical.com/ubuntu xenial InRelease Hit:3 http://security.ubuntu.com/ubuntu xenial-security […]
我有两个服务器是Ubuntu 12.04和Ubuntu 14.04。 当我在新服务器中使用Ubuntu 14.04并启用在/etc/php5/fpm/php-fpm.conf中find的php-fpm日志文件,其内容如下: error_log = /var/log/php5-fpm.log 我注意到,我在Ubuntu 12.04中find的大部分日志都不是在14.04中编写的。 例如,如果我重新启动我的Ubuntu 12.04中的php5-fpm,重新启动日志正在写入,但是,这不会发生在14.04。 我在14.04错过的另一个日志如下: [23-Aug-2014 16:23:03] NOTICE: [pool web42] child 118098 exited with code 0 after 12983.480191 seconds from start [23-Aug-2014 16:23:03] NOTICE: [pool web42] child 147653 started [23-Aug-2014 17:27:31] WARNING: [pool web8] child 76743, script '/var/www/mysite.com/web/wp-comments-post.php' (request: "POST /wp-comments-post.php") executing too slow (12.923022 sec), logging […]
以前我问过在Ubuntu 12.04服务器上安装GlusterFS的问题,答案是这是12.04的错误,而在14.04工作。 好奇的我尝试了一下在我的笔记本上运行的虚拟机,并在14.04工作。 由于这对我来说非常重要,我决定将运行中的服务器升级到14.04,以便发现GlusterFS不会自动挂载localhost卷。 这是一个Linode服务器,fstab看起来像这样: # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 /dev/xvda / ext4 noatime,errors=remount-ro 0 1 /dev/xvdb none swap sw 0 0 /dev/xvdc /var/lib/glusterfs/brick01 ext4 defaults 1 2 koraga.int.example.com:/public_uploads /var/www/shared/public/uploads glusterfs defaults,_netdev 0 0 引导过程像这样(围绕networking安装部分,这是唯一的失败): * Stopping Mount network filesystems [ OK ] * Starting […]