我在一个centos 6.5(现在6.6)的机器上有一个非常好奇的问题。 在6月11日和10月21日之间的更新之后,麻烦开始了(包: http : //pastebin.com/gXvaycLL )。 十月份重新启动后,无法使用ssh在服务器上login。 客户端总是停止以下消息: ssh_exchange_identification:读取:通过对等方重置连接 我试图直接在服务器上login。 首先,我尝试使用控制台login。 input密码后,服务器通过说“密码不正确”拒绝。 在graphics模式下也是一样的。 但密码是正确的。 现在我find了一个解决办法:通过在bootmanager中追加selinux = 0来closuresselinux。 现在我能够login到服务器上的控制台。 此外,我无法login使用SSH(也使用本地主机)。 在此之后,我编辑/ etc / selinux / config并将SELINUX值从强制设置为允许以后禁用。 重新启动后,我无法login,即使我设置禁用。 login的唯一方法是设置selinux = 0。 现在我find了这个男的:rsyslog。 如果我禁用启动日志,一切都很好接受日志logging。 好奇的是:如果rsyslogd启动,所有其他服务,如Apache和MySQL工作正常。 这里是使用debug3的sshd日志的下半部分: […] debug1: Bind to port 22 on 0.0.0.0. Server listening on 0.0.0.0 port 22. debug2: fd 4 setting O_NONBLOCK debug1: Bind […]
最近在我的CentOS机器上遇到硬件问题。 电源,内存,主板和CPU更换后,我认为我已经解决了硬件问题。 但是,我相信我有一个networkingconfiguration问题导致SSH远程连接失败。 我使用我的原始帐户和密钥尝试了常规的ssh,并在服务器期待之后收到连接超时: debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP 。 从服务器本身用一个新的帐户: $ ssh -v -o PubkeyAuthentication=no chris@localhost Last login: … [chris@dev ~]$ 从局域网上的远程连接尝试远程SSH: chris::Internets|10 ~ $ ssh -v -o PubkeyAuthentication=no chris@pug OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 debug1: Reading configuration data /Users/chris/.ssh/config debug1: Reading configuration data /etc/ssh_config debug1: /etc/ssh_config line 20: Applying options for * debug1: /etc/ssh_config […]
我最近遇到了一个重启我的CentOS 6.6 VPS(在他们的DV Developer服务器上与Media Temple一起托pipe)的问题。 我发现几个月前我有一些内存泄漏, 因为我没有熟练的服务器pipe理员来解决这个问题,通过计划每周重新安排我的问题解决了。 事情一直很好,直到上周重启。 系统closures,但显然从来没有回来; 我需要login到我的Parallels Power Panel界面才能够重新启动服务器(只需点击“开始”button,它立即出现)。 这周同样的问题。 我尝试从SSH重新启动:同样的问题。 服务器closures,但永远不会回来。 不过,我可以从我的电源面板手动启动它。 我试过reboot和/sbin/shutdown -r now命令(我认为其中一个只是另一个的别名)。 在cron中,我正在使用/sbin/shutdown -r now 。 奇怪的是,如果我打开我的电源面板中的重启button,一切都完美。 我检查了这个类似的问题 ,但像另一位评论者所说,一旦系统开始closures,我没有控制台访问来尝试ps aux 。 我也在黑暗中进行了拍摄,并进行了yum update ,以确保一切都是最新的,并且仍然遇到问题。 如果有帮助,这里是我的/var/log/messages的相关部分: Dec 7 07:22:52 megangarwood init: console main process (790) killed by TERM signal Dec 7 07:22:52 megangarwood init: tty2 main process (793) killed […]
我试图在puppetlabs / apache模块的centos 6.5盒子上设置suPHP。 Apacheconfiguration file { "/var/www/vhosts": ensure => "directory", owner => "root", group => "root", mode => 755, } class { '::apache': require => File['/var/www/vhosts'], } include ::apache::mod::suphp Vhosts例子 apache::vhost { $site: port => '80', serveraliases => [ $root, "www.${site}", "development.${site}", "www.development.${site}", ], options => ['Indexes', 'FollowSymlinks'], suphp_engine => 'on', suphp_addhandler => 'x-httpd-suphp', […]
运行CentOS 6.5,一个全新的“最小”服务器安装,尝试使用LVM2精简池function。 安装的软件包是: lvm2(2.02.111)device-mapper-persistent-data-0.3.2-1.el6.x86_64 /etc/lvm/lvm.conf有 … thin_check_executable = "/usr/sbin/thin_check" thin_repair_executable = "/usr/sbin/thin_repair" … (是的,这些文件存在于文件系统中。) /var/log/boot.log中的错误消息是: Setting up Logical Volume Management: /usr/sbin/thin_check: execvp failed: No such file or directory Check of pool vg/pool failed (status:2). Manual repair required! /usr/sbin/thin_check: execvp failed: No such file or directory /usr/sbin/thin_check: execvp failed: No such file or directory 我不知道该怎么做。
MySQL 5.6社区服务器无法在CentOS 6上启动。 之前,我在CentOS 6上成功安装了mysql社区服务器(文件:mysql-community-release-el6-5.noarch.rpm),二进制源代码来自http://dev.mysql.com/downloads/repo/百胜餐饮 我在configuration/etc/my1.conf和启动脚本/etc/init.d/mysqld1里面做了一些修改,改变了数据,日志和pid文件的位置,请在下面find如下改动: file: /etc/my1.conf [mysqld] innodb_buffer_pool_size = 128M datadir=/opt/mysql/mysql1 socket=/opt/mysql/mysql1/mysql.sock symbolic-links=0 sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES [mysqld_safe] log-error=/opt/mysql/log/mysqld1.log pid-file=/opt/mysql/run/mysqld1.pid file: /etc/init.d/mysqld1 datadir="/opt/mysql/mysql1" socketfile="/opt/mysql/mysql1/mysql.sock" errlogfile="/opt/mysql/log/mysqld1.log" mypidfile="/opt/mysql/run/mysqld1.pid" defaultfile="/etc/my1.cnf" $exec –defaults-file="$defaultfile" \ –datadir="$datadir" –socket="$socketfile" \ –pid-file="$mypidfile" \ –basedir=/usr –user=mysql >/dev/null 2>&1 & 我在创业后总是失败 $ sudo service mysqld1 start [sudo] password for beepcast: 141230 10:38:57 mysqld_safe Logging to '/opt/mysql/log/mysqld1.log'. […]
环境:Centos 6.6 Samba 3.6.23-12.el6 我已成功将服务器连接到Active Directory域,并将其configuration为Samba文件服务器。 它工作正常,只要我重新启动,正常启动后,我必须重新启动winbind,否则没有人可以访问networking共享。 如果我尝试通过wbinfo -u访问服务器到Active Directory,我得不到任何结果,甚至错误。 重新启动winbind后,一切正常。 可能是什么问题呢? 更新 :解决scheme似乎是所有其他服务设置winbind的开始。 老实说我不知道,但是,给我一个解释,所以我保持警觉。
我们有3个环境testing开发和生产,每个有40多个Linux服务器。 所有这些环境都需要通过ADbuild立集中authentication。 我可以用什么来达到这个目标? AD- Windows server 2008 Linux版本 – CentOS 6.5 / 6.5 / 5.10 / 5.11 / 7.01 你可以指导一下,可以使用厨师服务器通过AD for Linux服务器推出集中authentication来利用自动化。 任何高层次的步骤来实现?
好吧,所以我configuration了我的centos 6机器上的pam_mount,就像我在7和5机器上所做的一样。 但是,当我login本地或通过SSH,pam_mount无法安装我的主目录。 当我用本地用户login,并su到需要hmoe的用户安装pam_mount工作正常,并安装主目录。 我得到的错误,当我ssh或从控制台login在/var/log/messages : Feb 13 14:27:52 centosy sshd[1224]: pam_mount(mount.c:64): Errors from underlying mount program: Feb 13 14:27:52 centosy sshd[1224]: pam_mount(mount.c:68): mount error(13): Permission denied Feb 13 14:27:52 centosy sshd[1224]: pam_mount(mount.c:68): Refer to the mount.cifs(8) manual page (eg man mount.cifs) Feb 13 14:27:52 centosy sshd[1224]: pam_mount(pam_mount.c:521): mount of tomas failed Feb 13 14:27:52 […]
我有一个CentOS 6.6安装与股票Apache 2.2包。 我需要升级到Apache 2.4,但我想要一个真正的安装包的替代品 ,而不是进入/ opt并行工作的东西 。 另外,我需要通过yum(不是源代码,不是rpm)来安装它,因为我需要一个简单的方法来更新它,当新的小版本发布。 基本上,我正在寻找我跑来做一个下拉式PHP升级的等效命令: yum –enablerepo=remi-php56,remi update php\* 我试过这个,但不起作用: yum –enablerepo=remi-httpd24,remi update httpd\* 注意:请不要浪费字节回答“为什么CentOS修复backporting!”。 这不是问题。