Articles of centos6

在CentOS 6.6服务器上启用PHP的SOAP

我正在尝试在我的服务器上启用SOAP。 肥皂已安装,但不显示在php_info。 PHP版本5.4.39 系统信息:Linux ip-xxx-xxx-xxx-xxx.secureserver.net 2.6.32-042stab106.4#1 SMP Fri Mar 27 15:19:28 MSK 2015 x86_64 configuration命令: './configure' '–disable-fileinfo' '–enable-bcmath' '–enable-calendar' '–enable-ftp' '–enable-gd-native-ttf' '–enable-libxml' '–enable-pdo=shared' '–enable-sockets' '–prefix=/usr/local' '–with-apxs2=/usr/local/apache/bin/apxs' '–with-curl=/opt/curlssl/' '–with-freetype-dir=/usr' '–with-gd' '–with-imap=/opt/php_with_imap_client/' '–with-imap-ssl=/usr' '–with-jpeg-dir=/usr' '–with-kerberos' '–with-libdir=lib64' '–with-libxml-dir=/opt/xml2/' '–with-mcrypt=/opt/libmcrypt/' '–with-mysql=/usr' '–with-mysql-sock=/var/lib/mysql/mysql.sock' '–with-openssl=/usr' '–with-openssl-dir=/usr' '–with-pcre-regex=/opt/pcre' '–with-pdo-mysql=shared' '–with-pdo-sqlite=shared' '–with-pic' '–with-png-dir=/usr' '–with-xpm-dir=/usr' '–with-zlib' '–with-zlib-dir=/usr' 加载的configuration文件:/usr/local/lib/php.ini 其中包含:[肥皂] ;extension=soap.so ; Enable soap extension […]

如何在centOS上禁用虚拟IP

我有5个Centos机器,其中2个具有虚拟IP启用。 这对一些特别是MapR的应用程序造成了问题。 在这里我需要禁用虚拟IP地址。 我有一个下面的命令temprory解决scheme: sudo ifconfig virbr0 192.168.122.1 netmask 255.255.255.0 down 它适用于会话,但是当我重新启动系统,它会自动起床,我找不到任何ifcfg-virbr0networking脚本条目我怎么能在启动时禁用它。

wget和curl失败,parsing某个域

我的服务器是具有Cpanel的CENTOS 6.8 i686 virtuozzo 我有问题使用wget / curl / traceroute解决某些域 当我使用wget我得到 wget https://www.alexbank.com/ABOUTUS/OurBank –2016-11-27 23:31:09– https://www.alexbank.com/ABOUTUS/OurBank Resolving www.alexbank.com… 182.157.xxx.xxx Connecting to www.alexbank.com|182.157.xxx.xxx|:443… connected. ERROR: no certificate subject alternative name matches requested host name “www.alexbank.com”. To connect to www.alexbank.com insecurely, use '–no-check-certificate'. *************** wget –no-check-certificate https://www.alexbank.com/ABOUTUS/OurBank' –2016-11-27 23:49:31– https://www.alexbank.com/ABOUTUS/OurBank Resolving www.alexbank.com… 182.157.xxx.xxx Connecting to www.alexbank.com|182.157.xxx.xxx|:443… connected. 问题是182.157.xxx.xxx是我的服务器IP不www。 […]

安装成功后无法启动Mariadb

我正在使用CentOS 6.8,并希望安装mariadb 5.5。 我遵循https://mariadb.com/kb/en/mariadb/yum/中的所有步骤 vi /etc/yum.repos.d/MariaDB.repo 然后插入 # MariaDB 5.5 CentOS repository list – created 2017-01-05 04:37 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/5.5/centos6-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 然后运行 sudo yum install MariaDB-server MariaDB-client 安装成功后,我想启动数据库 /etc/init.d/mysql start 不幸的是,这个错误即将到来: Starting MySQL.170105 08:42:42 mysqld_safe Logging to '/var/lib/mysql/test.mcc.edu.om.err'. 170105 08:42:42 mysqld_safe Starting mysqld daemon with databases from […]

Linux CentOS 6.0 – auto_eth0不能连接

我刚刚从Live CD安装了CentOS 6.0 i386。 但是,现在当我尝试运行更新时,我没有互联网连接。 我被告知运行“system-config-services”并禁用“NetworkManager”并启用“Network” 但它仍然不起作用。 我configuration了一切设置为手动不自动。 192.168.1.107为ip 255.255.255.0作为网关掩码,192.168.1.1作为网关和dns。 你有什么build议?

在Centos上安装Munin 6

