Articles of ubuntu 10.04

Ubuntu升级失败了关于内核的东西?

我运行一个Ubuntu的服务器版本10.04 LTS。 我今天在我的服务器上做了一个“sudo apt-get upgrade”,失败了: Setting up linux-image-2.6.32-318-ec2 (2.6.32-318.38) … Running depmod. update-initramfs: Generating /boot/initrd.img-2.6.32-318-ec2 Could not find postinst hook script [update-grub]. Looked in: '/bin', '/sbin', '/usr/bin', '/usr/sbin' dpkg: error processing linux-image-2.6.32-318-ec2 (–configure): subprocess installed post-installation script returned error exit status 2 Setting up linux-image-2.6.32-319-ec2 (2.6.32-319.39) … Running depmod. update-initramfs: Generating /boot/initrd.img-2.6.32-319-ec2 Could not find […]

configurationUbuntu的全球SOCKS5代理

什么是最好的方式来configurationUbuntu使用SOCKS5代理的所有networkingstream量? 服务器是Ubuntu的服务器。 我想通过代理(apt-get,http,https等)推送所有出站stream量。 除ssh以外的所有东西都应该打到代理服务器

为什么munin apache_activity插件在不同的服务器上检查/服务器状态?

我有两个Web服务器在不同的位置(我们称之为WEB1和WEB1 )由同一个Munin服务器监视。 今天,我注意到在WEB1的Apache日志中WEB1以下错误: [error] [client <IP OF WEB2>] client denied by server configuration: /var/www/server-status 当然,为了安全起见,我在两台机器上都将server-status限制为localhost。 每隔5分钟发生一次,同时我的慕尼黑服务器收集信息,所以我知道这是munin apache_activity插件造成这种情况发生。 为什么它试图检查另一台服务器的服务器状态,我该如何阻止它呢?

ubuntu上的networking接口在新的根服务器上只有0.12MB / s

—-编辑:问题解决了。 不知何故,我的提供者似乎阻止testing到互联网。 远程机器testing成功1k r / s 我正在ubuntu 10.04.03 LTS上运行一个全新的Apache 2.2.1编译版本。 根服务器有32GB RAM,是一个i7-2600k。 内部networking上的虚拟机箱内可以使用相同的硬件和软件进行testing。 尽pipetesting服务器运行良好,每秒服务约800次的“真实”服务器每秒只能处理大约15次事务。 运行围困:sudo siege -b -c50 -d10 -i http:/ …服务器开始提供文件,但是大约20-40s之后,它会变得越来越慢,直到它几乎停顿。 unix top显示apache进程开始跨度,但很快它们全部消失,而系统只在0.1 – 0.3的平均负载下运行。几乎没有资源被使用。 这个过程大约吃0-1%的CPU。 httpd.conf的configuration与testing服务器上的configuration大致相同。 我也试图改变一些有意义的价值观,但没有帮助。 在遇到与nginx相同的问题后,我用netperf运行了一个networking基准testing,从远程位置成功返回600MB / s,但是从Intranet只有0.13MB 有没有人有一个想法如何解决这个问题。 我维护10年的Linux系统,从来没有见过类似的东西。 感谢您的任何帮助!

Ubuntu 10.04 bind9本地区域包含文件和apparmor

而不是把我所有的区域放在一个named.conf.local文件中,我想把它们放在一个组中,作为单独的文件来pipe理。 所以,我已经尝试把以下内容放入named.conf.local中: include "/home/zones/group1.conf"; include "/home/zones/group2.conf"; include "/home/zones/group3.conf"; 但是,当我重新启动命名,我看到日志中的“权限被拒绝”错误。 Ubuntu使用apparmor进行绑定,所以我还在/etc/apparmor.d/usr.sbin.named中添加了以下内容: /home/zones/group1.conf r, /home/zones/group1.conf r, /home/zones/group1.conf r, 现在,当我重新开始命名,一切似乎都很好。 区域加载(我认为)。 但是,一两天之后,我发现我的辅助名称服务器抱怨主服务器告诉它这些域名不具有权威性。 然后我必须把所有的域重新放回到named.conf.local文件中。 我怎样才能得到bind9以这种方式使用包含文件? 我对apparmor了解不多,所以这里可能会也可能不是问题,但是我已经在Debian上用这种方式使用了include文件。

libvirt超时。 在kern.log中分割被阻止的消息

