Articles of centos

在CentOS 7服务器上无法使用共享密钥ssh拒绝我们的密钥

我无法使用预共享密钥ssh到CentOS 7服务器,我得到一个“服务器拒绝我们的密钥”消息。 下面是使用-vv的ssh尝试 OpenSSH_7.2p2, OpenSSL 1.0.2h-fips 3 May 2016 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 56: Applying options for * debug1: /etc/ssh/ssh_config line 67: Deprecated option "useroaming" debug2: resolving "my.server.net" port 22 debug2: ssh_connect_direct: needpriv 0 debug1: Connecting to my.server.net [xxx.xxx.xxx.xxx] port 22. debug1: Connection established. debug1: identity file /home/user/.ssh/id_rsa type 1 debug1: […]

CentOS – resize2fs错误操作不允许尝试添加组#

我正在使用AWS上的EC2实例。 OS是CentOS 6.5,并且是半虚拟化的。 当我开始实例,我进入SSD存储为32GB。 但是,例如,只有8GB的安装。 所以我把/dev/xvda (挂载在`/ @上)从8GB扩展到了32GB。 而我试图运行命令resize2fs /dev/xdva1但得到如下错误: Filesystem at /dev/xvda1 is mounted on /; on-line resizing required old desc_blocks = 1, new_desc_blocks = 2 Performing an on-line resize of /dev/xvda1 to 8388352 (4k) blocks. resize2fs: Operation not permitted While trying to add group #81 和AWSpipe理控制台上的系统错误: EXT4-fs warning (device xvda1): ext4_group_add:1605: No reserved […]

如何禁用消息:设备eth1进入混杂模式?

我有一个networking监控应用程序,通过devise,经常将界面设置为混杂模式。 这导致大量的消息乱丢/ var / log / messages: Nov 23 15:13:49 kernel: device eth1 left promiscuous mode Nov 23 16:04:40 kernel: device eth1 entered promiscuous mode Nov 23 17:17:28 kernel: device eth1 left promiscuous mode Nov 23 17:36:33 kernel: device eth1 entered promiscuous mode Nov 23 17:43:30 kernel: device eth1 left promiscuous mode Nov 23 17:43:45 […]

MariaDB没有启动

我在CentOS 7上使用Plesk 17 onyx。我已经通过plesk更新pipe理器更新了我的服务器,突然我的数据库服务器停止工作。 我使用MariaDB作为数据库服务器。 Plesk也不起作用。 当我尝试启动,重新启动MariaDB,我发现以下错误作为输出。 Redirecting to /bin/systemctl status -l mariadb.service ● mariadb.service – MariaDB database server Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Tue 2016-12-13 13:41:00 PKT; 10min ago Process: 8193 ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=1/FAILURE) Process: 8192 ExecStart=/usr/bin/mysqld_safe –basedir=/usr (code=exited, status=0/SUCCESS) Process: 8164 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=0/SUCCESS) […]

奇怪的sshd日志消息每分钟

我的linux系统在/ var / log / secure中每隔一分钟都会收到这个错误消息 Jun 14 04:24:28 mybox sshd[19741]: Connection closed by 127.0.0.1 Jun 14 04:25:28 mybox sshd[19764]: Connection closed by 127.0.0.1 Jun 14 04:26:28 mybox sshd[19770]: Connection closed by 127.0.0.1 Jun 14 04:27:28 mybox sshd[19776]: Connection closed by 127.0.0.1 Jun 14 04:28:28 mybox sshd[19782]: Connection closed by 127.0.0.1 Jun 14 04:29:28 mybox […]

“服务”命令未find,“htpasswd”命令未find..?

这个问题有一些背景知识 – 它不会持续很长时间,但是如果我正确地解释所有事情,这是最好的; 昨晚我在CentOS / DirectAdmin安装程序中build立了一个SVN仓库 – 我回到我的笔记,去做一个'htpasswd -cm passwd myuser'。 我是作为根login,但我得到'命令未find'? 几个星期前,当我第一次创buildSVN的时候,这已经工作了。 所以我做了一个whereis htpasswd,并在/ usr / bin / htpasswd中find它。 我做了一个htpasswd并得到这个: (/ usr / kerberos / sbin:/ usr / kerberos / bin:/ usr / bin /其中:/ bin:/ usr / bin:/ home / admin / bin) 奇怪? 我做了一个从/ usr / bin / htpasswd的符号链接,现在它工作。 后来我去“服务httpd重启”,但我有'服务'完全相同的问题。 我的问题: 你觉得发生了什么? […]

在VirtualBox中运行CentOS guest虚拟机时CPU占用率高

我正在运行CentOS 5.3作为在Windows XP上运行的VirtualBox 3.0.0 guest虚拟机。 尽pipeCentOS客户端完全闲置(即平均负载为0.00),但Windows主机CPU使用率始终保持在50%。 我知道这是一个与CentOS内核运行频率1000Hz有关的常见问题,之前发布了一个特殊的kernel-vm软件包来解决这个问题。 但是,这些软件包已经过期, 自述文件中提到,从CentOS 5.3开始,这些软件包并不是必需的。 我发现假设有一个内核参数divider = 10,它将标准内核的频率降低到100Hz,但在VirtualBox内运行时似乎没有任何影响。 有没有办法解决这个问题,而不诉诸自定义内核?

SED查找并replace为“OR”

经过我自己的一些Googlesearch/研究,我还没有find明确的答案, 我正在寻找search整个/ var / www / html /文件夹中的“127.0.0.1”,并将其replace为服务器的IP地址(我们正在将数据库从本地框中移出)。 这适用于Localhost&127.0.0.1。 虽然我可以跑 find * | xargs sed -ia/127.0.0.1/ser.ver.ip.addr/g 两次,一旦replace127.0.0.1和本地主机,我宁愿不必运行两个命令。 我能做一个OR语句,而不打破? 就像是: find * | xargs sed -ia/127.0.0.1|localhost/ser.ver.ip.addr/g – – – – – – – – – – – – – – 编辑 – – – – – – – – – – – – 我发现了一个稍微更可靠的search和replace方法, find * […]

通过LDAP的CentOS用户pipe理

我build立了我的CentOS 5.3服务器来validationLDAP,并能够通过Apache Directory Studio 1.4手动添加用户。 现在,这是设置,是否有一个pipe理LDAP中用户的首选“CentOS方式”? 还有另外一个讨论这种做法的方法,但是这些解决scheme在默认的CentOS软件包仓库中都没有。

如何在Centos中validation软件包驻留在哪个存储库?

我想知道哪些Centos存储库可用的各种软件包。 有没有一个目录? 我尝试了谷歌search,没有发现任何东西。