1. We will sometimes be very slow when we connect to the server using SSH protocol.
Cause: Because we changed the hostname, SSH protocol by default will do reverse query, that is, IP on the domain name of the query, can not find out, wait until the time of the timeout will be connected
Method: Modify
[Email protected] ~]# Vi/etc/ssh/sshd_config
Enter/dns (query DNS for this character)
#UseDNS Yes
Modified to: Usedns No. Save exit
Restart SSH protocol
[Email protected] ~]#/etc/init.d/sshd restart
The next connection will be very fast.
2. Garbled problem
Cause: Character Set inconsistency
View the character sets we installed
Env view
Lang=zh_cn. UTF-8 (we installed for UTF-8)
Method: 1. CRT adaptation System
Modify CRT also for UTF-8
2. System adapts to CRT
If the CRT character set is default, it is the GBK character set. Modifying the system's character set
[Email protected] ~]# vi/etc/sysconfig/i18n
Lang= "ZH_CN. UTF-8
Modify to the GBK character set.
3. Not mounted on
CDROM hangs on the sr0.
[Email protected] ~]# Ll/dev/cdrom
lrwxrwxrwx. 1 root root 3 April 09:40/dev/cdrom-sr0
Look out CDROM and sr0 is a connection. So both of them can be mounted
[Email protected] ~]# mount/dev/cdrom/mnt
Mount:block Device/dev/sr0 is write-protected, mounting read-only
[Email protected] ~]# umount/mnt
[Email protected] ~]# mount/dev/sr0/mnt
Mount:block Device/dev/sr0 is write-protected, mounting read-only
Linux Virtual Machine Connection