我使用Ubuntu 10.04.4 LTS来托pipeKVM虚拟机。 我正在使用桉树来pipe理它们,并且libvirt有很多问题无法与KVM组件连接并超时。 这使桉树认为事件已经死亡。 在kern.log中注意到很多这些消息。 任何人都可以帮我确定这是什么意思? May 5 03:57:03 [host] kernel: [3638726.030567] INFO: task parted:24773 blocked for more than 120 seconds. May 5 03:57:03 [host] kernel: [3638726.030828] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. May 5 03:57:03 [host] kernel: [3638726.042960] parted D 00000000ffffffff 0 24773 24772 0x00000000 May 5 03:57:03 [host] kernel: [3638726.042969] ffff880e119add28 […]

阿曼达:自检失败,客户端超时

我正在testing在Ubuntu 10.04服务器上安装Amanda,作为主要OS X 10.6客户端的备份服务器。 服务器已经安装并且已经在特定的本地目录上成功运行了一周左右的备份。 我已经根据Zmanda wiki文章安装并configuration了OS X客户端。 我在这个testing环境中没有内部DNS服务器,所以在服务器上的磁盘列表项中,我通过IP定义了客户端,而不是FQDN(即10.10.10.5 / Users / admin test-home-tar)。 当我在服务器上运行amcheck时,这是输出: 警告:10.10.10.5:自检请求失败:连接超时 客户检查:在73.001秒内检查2台主机。 发现1个问题。 我错过了什么让客户端和服务器成功地进行通信和运行备份? 客户端磁盘列表条目是否需要使用FQDN?

Ubuntu 10.04服务器,在不同子网中的2个NIC,1个路由器

以下configuration: Ubuntu 10.04服务器,2个网卡: – eth0 192.168.1.215/24,默认GW:192.168.1.250 – eth1 192.168.3.225/24 两者都连接到相同的路由器(Funkwerk Bintec R3000)。 路由器可以(通过内置的诊断)成功ping通两个IP。 当服务器中的两个NIC都在线时,从本地PC(IP为192.168.1.14/24),我只能ping eth0,而不能ping eth1。 但是:在ubuntu-box上禁用eth0时,我突然可以ping通eth1! 现在的问题是:我怎样才能让ubuntu-machine在eth0和eth1上响应ping? 非常感谢! 编辑:命令输出 IP地址显示 # ip addr show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu […]

Ubuntu 10.04:无法启动RabbitMQ服务器后安装

在Ubuntu 10.04上安装RabbitMQ后,我收到一条失败消息,说明该服务无法启动。 任何深入了解这个问题将不胜感激! 以下是startup_log和startup_err的内容。 Startup_log: {error_logger,{{2012,7,7},{15,50,31}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,etimedout}},[{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_protos,3},{net_kernel,init_node,2},{net_kernel,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}]} {error_logger,{{2012,7,7},{15,50,31}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.20.0>},{registered_name,[]},{error_info,{exit,{error,badarg},[{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},{ancestors,[net_sup,kernel_sup,<0.9.0>]},{messages,[]},{links,[#Port<0.100>,<0.17.0>]},{dictionary,[{longnames,false}]},{trap_exit,true},{status,running},{heap_size,987},{stack_size,24},{reductions,512}],[]]} {error_logger,{{2012,7,7},{15,50,31}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfa,{net_kernel,start_link,[[rabbitmqprelaunch877,shortnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]} {error_logger,{{2012,7,7},{15,50,31}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfa,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]} {error_logger,{{2012,7,7},{15,50,31}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]} {"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"} Startup_err: Crash dump was written to: erl_crash.dump Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})

Ubuntu 10.04服务器 – Apache2 | url进来率很高 – 造成cpu过载

我遇到了一个我们的networking服务器的问题。 昨天,我注意到网站速度很慢,所以我login到networking服务器查看。 发出'top'命令,显示CPU在100%的利用率,但内存/内存看起来不错。 我发出htop,并看到100%的利用率,所以我检查了日志,/var/log/apache2/*.log,我发现两个URL(链接 – 不是enire网站)的速度非常快。 (请参阅下面的示例) 120.28.78.99 – – [16/Jul/2012:10:52:48 +0800] "GET /?p=8150 HTTP/1.1" 503 485 "certain_url_of_my_site" "Mozilla/5.0 (Windows; U; e-US) AppleWebKit/533.19.4 (KHTML, like Gecko) AdobeAIR/3.1" 122.54.143.122 – – [16/Jul/2012:10:53:39 +0800] "GET /?p=8150 HTTP/1.1" 301 431 "certain_url_of_my_site" "Mozilla/5.0 (Windows; U;en-US) AppleWebKit/533.19.4 (KHTML, like Gecko) AdobeAIR/3.1" 112.211.211.179 – – [16/Jul/2012:10:53:48 +0800] "GET /?p=8150 HTTP/1.1" 301 […]