yeonghoon.kim

  • 게시판
  • 갤러리
  • aws

CentOS7 아나콘다 환경에 주피터 노트북 설치

김영훈 2022.12.03 14:10 조회 수 : 652

CentOS7 Anaconda 환경 구축

1. 환경

4vCore, 8GB 메모리, 20GB

 

2. SELINUX 비활성화

1) SEINUX 설정에서 비활성화 설정

sed 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config

2) 현재 활성화된 SELINUX 비활성화

setenforce 0

 

3. 아나콘다 설치

1) 아나콘다 홈페이지(http://anaconda.com)에서 최신 설치스크립트 주소 확인 후 다운로드

wget https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh

2) 스크립트 실행

sh Anaconda3-2022.10-Linux-x86_64.sh


 

In order to continue the installation process, please review the license agreement. Please, press ENTER to continue >>> 엔터 Do you accept the license terms? [yes|no] [no] >>> yes /root/anaconda3 - Press ENTER to confirm the location - Press CTRL-C to abort the installation - Or specify a different location below [/root/anaconda3] >>> 엔터 Do you wish the installer to initialize Anaconda3 by running conda init? [yes|no] [no] >>> yes

 

4. conda 가상환경 생성

1) 기본 환경인 base를 복제하여 사용

conda create --name test_env --clone base

2) 가상 환경 전환

conda activate test_env

 

5. jupyter notebook 설치

1) 설치

conda install jupyter notebook

2) 기본 환경 설정 파일 생성

jupyter-notebook --generate-config

3) ipython 명령 실행

ipython


 

In [1]: from notebook.auth import security In [2]: security.passwd() Enter password: Verify password: Out[2]: '암호화된 패스워드' In [3]: exit()

4) jupyter notebook 실행파일 수정(참고한 블로그)

vim .jupyter/jupyter_notebook_config.py


 

44L c.JupyterApp.config_file_name = 'jupyter_notebook_config.py' 83L c.NotebookApp.allow_origin = '10.0.0.100' 297L c.NotebookApp.ip = '0.0.0.0' 401L c.NotebookApp.open_browser = False 412L c.NotebookApp.password = '암호화된 패스워드'

5) jupyter notebook 서버 구동(테스트 환경이라 root에서 바로 실행)

nohup jupyter notebook --allow-root &

6) jupyter notebook 방화벽 오픈

firewall-cmd --permanent --zone=public --add-port=8888/tcp


 

success

firewall-cmd --reload


 

success

7) 웹브라우저에서 접속되는지 확인

http://10.0.0.100:8888


  • 추천 0

  • 비추천 0
이 게시물을
목록

댓글 0

사진 및 파일 첨부

여기에 파일을 끌어 놓거나 왼쪽의 버튼을 클릭하세요.

파일 용량 제한 : 0MB (허용 확장자 : *.*)

업로드 중... (0%)

0개 첨부 됨 ( / )
 
번호 제목 글쓴이 날짜 조회 수
공지 2025 일본 여행 계획 김영훈 2024.10.10 985
공지 현금, 저축, 투자, 지출, 예산, 보험 내역(2024-05-30) 김영훈 2024.03.10 638
225 시스템프로그래밍 2주차 - 사용명령 김영훈 2023.03.08 277
224 Python cx_Oracle 모듈 샘플코드 김영훈 2023.03.03 328
223 아이맥 화면 동영상 캡처 - 커맨드 + 쉬프트 + 5 김영훈 2023.02.28 239
222 paramiko 일괄 명령 테스트 김영훈 2023.01.05 332
221 파이썬 디스크 용량 체크 김영훈 2023.01.04 449
220 Uptime Kuma용 push(패시브) 체크용 파일.py [1] 김영훈 2022.12.21 310
219 python - re 라이브러리 김영훈 2022.12.19 341
218 python - requests 라이브러리 김영훈 2022.12.19 260
217 python - socket 라이브러리 김영훈 2022.12.19 349
216 python - random 라이브러리 김영훈 2022.12.19 300
» CentOS7 아나콘다 환경에 주피터 노트북 설치 김영훈 2022.12.03 652
214 CentOS7 - minikube 설치 김영훈 2022.12.02 395
213 growpart - no tools available to resize disk with 'gpt' 김영훈 2022.12.01 271
212 mac homebrew 설치 김영훈 2022.11.30 219
211 centos7 gitlab 설치 김영훈 2022.11.28 327
210 Your account is pending approval from your GitLab administrator and hence blocked. Please contact your GitLab administrator if you think this is an error. 김영훈 2022.11.28 451
209 mac에서 centos6 ssh 접속 시 오류 - no matching host key type found. Their offer: ssh-rsa,ssh-dss 김영훈 2022.11.27 386
208 Centos Console 화면 보호기 setterm 김영훈 2022.11.26 220
207 CentOS8-Stream packstack 설치 [5] 김영훈 2022.11.24 401
206 CentOS7 EUC-KR 로케일 설정 김영훈 2022.10.20 289
쓰기 태그
 첫 페이지 1 2 3 4 5 6 7 8 9 10 끝 페이지