Articles of centos

iptables脚本阻塞ssh

任何人都可以发现这是什么问题? 一旦我运行的脚本我被locking在我的服务器,需要重新启动它。 它至less阻塞ssh。 我正在使用端口6789 ssh。 谢谢你的帮助。 http://pastebin.com/WghZ9yYM

RabbitMQ:找不到

尝试使用rabbitmqctl ,出现以下错误: $ which rabbitmqctl /usr/sbin/rabbitmqctl $ sudo rabbitmqctl status /usr/lib/rabbitmq/bin/rabbitmqctl: line 29: exec: erl: not found ( /usr/sbin/rabbitmqctl最有可能在/usr/lib/rabbitmq/bin/rabbitmqctl中调用/usr/lib/rabbitmq/bin/rabbitmqctl /usr/lib/rabbitmq/bin/${SCRIPT} – 猜测${SCRIPT}计算结果为rabbitmqctl ) 但是,当简单地从shell中访问erl时,我会按照预期到达erlang shell $ which erl /usr/local/bin/erl $ ls -la /usr/local/bin/erl lrwxrwxrwx 1 root root 21 Jul 18 02:03 /usr/local/bin/erl -> ../lib/erlang/bin/erl $ erl Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:16:16] [async-threads:0] [hipe] [kernel-poll:false] […]

托pipepublic_html文件夹的服务器上的硬盘已满。 该怎么办?

专用服务器运行Cent OS,具有2个1TB硬盘驱动器。 一个域名托pipe在这个服务器上。 我一直在上传文件到公共/ HTML文件夹没有问题,但我已经达到了这个文件夹所在的硬盘驱动器的最大容量。 我想要做的是继续上传文件到第二个硬盘,但是我不能链接到这些文件,因为它们在public_html文件夹之外。 我可以通过什么方式将第二块硬盘上的这些新文件授予我的网站用户? 我不太懂技术,所以请亲切地certificate你的答案:)

无法在CentOS上parsingcurl中的主机名,wget,yum

在我刚刚安装一个Centos后,我无法获得yum , wget或curl工作。 我所得到的是: $ curl http://www.google.com curl: (6) Couldn't resolve host 'www.google.com 最令人惊讶的是,Ping似乎起作用了。 ping www.google.com 第一个反应,检查iptables:我没有任何规定。 正如我所说,新鲜安装。 resolve.conf nameserver 127.0.0.1 nameserver 8.8.8.8 nameserver 8.8.4.4 PS:尝试与http://和没有。

如何阻止大多数电子邮件被发送到特定的电子邮件地址(除非他们在白名单上)

CentOS 5.x | 发送邮件 我想阻止大多数电子邮件转到特定的sendmail邮箱,除非他们在批准的“白名单”上。 这可能在sendmail中做到吗?

audit_log_user_command():使用sudo时连接被拒绝,怎么了?

我ssh到我的远程centos切断hugemeow,然后我运行sudo ls,然后错误发生: [hugemeow@home ~]$ sudo ls **audit_log_user_command(): Connection refused** httpd hugemeow在/ etc / sudoers中,configuration如下: hugemeow ALL=(ALL) ALL 上面显示的msg有什么问题?

Ext4在CentOS 5.8 64位上的一段时间后出现错误

我在dmesg中得到这样的警告: EXT4-fs error (device md2): mb_free_blocks: double-free of inode 0's block 602619328(bit 15808 in group EXT4-fs error (device md2): mb_free_blocks: double-free of inode 0's block 602619329(bit 15809 in group EXT4-fs error (device md2): mb_free_blocks: double-free of inode 0's block 602619330(bit 15810 in group EXT4-fs error (device md2): mb_free_blocks: double-free of inode 0's block 602619331(bit 15811 […]

Perl不能通过fastcgi与Nginx合作,无法破译错误日志

我运行CentOS 6.2 , Nginx 1.2.3遵循这些Linode指令让Perl与Nginx一起工作我已经做了所有的事情来testing一个实际的Perl文件。 当我这样做浏览器说: The page you are looking for is temporarily unavailable. Please try again later. 而我的Nginx error-log显示如下: 2012/09/02 22:09:58 [error] 20772#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.102, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:8999", host: "192.168.1.10:81" 我坚持在这一点上。 林不知道是否重要,但我也有spawn-fcgi和php-fpm来提供这个网站上的PHP文件,但这应该是从perl-fastcgi设置,不同的端口等100%分开。 我怎样才能解决这个问题?

修改/lib/libc.so.6后无法与服务器一起使用

我有一个CentOS服务器,VPS。 运行此命令后,我无法使用服务器,并在所有操作(SSH,login,LS和…)中得到相同的错误 命令: ln -s /lib/libc.so.1 /lib/libc.so.6 -f 而错误是: /sbin/shutdown: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory 我有VNC服务器,但因为我无法login到服务器,这是无法使用的。 提前致谢。

在专用服务器上的两台KVM VPS之间共享CPU

如何在专用服务器上的两个KVM VPS之间共享CPU? 假设我们有一个专用服务器上的8核CPU 为了获得两个VPS的最大性能,我应该为每一个分配8个核心吗? 或者只是给每个VM分配4个核心?