yeonghoon.kim

  • 게시판
  • 갤러리
  • aws

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

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

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 1108
공지 현금, 저축, 투자, 지출, 예산, 보험 내역(2024-05-30) 김영훈 2024.03.10 765
65 간단 텔레그램 메세지 전송 php 김영훈 2022.08.10 331
64 docker-compose mariadb 샘플 김영훈 2022.08.11 352
63 opendkim-genkey 임의 서브도메인 지정 김영훈 2022.08.12 256
62 NCP - SourceCommit 저장소 생성 file 김영훈 2022.08.18 324
61 우분투 22.04 remove.bg 설치 김영훈 2022.09.22 333
60 CentOS7 EUC-KR 로케일 설정 김영훈 2022.10.20 295
59 CentOS8-Stream packstack 설치 [5] 김영훈 2022.11.24 412
58 Centos Console 화면 보호기 setterm 김영훈 2022.11.26 226
57 mac에서 centos6 ssh 접속 시 오류 - no matching host key type found. Their offer: ssh-rsa,ssh-dss 김영훈 2022.11.27 398
56 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 469
55 centos7 gitlab 설치 김영훈 2022.11.28 337
54 mac homebrew 설치 김영훈 2022.11.30 231
53 growpart - no tools available to resize disk with 'gpt' 김영훈 2022.12.01 280
52 CentOS7 - minikube 설치 김영훈 2022.12.02 406
» CentOS7 아나콘다 환경에 주피터 노트북 설치 김영훈 2022.12.03 660
50 python - random 라이브러리 김영훈 2022.12.19 309
49 python - socket 라이브러리 김영훈 2022.12.19 356
48 python - requests 라이브러리 김영훈 2022.12.19 268
47 python - re 라이브러리 김영훈 2022.12.19 346
46 Uptime Kuma용 push(패시브) 체크용 파일.py [1] 김영훈 2022.12.21 321
쓰기 태그
 첫 페이지 5 6 7 8 9 10 11 12 13 14 끝 페이지