久久免费精品国产-日本道欧美一区二区aaaa-欧美资源一区,护士下面又紧又湿,天海翼一区,一本一道久久久a久久久精品蜜臀

跳轉到主要內容

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

 

建議/總結

  無

Ruby Gem 提示OpenSSL錯誤

故障描述

  Ruby用安裝提示無法加載Openssl

gem install rails -v 3.2.17
ERROR:  Loading command: install (LoadError)
        cannot load such file -- openssl
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass

故障分析

  無

處理過程

  進入到ruby源碼包的所在路徑,然后進入ext/openssl,執行:
sudo ruby extconf.rb,

make  

make install

建議/總結

  無

如何啟用EPEL庫For Rhel/Centos 5,6

故障描述

Yum安裝Enablerepo時提示epel不可用。

yum --enablerepo=epel
Error getting repository data for epel, repository not found

故障分析

  無

處理過程

RHEL/CentOS 6 32-64 Bit

## RHEL/CentOS 6 32-Bit ## #

#wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm

## RHEL/CentOS 6 64-Bit ##
# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm
RHEL/CentOS 5 32-64 Bit

## RHEL/CentOS 5 32-Bit ##
# wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
# rpm -ivh epel-release-5-4.noarch.rpm

## RHEL/CentOS 5 64-Bit ##
# wget http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
# rpm -ivh epel-release-5-4.noarch.rpm

RHEL/CentOS 4 32-64 Bit

## RHEL/CentOS 4 32-Bit ##
# wget http://download.fedoraproject.org/pub/epel/4/i386/epel-release-4-10.noarch.rpm
# rpm -ivh epel-release-4-10.noarch.rpm

## RHEL/CentOS 4 64-Bit ##
# wget http://download.fedoraproject.org/pub/epel/4/x86_64/epel-release-4-10.noarch.rpm
# rpm -ivh epel-release-4-10.noarch.rpm

 

建議/總結

  無