Articles of centos6.4

试图挂载二级驱动器

centos 6 64bit 尝试在最近的主驱动器硬盘驱动器出现故障之前先装入另一台服务器上使用的BACKUP驱动器。 root@server097 [~]# fdisk -l Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0003cb32 Device Boot Start End Blocks Id […]

Redis 2.8内存效率使testing错误

我试图安装Redis 2.8,但是当我运行make test ,它抛出了一个错误: *** [err]:内存效率,范围为16384,单位为test / unit / memefficiency.tcl预期条件'$ efficiency> = $ expected_min_efficiency'为真(0.83004811885510699> = 0.90) 这对我正在安装的服务器意味着什么? 它曾经与Redis 2.6一起工作 谢谢!

位置指令不允许nginx

你好,我正在build立php与nginix,我需要添加一些代码 /etc/nginx/nginx.conf file. 我的nginx.conf文件目前看起来像这样 user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr – $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; #tcp_nopush on; keepalive_timeout 65; gzip on; include /etc/nginx/conf.d/*.conf; } 当我尝试添加下面的行时,出现此错误 位置指令在/etc/nginx/nginx.conf中是不允许的 我正在尝试添加的行 […]

logrotate httpd上centOS 6.4

我正在尝试设置logrotate。 我得到意想不到的结果; 一些日志文件的大小有多个date和/或零字节。 我想每天都有一个日志,并在旧日志的文件名中包含date,而只保留最近30天的日志。 这里是我的logrotate条目 /var/www/html/joomla-1.x/example.com/logs/*.log { missingok daily dateext extension .log rotate 30 notifempty sharedscripts nocompress postrotate /sbin/service httpd reload > /dev/null 2>/dev/null || true endscript } 以下是蜜蜂旋转的日志文件。 [root@Webserver-2 logs]# ls -la total 72460 drwxrwxr-x. 2 apache apache 28672 Jan 13 03:08 . drwxrwxr-x. 4 apache apache 4096 Nov 21 12:51 .. -rw-r–r–. 1 […]

在centos6.4上安装mysql 5.6冲突错误

当我尝试安装MySQL 5.6,我从Centos中删除MySQL 5.1 现在不在我的VPS中安装任何MySQL。 yum install mysql-server Loaded plugins: fastestmirror, refresh-packagekit Setting up Install Process Loading mirror speeds from cached hostfile * base: mirror.fdcservers.net * extras: mirror.ubiquityservers.com * updates: mirrors.gigenet.com Resolving Dependencies –> Running transaction check —> Package mysql-server.x86_64 0:5.1.73-3.el6_5 will be installed –> Processing Dependency: mysql = 5.1.73-3.el6_5 for package: mysql-server-5.1.73-3.el6_5.x86_64 –> Running transaction […]

在centos上设置openvpn客户端6.4

尝试将新的CentOS 6.4客户端join现有的OpenVPNnetworking。 运行服务openvpn start会出现以下错误: Options error: In [CMD-LINE]:1: Error opening configuration file: client.conf Use –help for more information 如果我使用 bash -vx service openvpn start 服务启动成功。 如果我从init.d脚本运行cmd行,服务将成功启动。 它只是不想开始像它需要,如果这个过程将在重新启动工作。 我在强制模式下使用SELinux ,但是在/var/log/secure或/var/log/messages没有看到表示SELinux正在涉及的任何消息。 build议?

CentOS:无法读取远程服务器上的nrpe / snmp代理的输出,虽然它在本地工作,但我做错了什么?

我已经在某些服务器上安装了NRPE和SNMP,因为我想用Nagios监视这个服务器。 我有几个检查已经正常运行,我得到了预期的输出。 今天,我已经安装了check_ifstatus Nagios命令来监视我的一台mysql服务器上的网卡的状态。 在服务器上本地运行check_ifstatus时,我正确地获得了相关信息: [root@dbr4 nagios]# /usr/lib64/nagios/plugins/check_ifstatus -H localhost OK: host 'localhost', interfaces up: 4, down: 0, dormant: 0, excluded: 0, unused: 0 |up=4,down=0,dormant=0,excluded=0,unused=0 [root@dbr4 nagios]# 但是当我从我的Nagios服务器运行命令时出现以下错误: [root@monitorvm ~]# /usr/lib64/nagios/plugins/check_ifstatus -H amadbr4 CRITICAL: No response from remote host 'dbr4' for 1.3.6.1.2.1.2.2.1.8 with snmp version 1 [root@monitorvm ~]# 这是否意味着我必须在我想检查的服务器上启用snmp? 有没有办法使用NRPE来运行此检查? SELINUX在所有机器上都被禁用。

如何在CentOS 6.4中使用rpm(不是yum cmd)+处理mysql-libs冲突来安装MariaDB rpms

我需要在CentOS 6.4中使用rpm命令来编写MariaDB的安装脚本。 我不能使用yum,因为它将会是一个离线安装,所以无法访问版本库。 唯一安装的MySQL软件包是mysql-libs,因为CentOS中的其他软件包依赖于它。 当我用yum做了一个MariaDB的testing安装,它正确地解释了mysql-libs,并且在最后卸载它,MariaDB可以在安装之后处理依赖关系: [root@new-host-6 ~]# yum install MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared Loaded plugins: downloadonly, fastestmirror, refresh-packagekit, security, verify Loading mirror speeds from cached hostfile * base: mirrors.kernel.org * extras: mirror.keystealth.org * updates: mirror.umd.edu Setting up Install Process Resolving Dependencies –> Running transaction check —> Package MariaDB-client.x86_64 0:5.5.32-1 will be installed —> […]

GnomenetworkingconfigurationGUI丢失

最近在服务器上安装了CentOS 6.4。 我不确定这是否需要专门安装,但在Gnome中没有networkingconfigurationGUI。 在其他的CentOS系统上,我看到一个networkingconfiguration窗口,通过系统>pipe理菜单可以访问,但它不在那里。 我知道我可以通过terminal进行所有的更改,但是拥有GUI会更好。 这是我可以通过yum安装吗? 如果是这样,那叫什么? 我要search什么?

ssh警告消息缺less文件问题

当我login到ssh(centos 6.5 64bit) Can't locate warnings.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/share/perl5/local/lib.pm line 2. BEGIN failed–compilation aborted at /usr/local/share/perl5/local/lib.pm line 2. Compilation failed in require. BEGIN failed–compilation aborted. su – Can't locate warnings.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/share/perl5/local/lib.pm line 2. […]