Articles of centos

与Cobbler服务器同步Ubuntu存储库失败

我正试图将Ubuntu可靠的回购同步到我的鞋匠服务器。 问题是,由于某些原因,连接在工作的部分似乎不稳定。此外,它无法继续使用其中一个存储库。 看来我没有任何钥匙,但我也无法find如何使他们为CentOS。 机:CentOS6.6 补鞋匠版本:2.6.7 只要我了解更多信息,我一定会更新。 这是我的错误: [root@cobbler ~]# cobbler reposync –only=Ubuntu-x86_64 task started: 2015-02-20_003405_reposync task started (id=Reposync, time=Fri Feb 20 00:34:05 2015) hello, reposync run, reposync, run! running: /usr/bin/debmirror –nocleanup –verbose –ignore-release-gpg –method=http –host=archive.ubuntu.com –root=/ubuntu –dist=trusty,trusty-updates,trusty-security –section=main,universe /var/www/cobbler/repo_mirror/Ubuntu-x86_64 –nosource -a amd64 received on stdout: Mirroring to /var/www/cobbler/repo_mirror/Ubuntu-x86_64 from http://archive.ubuntu.com/ubuntu/ Arches: amd64 Dists: trusty,trusty-updates,trusty-security Sections: […]

升级到PHP 5.6.5后PHP依赖性问题

我试图安装Laravel,这需要我升级到PHP 5.6.5。 这是一个成功和PHP运行良好,但即时通讯有2个依赖性问题,当我尝试安装其他包laravel需要如PHP的mbstring yum install php-mbstring … Packages skipped because of dependency problems: php-common-5.3.3-40.el6_6.x86_64 from updates php-mbstring-5.3.3-40.el6_6.x86_64 from updates 我以为这意味着PHP常见的是过时的,因为它是5.3.3所以我试图更新到最新版本,并得到这个消息。 yum install php56w-common Package php56w-common-5.6.5-1.w6.x86_64 already installed and latest version Nothing to do 我仍然得到相同的错误。 我试图删除旧的5.3.3版本的PHP普通,但它没有安装。 我的服务器正在运行centos 6.6 更新使用指南中的回购我使用的是https://iamtrishulpani.wordpress.com/2014/10/21/installing-and-using-laravel-4-2-on-centos-6-5/ 我能够通过这个错误,但现在它告诉我,它不能findXZ压缩

mod_security根本不起作用

我试图使mod_security工作,我在网上search了很多,并按照本教程来configurationmod_security(我所有的configuration文件都与本教程相同),当我运行httpd -M | grep -Ei '(evasive|security)' httpd -M | grep -Ei '(evasive|security)'输出 security2_module (shared) evasive20_module (shared) 所以扩展正在被加载,但它并没有阻塞任何东西,既没有在日志文件上写任何东西,我甚至将SecDebugLogLevel设置为9,并且debugging日志仍然是空白的。 我试图加载模块之前,其他人,在中间,几次重新启动Apache,什么都没有。 我正在使用亚马逊Linux(就像CentOS)和Apache 2.4 Prefork。

鱿鱼分割错误?

