我使用yum install bind-chroot bind-utils在Centos 6.5上yum install bind-chroot bind-utils 。 这不是我第一次这样做,通常这工作正常。 但是现在我在一些服务器上尝试了这一点,它根本不起作用。 当执行# service named start我得到这个错误: 启动named:命名configuration错误:none:0:open:/etc/named.conf:permission denied ls -l /etc/named.conf返回这个: -rw-R —–。 1根名为817 Dec 31 12:09 /etc/named.conf 我尝试了chmod 777 /etc/named.conf但在尝试启动named时仍然出现相同的错误。 任何想法发生了什么? 谢谢你的帮助。 编辑: sestatus返回这个: sestatus SELinux status: enabled SELinuxfs mount: /selinux Current mode: enforcing Mode from config file: enforcing Policy version: 24 Policy from config […]
我把Vsphere客户端的规定大小增加到32GB,我用gparted把VG调整到了32GB — Physical volume — PV Name /dev/sda2 VG Name vg_proxy PV Size 31.51 GiB / not usable 2.00 MiB Allocatable yes PE Size 4.00 MiB Total PE 8066 Free PE 3072 Allocated PE 4994 但我不确定如何调整LV的大小,而不是丢失数据。 — Logical volume — LV Path /dev/vg_proxy/lv_root LV Name lv_root VG Name vg_proxy LV UUID h9c0HO-xRQn-jX6q-4GGi-0nkt-2rnt-DNy3gR LV Write Access […]
服务器:红帽企业Linux服务器版本6.5(圣地亚哥) 使用openssh-server来允许sftp连接。 我试图限制用户到他们自己的个人主目录。 所以我修改/ etc / passwd设置用户“john”使用/bin/rbash而不是/bin/bash john:502:503::/home/john:/bin/rbash 如果我这样做,约翰不能通过SFTP连接:连接closures,只要他login(SFTP消息是Connection closed )。 如果我将bash设置为/ bin / bash,他的connexion可以正常工作,但是john可以使用cd遍历整个服务器文件系统。 你能解释我做错了什么,以限制用户通过SFTP连接到自己的目录?
networking具有固定的IPv4地址和自动获取的IPv6地址。 有没有人有一个想法如何设置? 非常感谢! 我没有使用NetworkManager。 以下是我的设置,但它不工作:( 的/ etc / SYSCONFIG /networking: NETWORKING=yes HOSTNAME=desk.myname.ca NETWORKING_IPV6=yes IPV6FORWARDING=yes IPV6_AUTOCONF=yes / etc / sysconfig / network-scripts / ifcfg-eth0: DEVICE=eth0 TYPE="Ethernet" UUID=29b0480a-83aa-4124-ab27-01dda940afv3 ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=none IPADDR=214.52.131.212 GATEWAY=214.52.137.1 NETMASK=255.255.255.0 DNS1=214.52.101.101 DNS2=214.52.101.100 NAME="System eth0" HWADDR=49:73:E6:CC:6A:26 IPV6INIT=yes IPV6_AUTOCONFIG=yes 我无法获得全局IPV6地址,如ifconfig的输出所示: eth0 Link encap:Ethernet HWaddr 49:73:E6:CC:6A:26 inet addr:214.52.131.212 Bcast:214.52.137.255 Mask:255.255.255.0 inet6 addr: fe80::4637:e6ff:fecc:6a26/64 Scope:Link UP BROADCAST […]
我正在尝试使用Logstash,Elasticsearch和Kibana设置集中式日志logging,并且无法将日志logging到我的日志服务器。 Logstash正在侦听TCP 5000,并正在成功从我的一台服务器接收日志,但其余部分却没有。 我可以telnet到5000上的日志服务器和Logstash正在拿起消息,所以我相信这些问题是rsyslog发送日志。 我在CentOS 6.5上,并将以下内容添加到/etc/rsyslog.conf中: $WorkDirectory /var/lib/rsyslog # where to place spool files *.* @@logs.<domain_removed>.com:5000 rsyslog在进行更改后没有任何错误地重新启动,但Logstash没有收到任何信息。 假脱机目录是空的,所以我不相信他们发送失败。 May 16 20:46:10 rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x- pid="5097" x-info="http://www.rsyslog.com"] exiting on signal 15. May 16 20:46:10 kernel: imklog 5.8.10, log source = /proc/kmsg started. May 16 20:46:10 rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="3556" x-info="http://www.rsyslog.com"] start 关于如何追踪错误的任何想法? 编辑:这个问题是由SELinux造成的
我正在尝试几天,在Centos 6 64bit上安装php-mcrypt,但是我得到这个错误 [root@cimpan tmp]# yum install php-mcrypt Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mi.mirror.garr.it * epel: mirror.switch.ch * extras: mi.mirror.garr.it * rpmforge: mirror.crazynetwork.it * updates: mi.mirror.garr.it Setting up Install Process Resolving Dependencies –> Running transaction check —> Package php-mcrypt.x86_64 0:5.3.3-3.el6 will be installed –> Processing Dependency: php(zend-abi) = 20090626 […]
我有一台CentOS 6.5服务器运行Postfix 2.6x(默认发行版),绑定了五个公共IPv4 IP地址。 每个IP分别设置DNS和rDNS。 每个在不同的域使用不同的主机名。 我有五个Postfix实例,一个绑定到每个IP,就像这个例子: 192.168.34.104 red.example.com / etc / postfix 192.168.36.48 green.example.net / etc / postfix-green 192.168.36.49 pink.example.org / etc / postfix-pink orange.example.info / etc / postfix-orange 192.168.36.51 blue.example.us / etc / postfix-blue 我已经通过telnet到端口25testing了每个IP。使用正确的主机名正确回答和横幅。 所有这些实例都收到电子邮件,没有任何问题,并发送到正确的位置。 这个设置,减去最后的实例,已经存在了几年,并且工作。 但是我从来没有打算设置出站电子邮件来通过任何主要的实例, 没有必要。 现在,我需要从blue.example.us发送实际上离开该接口和IP的电子邮件,以便Received头文件显示blue.example.us作为发送邮件主机,以便SPF和DKIMvalidation等。 从blue.example.com发送的电子邮件是由服务器上的单个shell帐户(account5)发送的反馈循环,该帐户专用于发送此电子邮件。 该帐号接收来自其他networking服务器的反馈电子邮件,保存这些电子邮件的正文,然后生成一个新的出站电子邮件标题,追加保存的主体,并发送电子邮件。 它通过将每封电子邮件发送到sendmail -oi -t来sendmail -oi -t 。 我们这样做是为了掩盖初始服务器的身份。 处理这些电子邮件的procmail脚本正常工作。 但是,我无法将此帐户configuration为通过适当的Postfix实例/ IP /接口发送电子邮件。 […]
我正在build立一个标准的LEMP堆栈。 我目前的设置给了我以下错误: 502错误的网关 这是我的服务器上当前安装的内容: 这里是我创build/更新的configuration到目前为止,有人可以看看下面的内容,看看错误可能是哪里? 我已经检查了我的日志,里面没有任何内容( http://i.imgur.com/iRq3ksb.png )。 我在/var/log/php-fpm/error.log文件中看到了以下内容。 sidenote:nginx和php-fpm都已经被configuration为在一个名为www-data的本地帐户下运行,并且以下文件夹在服务器上退出 nginx.conf 全局nginxconfiguration user www-data; worker_processes 6; worker_rlimit_nofile 100000; error_log /var/log/nginx/error.log crit; pid /var/run/nginx.pid; events { worker_connections 2048; use epoll; multi_accept on; } http { include /etc/nginx/mime.types; default_type application/octet-stream; # cache informations about FDs, frequently accessed files can boost performance open_file_cache max=200000 inactive=20s; open_file_cache_valid 30s; open_file_cache_min_uses […]
我需要在运行Percona 5.5的CentOS 6.5上安装mysql-devel软件包(已安装并正在运行)。 当我尝试像这样安装devel软件包时: yum –enablerepo=remi install mysql-devel 我得到以下错误: Error: Package: mysql-devel-5.5.37-1.el6.remi.i686 (remi) Requires: real-mysql-libs(x86-32) = 5.5.37-1.el6.remi Available: mysql-libs-5.5.36-1.el6.remi.i686 (remi) real-mysql-libs(x86-32) = 5.5.36-1.el6.remi Available: mysql-libs-5.5.37-1.el6.remi.i686 (remi) real-mysql-libs(x86-32) = 5.5.37-1.el6.remi Error: Package: mysql-5.5.37-1.el6.remi.i686 (remi) Requires: real-mysql-libs(x86-32) = 5.5.37-1.el6.remi Available: mysql-libs-5.5.36-1.el6.remi.i686 (remi) real-mysql-libs(x86-32) = 5.5.36-1.el6.remi Available: mysql-libs-5.5.37-1.el6.remi.i686 (remi) real-mysql-libs(x86-32) = 5.5.37-1.el6.remi Error: mysql conflicts with Percona-Server-client-55-5.5.37-rel35.0.el6.i686 以下是我的服务器上目前安装的内容: […]
我通过yum安装了httpd v2.2.15和php v5.5.13 。 当我尝试访问我的网站时,我首先注意到了这个问题,并显示了PHP代码。 然后我发现/etc/httpd/modules没有php模块,所以LoadModule失败。 我怎样才能将php模块添加到Apache? PHP的网站是指从源头上构build它。 不过,我需要通过RPMpipe理这个。 有没有其他方法可以做到这一点? 这里是我安装的httpd RPMs: httpd-tools-2.2.15-30.el6.centos.x86_64 httpd-2.2.15-30.el6.centos.x86_64 httpd-devel-2.2.15-30.el6.centos.x86_64 这里是我安装的PHP RPMs: php-xml-5.5.13-2.el6.remi.x86_64 php-pecl-jsonc-1.3.5-1.el6.remi.5.5.x86_64 php-gd-5.5.13-2.el6.remi.x86_64 php-pecl-memcached-2.2.0-2.el6.remi.5.5.x86_64 php-mbstring-5.5.13-2.el6.remi.x86_64 php-process-5.5.13-2.el6.remi.x86_64 php-cli-5.5.13-2.el6.remi.x86_64 php-common-5.5.13-2.el6.remi.x86_64 php-pecl-zip-1.12.4-1.el6.remi.5.5.x86_64 php-pecl-msgpack-0.5.5-4.el6.remi.1.x86_64 php-pgsql-5.5.13-2.el6.remi.x86_64 php-pecl-sqlite-2.0.0-0.4.svn332053.el6.remi.5.5.x86_64 php-mysqlnd-5.5.13-2.el6.remi.x86_64 php-pecl-apcu-4.0.4-1.el6.remi.5.5.x86_64 php-pecl-memcache-3.0.8-2.el6.remi.5.5.x86_64 php-pear-1.9.4-27.el6.remi.noarch php-pdo-5.5.13-2.el6.remi.x86_64 php-pecl-igbinary-1.1.2-0.5.git3b8ab7e.el6.remi.1.x86_64 php-mcrypt-5.5.13-2.el6.remi.x86_64 php-pecl-mongo-1.5.2-1.el6.remi.5.5.x86_64