Articles of centos

Apache HTTPd – rotatelogs不起作用

我已经编辑了我的conf.d / ssl.conf文件,并从以下版本更改了TransferLog指令: TransferLog logs/ssl_access_log 至 TransferLog "|/usr/sbin/rotatelogs logs/ssl_access_log.%Y-%m-%d.log 60" (我正在使用60秒进行testing) 由于这一变化和httpd重新启动我的原始ssl_access_log没有更新,并没有生成一个新的日志。 我错过了什么? 在我的错误日志中,我正在收到此消息 Could not open log file 'logs/ssl_access_log.2014-05-30.log' (No such file or directory) piped log program '/usr/sbin/rotatelogs logs/ssl_access_log.%Y-%m-%d.log 60' failed unexpectedly

安装ext-libevent,ext-libev,ext-event for php

我在我的LAMP环境(CentOS 6.4)上安装了reactphp 。 安装成功后,我得到这个消息: react/react suggests installing ext-libevent (Allows for use of a more performant event-loop implementation.) react/react suggests installing ext-libev (Allows for use of a more performant event-loop implementation.) react/react suggests installing ext-event (Allows for use of a more performant event-loop implementation.) 如何安装ext-libevent,ext-libev和ext-event? 谢谢!

CentOS只检测IBM服务器上的ram的50%

我有安装了16 GB RAM的IBM服务器。 最初它显示了16 GB free | grep Mem | awk '{print $2}' 但现在只显示 8116136 但它必须显示 16439208 当我做 dmidecode -t 17 | grep Size Size: 8192 MB Size: No Module Installed Size: No Module Installed Size: No Module Installed Size: No Module Installed Size: No Module Installed Size: No Module Installed Size: No Module Installed […]

第一启动脚本的各种平台

我想为CentOS 5/6和Ubuntu 12.04 / 12.10 / 14.04制作firstboot脚本。 如果可能的话,我想用一个方法触发这个脚本运行。 从我可以告诉,这排除了chkconfig , firstboot文件,新兴工作等,我有点混淆了大量的术语/技术。 是否有一种方法可以用于所有这些平台,在第一次启动时运行一个小脚本(在其他服务正常之后)?

安装新的OpenVZ内核时出错

在OpenVZ服务器上更新内核时似乎有错误 当运行“百胜更新”即时获取下面 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.steadfast.net * extras: mirror.steadfast.net * openvz-kernel-rhel6: download.openvz.org * openvz-utils: download.openvz.org * soluslabs: mirror.us1.soluslabs.net * updates: mirror.steadfast.net Setting up Update Process Resolving Dependencies –> Running transaction check —> Package kernel.x86_64 0:2.6.32-431.20.3.el6 will be installed –> Processing Dependency: kernel-firmware >= 2.6.32-431.20.3.el6 for package: kernel- […]

删除具有2个以太网端口的服务器上的专用networking网关 – 为什么

我有一个服务器与2个以太网端口,使用一个端口(eth0)专用局域网,并从ISP的公共IP在第二个端口(eth1)。 我有它的工作,但我想知道为什么我必须从私人networking中删除网关,以使私人局域网和公共networking都工作的原因。 谢谢你的帮助。

无法更改默认根位置

我有以下configuration文件: # /etc/nginx/nginx.conif # vim: ts=4 user nginx; worker_processes 1; error_log /var/log/nginx/error.log; #error_log /var/log/nginx/error.log notice; #error_log /var/log/nginx/error.log info; 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 0; keepalive_timeout […]

KVM:如何在运行时更新核心/特效的数量

标题说明了一切。 如何在不需要重启的情况下增加虚拟机的核心数量。 奇怪,我没有find任何文件如何做到这一点…

无法在centos上安装mysql-devel

每次我尝试运行sudo yum install mysql-devel 我遇到了以下错误: Setting up Install Process Resolving Dependencies –> Running transaction check —> Package mysql-devel.i686 0:5.1.73-3.el6_5 will be installed –> Processing Dependency: mysql = 5.1.73-3.el6_5 for package: mysql-devel-5.1.73-3.el6_5.i686 –> Finished Dependency Resolution Error: Package: mysql-devel-5.1.73-3.el6_5.i686 (updates) Requires: mysql = 5.1.73-3.el6_5 Installed: mysql-5.5.28-1.el6.i686 (@CentALT) mysql = 5.5.28-1.el6 Available: mysql-5.1.71-1.el6.i686 (base) mysql = 5.1.71-1.el6 […]

重新部署EXT3配额文件

是否有可能将一个文件系统的配额文件重定位到不同的文件系统(例如使用符号链接)? 理由:用配额testingSSD,我担心持续写入配额文件可能会导致早期磨损。