CentOS 推荐-学习网站

CentOS配网-[已成功]

1、参考帖子

image.png

2、测试情况

image.png

3、问题-办法 || 记录


修改** /etc/sysconfig/network-scripts/ifcfg-eth0 **文件
初始内容

  1. DEVICE="eth0"
  2. HWADDR=
  3. TYPE="Ethernet"
  4. UUID=
  5. ONBOOT="yes"
  6. NM_CONTROLLED="yes"
  7. BOOTPROTO="dhcp"

添加DNS、网关地址、子网掩码(未成功)

  1. DEVICE="eth0"
  2. BOOTPROTO=static
  3. HWADDR=
  4. IPV6INIT="yes"
  5. NM_CONTROLLED="yes"
  6. ONBOOT="yes"
  7. GATEWAY=192.168.. # 第二步获取到的网关地址
  8. PADDR=192.168.. # 配置ip,不和网关相同均可
  9. NETMASK=255.255.255.0 # 子网掩码
  10. DNS1=222.246.129.80 # dns服务器1,填写所在的网络可用的dns服务器地址即可
  11. DNS2=223.5.5.5 # dns服务器2,[AliDNS 阿里公共DNS]
  12. TYPE="Ethernet"
  13. UUID=

CentOS安装Git-[已成功]

1、参考帖子

2、测试情况

image.png
**指令集**

  1. List of Commands:
  2. check Check for problems in the rpmdb
  3. check-update Check for available package updates
  4. clean Remove cached data
  5. deplist List a package's dependencies
  6. distribution-synchronization Synchronize installed packages to the latest available versions
  7. downgrade downgrade a package
  8. erase Remove a package or packages from your system
  9. groupinfo Display details about a package group
  10. groupinstall Install the packages in a group on your system
  11. grouplist List available package groups
  12. groupremove Remove the packages in a group from your system
  13. help Display a helpful usage message
  14. history Display, or use, the transaction history
  15. info Display details about a package or group of packages
  16. install Install a package or packages on your system
  17. list List a package or groups of packages
  18. load-transaction load a saved transaction from filename
  19. makecache Generate the metadata cache
  20. provides Find what package provides the given value
  21. reinstall reinstall a package
  22. repolist Display the configured software repositories
  23. resolvedep Determine which package provides the given dependency
  24. search Search package details for the given string
  25. shell Run an interactive yum shell
  26. update Update a package or packages on your system
  27. update-minimal Works like update, but goes to the 'newest' package match which fixes a problem that affects your system
  28. updateinfo Acts on repository update information
  29. upgrade Update packages taking obsoletes into account
  30. version Display a version for the machine and/or available repos.
  31. Options:
  32. -h, --help show this help message and exit
  33. -t, --tolerant be tolerant of errors
  34. -C, --cacheonly run entirely from system cache, don't update cache
  35. -c [config file], --config=[config file]
  36. config file location
  37. -R [minutes], --randomwait=[minutes]
  38. maximum command wait time
  39. -d [debug level], --debuglevel=[debug level]
  40. debugging output level
  41. --showduplicates show duplicates, in repos, in list/search commands
  42. -e [error level], --errorlevel=[error level]
  43. error output level
  44. --rpmverbosity=[debug level name]
  45. debugging output level for rpm
  46. -q, --quiet quiet operation
  47. -v, --verbose verbose operation
  48. -y, --assumeyes answer yes for all questions
  49. --version show Yum version and exit
  50. --installroot=[path] set install root
  51. --enablerepo=[repo] enable one or more repositories (wildcards allowed)
  52. --disablerepo=[repo] disable one or more repositories (wildcards allowed)
  53. -x [package], --exclude=[package]
  54. exclude package(s) by name or glob
  55. --disableexcludes=[repo]
  56. disable exclude from main, for a repo or for
  57. everything
  58. --obsoletes enable obsoletes processing during updates
  59. --noplugins disable Yum plugins
  60. --nogpgcheck disable gpg signature checking
  61. --disableplugin=[plugin]
  62. disable plugins by name
  63. --enableplugin=[plugin]
  64. enable plugins by name
  65. --skip-broken skip packages with depsolving problems
  66. --color=COLOR control whether color is used
  67. --releasever=RELEASEVER
  68. set value of $releasever in yum config and repo files
  69. --setopt=SETOPTS set arbitrary config and repo options
  70. Plugin Options:
  71. --security Include security relevant packages
  72. --bugfixes Include bugfix relevant packages
  73. --cve=CVE Include packages needed to fix the given CVE
  74. --bz=BZ Include packages needed to fix the given BZ
  75. --sec-severity=SEVERITY
  76. Include security relevant packages, of this severity
  77. --advisory=ADVISORY
  78. Include packages needed to fix the given advisory
  79. [root@localhost Desktop]#

CentOS安装Python3-[已成功]

1、参考帖子

2、测试情况

image.png

3、问题-办法 || 记录

**查看python版本**
image.png
**切换root用户**
image.png