Articles of centos6.5

SSH在CentOS 6.5上不能正常工作(PAM authtentication错误)

一个名为chcsouza的用户试图从service0主机访问service1主机,但收到消息: 连接closures了172.23.0.4 172.23.0.4是service1的IP 老用户可以ssh到这个主机。 新用户不能。 使用冗长,他得到了这个答复 chcsouza@service0:~$ ssh -vvv service1 OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to service1 [172.23.0.4] port 22. debug1: Connection established. debug1: identity file /home/chcsouza/.ssh/identity type 0 debug1: identity file /home/chcsouza/.ssh/identity-cert type -1 debug3: Not a […]

在nodejs中远程连接mysql数据库

我想连接另一个服务器数据库。 例如代码是在ABC服务器,我想另一个服务器是XYZ服务器的数据库。 我已经做了。 但得到错误 错误:ER_BAD_DB_ERROR:未知的数据库'CP',我有一个数据库作为CP 交互的服务器代码是 var db_config = {“domain”:“http:// **** /”,“hostname”:“****”,“port”:3306,“user”:“*****”,“密码“:”****“,”数据库“:”cp“} var connection=mysql.createConnection(db_config); connection.connect(function(err,s){ if (err){ console.log("Error"+err); } else{ console.log("db connected"); } }); 当我删除数据库和凭据是正确的,我可以连接服务器。 如果我使用information_schema作为数据库的名称也分贝正在正确连接。 但是当我使用其他数据库我仍然面临着错误 错误:ER_BAD_DB_ERROR:未知的数据库'cp'我已经在特定的服务器上进行了远程访问的设置,并在php代码中检查,其在那里的工作很好。 请帮助忙碌的工作。

Riverbed Stringray TrafficManger – API调用Autoscaling

我正在寻求build议,编写一个bash脚本,把我们在AWS中启动的新服务器,并将它们添加到我们的黄貂鱼。 我们正在AWS中创build一个新的环境,这个环境将会是AWS自动调整组中的muilt-AZ,因为我们正在考虑失败。 因为我们将在这些系统的前面使用Stringrays进行负载均衡,WAF,URL重写等等,因为我们启动了一台新机器,我希望能够在Stingray上添加IP地址。 我们使用Cloudforamtion和Puppet作为这个新系统的一部分,这个想法是让Puppet执行一个bash脚本来添加它们。 如果有人这样做了,并指出我在正确的方向,将是最有帮助的。 谢谢。

匿名用户不能从ftp中删除文件

我在/ var / ftp中创build了一个名为uploads的新目录 这个目录的所有者和组是ftp 权限设置为777。 我的vsftpd.conf文件的内容 anonymous_enable=YES local_enable=YES write_enable=YES local_umask=022 anon_upload_enable=YES anon_mkdir_write_enable=YES xferlog_enable=YES xferlog_file=/var/log/xferlog xferlog_std_format=YES nopriv_user=ftpsecure ascii_upload_enable=YES ascii_download_enable=YES listen=YES pam_service_name=vsftpd userlist_enable=YES tcp_wrappers=YES SELINUX权限是 – allow_ftpd_anon_write –> on allow_ftpd_full_access –> on 我可以在目录中上传文件,但不能通过FTP删除文件 任何人都可以build议我该怎么做?

用基础包replace@remi包

在安装iRedMail时,我碰到了一些旧的软件包由Remi回购安装或更新的问题。 我现在禁用了epel和remi repos,运行yum update all ,当我尝试安装iRedMail时,仍然出现这个错误。 Error: Package: php-pecl-apc-3.1.9-2.el6.x86_64 (base) Requires: php(zend-abi) = 20090626 Installed: php-common-5.4.30-1.el6.remi.x86_64 (@remi) php(zend-abi) = 20100525-x86-64 Available: php-common-5.3.3-26.el6.x86_64 (base) php(zend-abi) = 20090626 Available: php-common-5.3.3-27.el6_5.x86_64 (updates) php(zend-abi) = 20090626 Error: Package: php-ldap-5.3.3-27.el6_5.x86_64 (updates) Requires: php-common(x86-64) = 5.3.3-27.el6_5 Installed: php-common-5.4.30-1.el6.remi.x86_64 (@remi) php-common(x86-64) = 5.4.30-1.el6.remi Available: php-common-5.3.3-26.el6.x86_64 (base) php-common(x86-64) = 5.3.3-26.el6 Available: php-common-5.3.3-27.el6_5.x86_64 (updates) […]

在Microsoft Azure上,由OpenLogic对CentOS的Yum更新失败

今天早些时候,我从OpenLogic提供的图像中新build了一个Azure中的CentOS。 当我尝试用yum update来更新系统时,我得到: Loaded plugins: security http://olcentgbl.trafficmanager.net/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 – "Couldn't resolve host 'olcentgbl.trafficmanager.net'" Trying other mirror. http://olcentgbl.trafficmanager.net/centos/6/extras/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 – "Couldn't resolve host 'olcentgbl.trafficmanager.net'" Trying other mirror. ..还有两个… Setting up Update Process No Packages marked for Update 主机名已更改或暂时不可用? 关心Niklas

PHP – CentOS的OpenSSL错误

我目前在CentOS 6.5服务器上遇到OpenSSL问题。 它直到星期天运行完全正常。 我检查了error_log,我在日志中看到这个错误 PHP警告:PHP启动:无法加载dynamic库'/usr/lib64/php/modules/openssl.so' – /usr/lib64/php/modules/openssl.so:无法打开共享目标文件:没有这样的文件或目录在第0行的未知 我试过phpinfo(); 我发现openssl启用我试图php -m 它返回 [PHP模块] BZ2 日历 核心 CTYPE curl date DOM 额日格 EXIF FileInfo的 过滤 FTP GD gettext的 GMP 哈希 的iconv IB的 JSON 的libxml MBSTRING mcrypt的 内存caching MySQL的 mysqli的 OpenSSL的 了pcntl PCRE PDO PDO_Firebird PDO_MYSQL PDO_SQLITE 药业 pspell 的ReadLine reflection 会议 shmop SimpleXML的 SNMP sockets SPL sqlite3的 […]

由于selinux,Varnish 4服务将无法启动

我已经在我的新的centos 6.5盒子上安装了清漆4。 我已经激活EPEL回购从http://repo.varnish-cache.org/redhat/varnish-4.0/安装清漆安装和configuration我的default.vcl后,我无法启动服务清漆,我总是得到/ var / log / audit / audit.log告诉我,selinux阻止varnishd启动: type=AVC msg=audit(1412184576.830:242): avc: denied { getattr } for pid=4623 comm="varnishd" path="/etc/hosts" dev=vda1 ino=17248 scontext=unconfined_u:system_r:varnishd_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file type=SYSCALL msg=audit(1412184576.830:242): arch=c000003e syscall=5 success=no exit=-13 a0=3 a1=7fff399e8290 a2=7fff399e8290 a3=0 items=0 ppid=4620 pid=4623 auid=0 uid=498 gid=497 euid=498 suid=498 fsuid=498 egid=497 sgid=497 fsgid=497 tty=pts0 ses=1 comm="varnishd" exe="/usr/sbin/varnishd" subj=unconfined_u:system_r:varnishd_t:s0 key=(null) 我试图使用audit2allow,但除了安装产生的模块,我得到相同的错误…

厨师冻结在stream浪的centos框

我有一个centos-6.5盒子。 奇怪的是,当我尝试要求厨师提供食物时,它会冻结。 下面是我尝试去vagrant provision –debug时候的一个例子 – 试试吧 [2014-10-10T20:33:33+00:00] INFO: Processing remote_file[/etc/yum.repos.d/devtools.repo] action create (vidya_client::default line 7) DEBUG ssh: stdout: [2014-10-10T20:33:34+00:00] INFO: Processing yum_package[devtoolset-1.0-gcc-c++.x86_64] action install (vidya_client::default line 15) INFO interface: info: [2014-10-10T20:33:34+00:00] INFO: Processing yum_package[devtoolset-1.0-gcc-c++.x86_64] action install (vidya_client::default line 15) [2014-10-10T20:33:34+00:00] INFO: Processing yum_package[devtoolset-1.0-gcc-c++.x86_64] action install (vidya_client::default line 15) DEBUG ssh: stdout: [2014-10-10T20:33:34+00:00] INFO: yum_package[devtoolset-1.0-gcc-c++.x86_64] […]

允许sudo用户从CentOS GUI安装软件包

我已经在CentOS 6.5上安装了GUI yum groupinstall basic-desktop desktop-platform x11 fonts 但现在当我尝试使用GUI包pipe理器(添加/删除软件)来安装软件包时,它要求我inputroot密码,并且不接受sudo用户密码。 如何治愈这种行为? 我可以用普通的方式sudo yum install 。