[Ubuntu] Jupyter notebook 부팅시 자동 실행 예시

2020. 12. 27. 10:26꿀팁 분석 환경 설정/Linux 관련 팁

728x90

jupyter notebook 설치하고 나서를 가정합니다

 

 

vi 편집기를 사용해서 서비스 생성

sudo vi /etc/systemd/system/jupyter.service

서비스 생성에 다가 아래와 같이 작성하기

[Unit]
Description=Jupyter Notebook Server
[Service]
Type=simple
PIDFile=/run/jupyter.pid
User=srlee
ExecStart=/home/srlee/anaconda3/bin/jupyter-notebook ## 이쪽 상황에 맞게 바꿔야 함.
WorkingDirectory=/home/srlee/notebook ## 이쪽 상황에 맞게 바꿔야 함.
[Install]
WantedBy=multi-user.target

 

systemctl daemon-reload 
systemctl enable jupyter.service 
systemctl start jupyter.service

 

start 하고 나서 상태 확인하기 (active 가 좋은 것임)

sudo systemctl status jupyter.service

 

 

 

 

참고

 

 

goodtogreate.tistory.com/entry/IPython-Notebook-설치방법

 

Jupyter 서버 설치 및 실행법

Jupyter 서버 설치 및 실행법 Data Science 분야와 과학분야에서 편하게 Python이 쓰이도록 개발된 Notebook에 대해서 살펴본다. 사용된 설치환경은 아래와 같다. Ubuntu 18.04 실행 명령어 (개인 환경) -나의

goodtogreate.tistory.com

 

 
728x90