1、將字體變大
Alt+P
2、如何將游標由粗線(塊)變成豎線
在Xshell中,查看屬性,然后修改即可,

3、linux 在執行這個命令yum -y install vim-enhanced 出現
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
解決方案:

4、 當我們剛使用一個新的linux的時候,會有yum命令的使用和wget命令,但是會出現報錯,這是因為沒有下載到本地
問題:
curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=<repoid> ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable <repoid>
or
subscription-manager repos --disable=<repoid>
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
Cannot find a valid baseurl for repo: base/7/x86_64
解決方案:
vi /etc/resolv.conf
在上面檔案中添加下面一行的命令就可以,
nameserver 114.114.114.114
這是國內的DNS服務器系統,谷歌的可以使用8.8.8.8
修改完成后執行service network restart進行重啟,試一下yum update命令,就可以了,
5、
問題;
Error: NetworkManager is not running.
解決方案:
systemctl restart NetworkManager
6、在我們安裝mysql的時候會出現以下問題
[root@quzhujianju-ykt-beifen1 mysql]# rpm -ivh mysql-community-server-5.7.24-1.el7.x86_64.rpm
warning: mysql-community-server-5.7.24-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
perl(Getopt::Long) is needed by mysql-community-server-5.7.24-1.el7.x86_64

解決方案:
這是由于yum安裝了舊版本的GPG keys造成的,所以我們只需要在命令的后面加上 --force --nodeps
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/212568.html
標籤:其他
上一篇:Linux的Docker安裝教程