我在Centos 6上安装munin时遇到了问题。这似乎是Perl部分之间的冲突。 我认为Perl的版本在Centos 6(v5.10.1)上更新, 当通过yum安装munin时,我得到了与perl依赖关系有关的错误,如下所示。 我不是一个很大的专业知识,在百胜或rpm来解决这个问题。 Munin文档尚未讨论安装到Centos 6.0 Error: Package: munin-node-1.4.2-0.rpl1.el5.noarch (/munin-node-1.4.2-0.rpl1.el5.noarch) Requires: perl(Net::SNMP) Error: Package: munin-1.4.2-0.rpl1.el5.noarch (/munin-1.4.2-0.rpl1.el5.noarch) Requires: bitstream-vera-fonts Error: Package: munin-1.4.2-0.rpl1.el5.noarch (/munin-1.4.2-0.rpl1.el5.noarch) Requires: perl(HTML::Template) Error: Package: munin-1.4.2-0.rpl1.el5.noarch (/munin-1.4.2-0.rpl1.el5.noarch) Requires: perl-Net-SNMP Error: Package: munin-common-1.4.2-0.rpl1.el5.noarch (/munin-common-1.4.2-0.rpl1.el5.noarch) Requires: perl(:MODULE_COMPAT_5.8.8) Error: Package: munin-node-1.4.2-0.rpl1.el5.noarch (/munin-node-1.4.2-0.rpl1.el5.noarch) Requires: perl(DBI) Error: Package: munin-1.4.2-0.rpl1.el5.noarch (/munin-1.4.2-0.rpl1.el5.noarch) Requires: perl(Log::Log4perl) Error: Package: munin-node-1.4.2-0.rpl1.el5.noarch (/munin-node-1.4.2-0.rpl1.el5.noarch) Requires: […]

如果服务器空闲,从外部连接到CentOS服务器将失败

CentOS 6服务器的networking连接出现了一个奇怪的问题:从局域网一切正常(SSH,httpd),但外部连接失败,如果服务器已经空闲了几分钟。 在通过局域网发送另一台计算机的ping之后,只要服务器没有空闲,外部连接就会工作。 几分钟后,服务器再次停止响应。 路由器configuration/端口转发应该是正常的(连接到同一个networking中的nas从未失败),并且通过lan没有任何问题。 有谁知道我可以错过导致这种行为的configuration?

CentOS6的系统configuration包缺less?

我刚刚用gnome安装了CentOS 6,但graphics软件包pipe理器不再显示在那里。 我已经尝试使用Yum安装system-config-packages和pirut,但都找不到任何东西。 我已经检查了软件包列表,看起来并不在那里。 我看了这个清单 ,并不意味着CentOS6有一个RPM。 然而,软件包pipe理器在安装过程中是可用的。 我不记得看到一个选项将其包含在安装程序中,但这并不是说它不在那里 – 我只是不喜欢重新安装操作系统,只是为了检查它是否存在。 这个包是否被另外一个包所取代了,或者被完全删除了? 如果是这样,我还可以尝试其他graphics包pipe理器吗? 我通常使用Yum,但是现在我正在用CentOS6进行实验,只需要快速地显示可用的软件包即可。

如何在Centos 6上将networking接口设置为“受信任”(有多个接口)

我有一个有两个有线networking接口的盒子。 在Centos 5上,我可以在控制台中运行setup命令并设置哪个接口是可信的,哪些不在防火墙configuration中(例如eth1 trusted,eth0 – 不是)。 几个小时前,我已经安装了Centos 6而不是5.当我通过setup命令进入相同的防火墙configuration时,configuration界面有点不同,我不能设置每个接口的“信任”。 只有eth+ (我认为这两个接口都是可信的)。 所以我的问题是:如何设置哪个接口是受信任的,哪些不在Centos 6上? 提前致谢! UPDATE 根据quanta的build议,我在控制台中input了两个命令,但没有帮助。 然后,我试图service iptables save和service iptables restart ,也没有改变。 然后我做了以下几点: 我创build了一个文件/etc/sysconfig/iptables_eth1_trusted与以下内容(eth1是我的LAN接口,是的,当我尝试在控制台中的量子的命令我也使用eth1): -A INPUT -i eth1 -j ACCEPT -A OUTPUT -o eth1 -j ACCEPT 然后,我在控制台中启动了setup ,在“防火墙configuration”中,我进入“自定义规则”,并添加了以下规则: Protocol Type: ipv4 Firewall Table: filter File: /etc/sysconfig/iptables_eth1_trusted 我救了它,它按我的意思工作。 我对Linux非常陌生,我的iptables知识很差,所以感谢quanta的规则,他们是正确的。

输出不同于id的组

我确信这是简单的,但我不能为了我的生活找出发生了什么事情。 我们正在使用NIS(没有机会迁移到LDAP),由于某些原因,这些组没有正确显示。 [scott.adair@tor-admin01 ~]$ groups pfa-admin 但是,当我根据我的用户名进行search时,它会正确返回 [scott.adair@tor-admin01 ~]$ groups scott.adair scott.adair : pfa-admin it-admin id命令也是如此。 这对于本地用户(root)似乎工作正常,但对于我的任何一个NIS帐户都没有问题。 我可以使用newgrp命令切换到它的pipe理员组,但这似乎有点破解。 有任何想法吗?