目前,我正在使用我们的一台生产服务器解决问题。 这个问题与鱿鱼无法正常运行有关。 当我尝试运行service squid start/stop ,它会引发错误: 2015/03/11 14:24:11| Processing Configuration File: /etc/squid/squid.conf (depth 0) 做service squid restart ,抛出这样的错误: Stopping squid: /etc/init.d/squid: line 99: 13665 Segmentation fault (core dumped) $SQUID -k check -f $SQUID_CONF >> /var/log/squid/squid.out 2>&1 [FAILED] Starting squid: [FAILED] 2015/03/11 14:24:41| Processing Configuration File: /etc/squid/squid.conf (depth 0 任何人遇到同样的问题? 我检查了日志,没有任何东西写在它上面。 我正在使用CentOS 6.5 64。 我有这个/etc/squid/squid.conf # […]

`apt-get install -y packagename –no-upgrade`的等效yum命令

我在我的Ubuntu服务器apt-get install -y packagename –no-upgrade的shell脚本中使用了这个命令。 如果它不存在,它将安装这个包。 它不会升级包。 现在我想把它迁移到一个centos机器上。 我无法find相当于yum中的–no-upgrade任何开关。 任何帮助?

MySQL PID错误

在尝试将MySQL服务器时区更改为CDT以与Centos系统时间匹配时,出现了一些问题。 我编辑了以root身份login到SSH的vim中的/etc/ in中的my.conf ,并将其保存。 在service mysql restart ,我得到了以下错误: root@server [~]# service mysql restart ERROR! MySQL server PID file could not be found! Starting MySQL. ERROR! The server quit without updating PID file (/var/lib/mysql/server.find-minecraft-servers.com.pid). root@server [~]# 这不断循环。 我试过find那个pid文件 – 这不是显卡。 我试过service mysql status ,它提到/ var / lock / subsys / mysql中的locking文件 – 我删除这个,没有任何改变。 请帮我一下 my.conf的内容是: [mysqld] […]

NameVirtualHost *:80和443在centos上没有虚拟主机

由于我添加了IP到我的服务器,我有很多问题,当启动apache 。 我总是有这些错误如下: [warn] NameVirtualHost *:443 has no VirtualHosts [warn] NameVirtualHost *:80 has no VirtualHosts 有时它会阻止apache启动,有时不会启动 我的conf: 操作系统:CentOS 6.6 Apache:2.2.15 我的httpd.conf : NameVirtualHost *:80 NameVirtualHost *:443 <VirtualHost *:80> ServerName www.domain.com …. </VirtualHost> #more than 500 others <VirtualHost *:80> for each domain

systemctl在安装包之后在启动/启用时抛出错误

在努力locking一个新的Centos框我正在build设我正在安装iptables。 我希望能够把这个脚本,所以我可以做到这一点的其他箱子,但我得到一些奇怪的错误,回滚需要重新启动? 用。安装 yum install iptables 这工作正常,但在重新启动之前: [root@ip-10-0-0-132 ~]# systemctl start iptables Failed to issue method call: Unit iptables.service failed to load: No such file or directory. [root@ip-10-0-0-132 ~]# systemctl enable iptables Failed to issue method call: Access denied [root@ip-10-0-0-132 ~]# 之后 [root@ip-10-0-0-132 ~]# systemctl enable iptables ln -s '/usr/lib/systemd/system/iptables.service' '/etc/systemd/system/basic.target.wants/iptables.service' [root@ip-10-0-0-132 ~]# systemctl start […]

在CentOS 7下Nginx下没有WordPress的写入权限

我有一台运行Nginx的CentOS 7机器,用户是“nginx”(在CentOS中是默认的)。 我已经安装了Wordpress,这是完美的工作,我已经给wordpress文件夹和子文件夹(775)中的nginx用户的wrtite权限,但仍然会得到权限错误: 无法创build目录wp-content / uploads / 2015/05 我再次检查哪个用户正在运行nginx工作进程,它是nginx。 这一定是我错过的小事。 有人能帮我吗? 编辑: 我在/var/log/nginx/error.log中注意到了这一点: 2015/05/03 20:42:41 [error] 23652#0:* 1在stderr中发送了FastCGI:“无法打开主脚本:/usr/share/nginx/html/index.php(没有这样的文件或目录)当读取来自上游的响应报头时,客户端:XXX.XXX.XXX.A,服务器:XXX.XXX.XXX.B,请求:“GET / HTTP / 1.1”,上游:“fastcgi:// unix:/ var /运行/ php-fpm / php-fpm.sock:“,主机:”XXX.XXX.XXX.B“ 2015/05/03 20:44:18 [error] 23652#0:* 3在stderr中发送了FastCGI:“无法打开主脚本:/usr/share/nginx/html/wp-admin/admin-ajax.php没有这样的文件或目录)“,而从上游读取响应头,客户端:XXX.XXX.XXX.A,服务器:XXX.XXX.XXX.B,请求:”POST /wp-admin/admin-ajax.php HTTP / 1.1“,上游:”fastcgi:// unix:/var/run/php-fpm/php-fpm.sock:“,主机:”XXX.XXX.XXX.B“,referrer:” http:// XXX。 XXX.XXX.B / wp-admin / “ 2015/05/03 21:02:54 [emerg] 23803#0:getpwnam(“http”)在/etc/nginx/nginx.conf中失败:6 编辑2 $ ps -elf|grep nginx 1 […]

更改CentOS的日志目录

操作系统写入其日志的默认目录是'/ var / log /',我想将该目录更改为另一个我创build的目录。 我怎样才能做到这一点? 注意: 我尝试在/etc/rsyslog.conf中将path(/ var / log / 。 )更改为(/ var / tmp_log / 。 ),创build了目标文件夹“/ tmp_log /”并重新启动了我的电脑,但它只是停止了写入新的日志。 然后尝试将原始文件从“/ var / log /”复制到“/ var / tmp_log /”,但它也不起作用。