important

Git bash 서버 설정

yeongk0825 2022. 3. 23. 17:04

서버 세팅하기

 

# python3 -> python
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10

# pip3 -> pip
sudo apt-get update
sudo apt-get install -y python3-pip
sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1

# port forwarding
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 5000

 

 

계속 돌아가게 하기

nohup python app.py &

 

작업할 게 남았을 때 강제 종료하기

ps -ef | grep 'python app.py' | awk '{print $2}' | xargs kill

 

 

styled-component 설치

 

npm 설치 명령어

npm install styled-components

 

yarn 설치 명령어

yarn add styled-components

 

 

react-router-dom 설치

 

npm 설치 명령어

npm i react-router-dom@5.2.1

 

yarn 설치 명령어

yarn add react-router-dom@5.2.1