Articles of centos

dynamic更新BIND 9转发器

有两个到不同ISP的WAN接口,configuration了PEERDNS=yes并安装了BIND 9服务器,configurationforward only 。 这些接口用于旋转(不是同一时间)。 在CentOS 6.3中,首选的方法是什么时候允许在改变活动的WAN接口时将BIND转发器更改为活动的ISP域名服务器?

'ssh <remote> -t <command>'是否有超时? 被Signal 15杀死

我想在远程服务器上运行一个没有login的作业。 我发现我可以使用ssh运行我的工作: ssh remotenode -t /path/to/myjob &> /path/to/log 不过,这个工作一段时间后会被Signal 15杀死。 SSH是否强制超时? 注:我的工作需要几个小时才能完成。

如何使用WHM或Cpanel安装SWIG?

我有一个SSH和WHM访问VPS。 虽然我对命令行的东西一无所知。 现在为了安装支付API,我需要在我的服务器上安装SWIG,但我不知道该怎么做。 任何帮助表示赞赏。 请尽可能描述。 也请随时问我可能需要的任何进一步的信息。

试图在CentOS上安装Mumble

我试图按照以下说明在我的CentOS VPS上安装: http://www.hosting.com/support/linux/install-the-mumble-voip-server-to-redhat-or-centos 当我到达这条线时: rpm2cpio mumble-server-1.2.2-3mdv2011.0.x86_64.rpm > file.lzma lzma -d file.lzma 我得到这个错误: root@vps-1112788-12524 [/home/~~~~/mumble]# rpm2cpio mumble-1.2.4-0.20120422.1-mdv2012.0.x86_64.rpm > file.lzma root@vps-1112788-12524 [/home/~~~~/mumble]# lzma -d file.lzma lzma: file.lzma: File format not recognized 我没有更新文件的名称,因为他们给我的链接不可用。 我从同一个地方得到了新的rpm: http://www.rpmfind.net/linux/rpm2html/search.php?query=mumble+server&submit=Search+… 我是Linux新手,所以我不知道我在做什么错。

CentOs 6.3不能安装Git

我正在尝试使用CentOs 6.3 precreated模板在OpenVZ容器上安装git。 当我尝试命令行 yum install git 我收到消息: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: www.cubiculestudio.com * epel: mirror.csclub.uwaterloo.ca * extras: www.cubiculestudio.com * rpmforge: mirror.us.leaseweb.net * updates: www.cubiculestudio.com Setting up Install Process No package git available. Error: Nothing to do 据我所知,git软件包应该位于centos6基础库中: http ://pkgs.org/centos-6-rhel-6/centos-rhel-x86_64/git-1.7.1-2.el6_0.1.x86_64 .rpm.html 但它没有find它,我甚至有EPEL和RPMForge回购启用,但仍然无法findGIT包。 yum repolist Loaded plugins: fastestmirror Loading […]

启动时运行.sh(无服务)文件

如何在启动时在CentOS 6.3上执行一次脚本? 我添加了以下遏制文件 #chkconfig: 2345 95 20 #description: Some description sh /opt/somePath/my.sh 到/etc/ini.d ,它工作正常(我执行所需的chmod , chkconfig )。 但my.sh文件兼容作为服务运行 。 当我尝试以相同的方式运行另一个.sh文件(它不能作为服务tun),我得到exception启动X. 所以我想知道如何运行不是服务的.sh文件。 谢谢。

Centos 6.3 OpenSWAN找不到我的连接

我一直沮丧地把头发扯掉太久,并决定Serverfault可能会有帮助。 任何人都可以解释这个? 我已经重新安装了openswan / ipsec多次清除,我已经重新生成了钥匙,我已经试过,只要我能想出,一切。 服务器1 [root@db1 ipsec.d]# ipsec auto –add db-to-db conn 'db-to-db': not found (tried aliases) [root@db1 ipsec.d]# cat /etc/ipsec.d/db1.conf conn db-to-db left=10.0.10.61 leftid=@db1 leftrsasigkey=0sAQO…co9sz leftnexthop=%defaultroute right=10.0.10.62 rightid=@db2 rightrsasigkey=0sAQP…7iex3cd rightnexthop=%defaultroute authby=rsasig auto=start [root]@db1 ipsec.d]# tail /var/log/secure Oct 17 06:56:51 db1 pluto[1567]: packet from 10.0.10.62:500: received Vendor ID payload [Openswan (this version) 2.6.32 ] […]

是否有可能使用命令删除文件中的最后一行?

我意外地在许多服务器上分配了一行到/ etc / crontab,我注意到这行有一个错字,我需要在所有服务器上更改它。

nginx重装失败:`对象版本不匹配引导参数`

我添加了一个server节到我的virtual.conf ,现在nginx似乎有一个问题重新加载configuration。 在这一点上,我不知道到底是怎么回事,或者如何更好地debugging。 非常感激任何的帮助。 configurationtesting成功: root@server:~# service nginx configtest nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful 我在拖尾日志文件。 重新加载时,会logging以下错误。 据我所见,新的configuration不被使用。 root@server:~# service nginx reload Reloading nginx: [ OK ] root@server:~# ==> /var/log/nginx/error.log <== nginx object version 0.8.54 does not match bootstrap parameter 1.0.15 at /usr/lib64/perl5/XSLoader.pm line 94. Compilation […]

Centos INODES使用情况

我们正在使用Centos和cPanel服务器,但是我们对于INODES的使用有一个重要的问题。 “df -i”命令使用6百万个inode显示/目录! 当我检查/目录的文件数量,它有几千个文件。 df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/sda4 6578176 6567525 10651 100% / tmpfs 8238094 1 8238093 1% /dev/shm /dev/sdi1 61054976 169 61054807 1% /backup /dev/sda1 51296 38 51258 1% /boot /dev/sda2 0 0 0 – /boot/efi /dev/sdc1 7290880 1252 7289628 1% /database /dev/sdb2 4096000 53258 4042742 2% /home […]