//포트관련
//https://mumomu.tistory.com/121
sudo apt-get install net-tools
netstat -nlpt
sudo iptables -t nat -L --line-numbers
sudo iptables -t nat -D PREROUTING {삭제할 번호}
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000
lsof -i :3000
//8180 포트로 열려있는 Process 찾기ls
lsof -P | grep 8180 | grep LISTEN
//WS 의 rei 로 실행한 포트 죽이기
lsof -u rei | grep 3000
//https://jg-han.tistory.com/78
ps -ef
//명령어를 실행하면 현재 실행중인 프로세스가 쭉 뜬다.그 중 내가 내린 명령어릴 찾아주면된다
//좌측에서 두번제 있는 숫자가 processID 이다.
kill -9 processID
//-9 : 강제 종료를 의미하는 인자여기서는 kill -9 22192를 입력하면 된다
#<https://dreamholic.tistory.com/100>
#위 블로그를 따라 설정을 바꾸기 보다, 그냥 포트 포워딩에서 NIC 이름을 지정된대로 바꿔서 해주면 된다.
ifconfig -a