====== CentOS ====== * description : CentOS 관련 내용 정리 * author : 주레피 * email : dhan@repia.com * lastupdate : 2022-12-07 ===== Intro ===== ===== Install ===== CentOS 및 RedHat 계열 \\ nslookup 설치 \\ [root@localhost~]# yum install bind-utils \\ Python 설치 \\ [user@localhost~]# python -V Python 2.7.5 [user@localhost~]# pip -V -bash: pip: command not found [user@localhost~]# you install python3 ... ... ... [user@localhost~]# python3 -V Python 3.6.8 * [[https://zetawiki.com/wiki/CentOS7_Python_3_%EC%84%A4%EC%B9%98|CentOS7 Python 3 설치]] \\ ===== Case Study ===== ===== Library(라이브러리) ===== * [[https://engineeringcode.tistory.com/94|[CentOS 7/8] 아파치 웹서버(httpd)와 PHP를 설치하자]] * [[https://velog.io/@dong3789/CentOs-centos7|[CentOs] centos7 php7.4 설치]] ===== Term ===== ===== Tip ===== 기본 프로그램 설정(alternatives) \\ python을 예로 들어 설명하지만, java를 비롯해서 여러 버전에서 사용 가능 [root@localhost ~]# python -V Python 2.7.5 [dev@localhost ~]# update-alternatives --config python [root@localhost ~]# update-alternatives --install /bin/python python /bin/python2.7 1 [root@localhost ~]# update-alternatives --install /bin/python python /bin/python3.6 2 [root@localhost ~]# update-alternatives --config python 2 개의 프로그램이 'python'를 제공합니다. 선택 명령 ----------------------------------------------- 1 /bin/python2.7 *+ 2 /bin/python3.6 현재 선택[+]을 유지하려면 엔터키를 누르고, 아니면 선택 번호를 입력하십시오: 2 [root@localhost ~]# python -V Python 3.6.8 * [[https://cntechsystems.tistory.com/105|[CentOS 7] Python3 설치 및 버전 변경과 Tensorflow, Keras 설치]] ===== Troubleshooting ===== * [[https://young-cow.tistory.com/77|/lib, /lib64 의 심볼릭 링크를 삭제했을 때 해결 방법]] * [[https://www.lesstif.com/system-admin/linux-rescue-mode-12943500.html|Linux Rescue mode 로 부팅하기]] ===== Ref ===== {{tag>주레피 센트오에스 centos alternatives 기본프로그램}}