1、问题

[root@centos7 Python-3.9.4]# ln -s python /usr/bin/python
[root@centos7 Python-3.9.4]# python
-bash: /usr/bin/python: Too many levels of symbolic links

 

2、删除建立的软连接

rm -f /usr/bin/python

 

3、以绝对路径建立软连接

[root@centos7 Python-3.9.4]# ln -s /home/software/python/Python-3.9.4/python /usr/bin/python
[root@centos7 Python-3.9.4]# python
Python 3.9.4 (default, May  1 2021, 22:41:00)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()

 

相关文章:

  • 2021-08-18
  • 2022-12-23
  • 2021-09-18
  • 2021-12-14
  • 2022-12-23
  • 2021-11-05
  • 2022-02-26
  • 2021-05-25
猜你喜欢
  • 2022-12-23
  • 2021-05-03
  • 2022-02-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案