Articles of centos

通过tty运行一个命令,而不用注释掉“requiretty”

我正在CentOS上运行Jenkins的最新版本。 在我的Jenkins工作中,我可以运行构build后步骤,并包含此命令, sudo /bin/rm /usr/java/jboss/server/default/deploy/myclient-1.0.war 与错误一起死亡 sudo: sorry, you must have a tty to run sudo 有没有办法我可以重写上面的命令通过一个tty壳? 在我们的/ etc / sudoers文件中,我们有这个行 Defaults requiretty 但是我们的系统pipe理员已经禁止我们评论它。

yum更新失败

我有问题做我的OpenVZ VPS的yum更新。 我得到这个错误消息: (56/69): glibc-devel-2.5-81.el5_8.7.x86_64.rpm | 2.4 MB 00:00 (57/69): libstdc++-devel-4.1.2-52.el5_8.1.x86_64.rpm | 2.8 MB 00:00 (58/69): binutils-2.17.50.0.6-20.el5_8.3.x86_64.rpm | 2.9 MB 00:00 (59/69): cpp-4.1.2-52.el5_8.1.x86_64.rpm | 2.9 MB 00:00 (60/69): device-mapper-multipath-0.4.7-48.el5_8.1.x86_64 | 3.0 MB 00:00 (61/69): mysql-5.1.58-jason.1.x86_64.rpm | 3.5 MB 00:03 (62/69): coreutils-5.97-34.el5_8.1.x86_64.rpm | 3.6 MB 00:00 (63/69): gcc-c++-4.1.2-52.el5_8.1.x86_64.rpm | 3.8 MB 00:00 (64/69): glibc-2.5-81.el5_8.7.x86_64.rpm | 4.8 […]

显示繁忙的磁盘

想创buildLV组,但是当我卸载/ dev / sda5这显示 [root@xen01 ~]# umount /dev/sda5 umount: /: device is busy umount: /: device is busy 这意味着磁盘/ dev / sda5正忙,因此我无法在此磁盘上创buildphsical逻辑卷。 [root@xen01 ~]# pvcreate /dev/sda5 Can't open /dev/sda5 exclusively. Mounted filesystem? 请任何人都可以告诉我如何做这个任务是迫切的..?

黑客CentOS 5服务器 – 可能的rootkit安装?

可能重复: 我如何知道我的Linux服务器是否被黑客入侵? 我的服务器被黑了应急 我正在运行CentOS 5.3,这里是“chkrootkit”的结果: Possible t0rn v8 \(or variation\) rootkit installed Warning: Possible Showtee Rootkit installed /usr/include/file.h /usr/include/proc.h Warning: `//root/.mysql_history' file size is zero INFECTED (PORTS: 465) You have 61 process hidden for readdir command You have 62 process hidden for ps command chkproc: Warning: Possible LKM Trojan installed The tty of the following […]

用yum安装的nginx安装乘客

是否有可能将乘客安装到以前使用yum安装的nginx中? 我需要为install-nginx-module提供一个目录前缀,只是想知道Centos在哪里? passenger-install-nginx-module –auto-download –auto –prefix=$nginx_directory_prefix

无法在Centos中提取tar.gz存档

我刚刚从家用的Windows 7电脑上将tar.gz存档上传到我的Centos服务器。 在此之前,它是从.zip压缩文件中提取的。 当我尝试提取它时: tar -xvf file.tar.gz gunzip file.tar.gz 它总是给我错误:“不是在gzip格式” 归档没有被破坏,因为可以在Winrar中的Windows中解压。 档案相当大,超过100 MB。 我不知道,这是什么问题。 请问你能帮帮我吗? 谢谢。 彼得

CentOS 6.2禁用httpd autoindex

我试图禁用在Apacheconfiguration的目录的自动索引。 <VirtualHost *:80> ServerName example.com ServerAlias www.example.com example.co.uk www.example.co.uk DocumentRoot /var/www/sites/example.com/public ErrorLog /var/log/httpd/error.log CustomLog /var/log/httpd/access.log combined Options -Indexes </VirtualHost> 将Options -Indexes放入VirtualHostconfiguration中会禁用这些目录中的autoindex吗?

在CentOS上安装ICU 49

我试图在CentOS 5.8版(Final)上安装ICU 49。 我知道如何做的唯一方法是按源代码编译。 我做了以下几点: ./runConfigureICU Linux gmake 并在编译结束时得到以下错误: make[2]: Leaving directory `/root/icu/icu/source/tools/toolutil' make[1]: Making `all' in `ctestfw' make[2]: Entering directory `/root/icu/icu/source/tools/ctestfw' generating dependency information for ucln_ct.c generating dependency information for uperf.cpp generating dependency information for datamap.cpp generating dependency information for testdata.cpp generating dependency information for tstdtmod.cpp generating dependency information for ctest.c make[2]: Leaving directory […]

httpd-devel为centos 4.6

我有一个旧的服务器,我需要为Centos 4.6发行版的http-devel pacakge。 基本上,因为我需要从源安装PHP,但缺lessapxs命令。 有没有在旧的Linux发行版的互联网上的公共档案,或者我可以得到旧的rpm?

检查在CentOS上运行新网站的问题

我有一个空的CentOS 6.3盒子。 我需要从这个服务器运行多个网站。 我迄今为止所做的事情是: 按照这篇文章安装了Apache,MySQL,PHP和PHP模块。 我在/ var / www / html /文件夹内创build了一个testing文件index.html,并通过将浏览器指向服务器的IP来访问默认的站点。 但它没有显示任何东西。 我在httpd.conf文件中注释了“DocumentRoot / var / www / html”行,并添加了如下虚拟主机设置: NameVirtualHost *:80 <VirtualHost *:80> ServerName abc.com DocumentRoot /var/www/vhosts/abc.com DirectoryIndex index.php <Directory "/var/www/vhosts/abc.com"> DirectoryIndex index.php AllowOverride All Allow from All </Directory> </VirtualHost> 注意上面的abc.com是我的服务器的主机名,我以[email protected]连接到服务器 我创build了文件夹/vhosts/abc.com,并在其中放置了一个文件index.php 然后我重新启动服务器使用服务httpd重新启动 将我的浏览器指向服务器的IP或abc.com,显示“页面无法显示”。 如果我尝试检查/ var / log / httpd / access_log或/ var / […]