<output id="dd15f"></output>

      <pre id="dd15f"><b id="dd15f"></b></pre>
        <pre id="dd15f"><del id="dd15f"><thead id="dd15f"></thead></del></pre><big id="dd15f"><span id="dd15f"></span></big>

          <p id="dd15f"></p>

          <p id="dd15f"></p>

          Linux

          Linux集群SSH免密登陸

          分類
          故障描述

            無

          故障分析

            無

          處理過程

          ? ? ? Linux集群規模20臺,需相互間免密登陸。

          ? ? ? 先選擇一臺主機保存所有主機的密鑰,然后將密鑰復制到所有主機。

          1.登陸每臺主機創建ssh.pub:

          [root@master-1 ~]# ssh-keygen
          Generating public/private rsa key pair.
          Enter file in which to save the key (/root/.ssh/id_rsa):
          Enter passphrase (empty for no passphrase):
          Enter same passphrase again:
          Your identification has been saved in /root/.ssh/id_rsa
          Your public key has been saved in /root/.ssh/id_rsa.pub
          The key fingerprint is:
          SHA256:Z0rzrrX1DA+Yjw6S9iFnoGQfQc9NVn1PXEXHohC/gno root@jumpserver
          The key's randomart image is:
          +---[RSA 3072]----+
          | ? ? ?. ? +o.. +B|
          | ? ? . o +.. ?o *|
          | ? ? ?. o .... +.|
          | ? ? ? . . ?.. ?.|
          | ? ?o o S + . ? ?|
          | ? o o * * + ? ? |
          | ? ?. B E = + ? ?|
          | ? ? . B = = * ? |
          | ? ? ? ?oo= . + ?|
          +----[SHA256]-----+

          ?

          2. 每臺主機執行ssh-copy-id root@master-1復制到Master-1

          3.登陸Master-1將密碼復制到所有主機:

          scp .ssh/authorized_keys root@master-2:/root/ssh.txt

          scp .ssh/authorized_keys root@master-3:/root/ssh.txt

          scp .ssh/authorized_keys root@node-1:/root/ssh.txt

          ....

          4.登陸每臺主機,將ssh.txt追加到.ssh/authorized_keys即可。

          cat?/root/ssh.txt >> /root/.ssh/authorized_keys

          建議/總結

            無

          OpenEulerOS 22如何修改docker默認IP172.17.0.1/16

          故障描述

            無

          故障分析

            無

          處理過程

            安裝好docker后執行下面命令

          ?sed -i "s/^DOCKER_NETWORK_OPTIONS=/DOCKER_NETWORK_OPTIONS=\'--bip=192.168.255.1\/24\'/g" /etc/sysconfig/docker-network?

          即在/etc/sysconfig/docker-network 文件中DOCKER_NETWORK_OPTIONS=后添加'--bip=192.168.255.1/24';192.168.255.1/24根據實際情況進行修改。避免沖突

          建議/總結

            無

          如何處理Redhat及CentOS虛擬機關機時卡住

          分類
          故障描述

          按照操作系統缺省配置的Red Hat Enterprise Linux 4.4 (32位及64位)或者CentOS 4.4 (32位及64位)系統虛擬機,在優雅關機時,概率性出現卡住的問題,表現為連接VNC花屏。如圖1所示。

          圖1 CentOS 4.4 64位系統優雅關機卡住界面

          故障分析

            無

          處理過程

          關閉系統的電源管理服務acpid。

          在Red Hat Enterprise Linux 4.4 (32位及64位)或者CentOS 4.4 (32位及64位)系統中,關閉電源管理服務acpid的操作方法如下:
          (1) 在Linux終端中執行命令,關閉acpid服務。
          chkconfig acpid off
          (2) 重啟虛擬機,使修改生效。

          建議/總結

          Red Hat Enterprise Linux 4.4 (32位及64位)和CentOS 4.4 (32位及64位)系統的電源管理模塊在內核啟動過程中默認進行加載,但該模塊在低版本的Linux內核中存在缺陷,會導致虛擬機關機概率性卡死。

          opensuse安裝virtualbox

          故障描述

            無

          故障分析

            無

          處理過程

          1、進入“安裝/移除軟件”,并輸入root密碼

          2、搜索virtualbox。

          3、選中virtualbox(基礎)和virtualbox-qt(界面)

          4、點接入安裝。

          5、進入Yast/安全和用戶/用戶和組管理。

          6、選中你要使用virtualbox的用戶>編輯>細節>附加的組先中vboxusers>確定。

          7、重啟opensuse登陸即可使用virtualBox

          建議/總結

            無

          Centos 刪除圖形界面后無法登陸

          故障描述

            客戶安裝Centos后默認安裝有圖形界面,客戶刪除圖形界面后啟動不提示登錄。但可以用ssh或telnet登錄。

          故障分析

            無

          處理過程

          1、ssh登陸服務器

          2、修改/etc/inittab 文件,將id:5:initdefault:(默認的 run level 等級為 5,即圖形界面改為3即純文本環境)

          3.保存文件后重啟系統你就可以看見是啟動的文本界面了。

          建議/總結

            無

          Linux選用國內163鏡像

          故障描述

            Linux國外源速度較慢。如何使用國內源。

          故障分析

            無

          處理過程

            建議使用國內163鏡像。

          登陸http://mirrors.163.com/。查看每個版本對應的使用方法。以下以Centos為例

          1、首先備份/etc/yum.repos.d/CentOS-Base.repo

              mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

          2、下載對應版本repo文件, 放入/etc/yum.repos.d/(操作前請做好相應備份)

          3、運行以下命令生成緩存

              yum clean all
              yum makecache
          建議/總結

            無

          Centos 7.0 iptables服務管理

          故障描述

            Centos7.0使用service iptables restart提示錯誤

          [root@FileServer etc]# service iptables restart
          Redirecting to /bin/systemctl restart? iptables.service
          Failed to issue method call: Unit iptables.service failed to load: No such file or directory.

          故障分析

            無

          處理過程

            Iptables默認沒有安裝服務。

          yum -y install iptables-services

          [root@FileServer etc]# service iptables start
          Redirecting to /bin/systemctl start? iptables.service

          建議/總結

            無

          Linux添加FTP用戶設置為/bin/false無法登陸

          故障描述

          [root@Radius ftp]# useradd -d /home/huawei -g ftp -s /bin/false huawei
          [root@Radius ftp]#passwd huawei
          [root@Radius ftp]# passwd huawei
          更改用戶 huawei 的密碼 。
          新的 密碼:
          重新輸入新的 密碼:
          passwd: 所有的身份驗證令牌已經成功更新。
          [root@Radius ftp]# ftp 127.0.0.1
          Connected to 127.0.0.1 (127.0.0.1).
          220 (vsFTPd 2.2.2)
          Name (127.0.0.1:root): huawei
          331 Please specify the password.
          Password:
          530 Login incorrect.
          ftp>

          故障分析

            [root@Radius ftp]# tail /var/log/secure
          Sep 11 10:16:39 radius proftpd[11888]: localhost (192.168.1.199[192.168.1.199]) - USER huawei (Login failed): Invalid shell: '/bin/false'
          Sep 11 10:16:56 radius proftpd[11889]: localhost (192.168.1.199[192.168.1.199]) - USER huawei (Login failed): Invalid shell: '/bin/false'
          Sep 11 10:23:53 radius proftpd[12044]: localhost (192.168.1.199[192.168.1.199]) - USER huawei (Login failed): Invalid shell: '/bin/false'

          上述錯誤日志確定為用戶shell為/bin/false后,用戶無法登陸FTP,vsftpd默認會檢查用戶的shell,如果用戶的shell在/etc/shells沒有記錄,則無法登陸ftp

          處理過程

          ?1.在/etc/shells中添加一行"/bin/false";
          2.重啟vsftpd服務。

          [root@Radius opt]# vi /etc/shells

          /bin/sh
          /bin/bash
          /sbin/nologin
          /bin/dash
          /bin/false

          ?

          建議/總結

            無

          综合色一色综合久久网

          <output id="dd15f"></output>

              <pre id="dd15f"><b id="dd15f"></b></pre>
                <pre id="dd15f"><del id="dd15f"><thead id="dd15f"></thead></del></pre><big id="dd15f"><span id="dd15f"></span></big>

                  <p id="dd15f"></p>

                  <p id="dd15f"></p>