리눅스 서버 ref

낭만개발자·2021년 1월 23일
0

공부 자료

생활코딩

-DEMON

더북: 리눅스 서버 다루는 기술(advance)

https://thebook.io/006718/

설치 ref history

-mqtt broker 설치 : https://itouch.tistory.com/61

-파일질라 사용법 :https://m.blog.naver.com/myrikason/221802491577
-우분투 해외아이피 차단(적용함)
https://shutcoding.tistory.com/24

Command

  • 우분투
    dpkg --get-selections 리눅스 설치 패키지 목록 확인

shortCut

-윈도우
windows + D 키 누르고 (다른 창 안열고) 다시 반복 누르면 원상태 windows 창들로 돌아감
-리눅스
shift + page up : 페이지 올라가는거 반대는 down

ip addr : ip보여줌
ip route : default ip 보여줌 (default gateway)

-putty
ctrl+right click :putty에서 전체화면 등 기타 설정 :
-크롬
ctrl+page up || ctrl+tab 탭 좌쪽으로
ctrl+page down || ctrl+shift+tab 탭 우쪽으로

-쉘
ctrl+z : 쉘 입력으로 돌아갈떄
fg : 원래 터미널로 다시 갈때

라즈베리파이에서 IOT 프로그램 설치(리눅스나뭐..)

http://www.hardcopyworld.com/ngine/aduino/index.php/archives/3415_텍스트_

putty 활용 네트워크 상태 화인

포트나 네트웤 종합 조회가 가능하다.
https://m.blog.naver.com/PostView.nhn?blogId=blueweb75&logNo=220705648407&proxyReferer=https:%2F%2Fwww.google.com%2F

netstat 에서 조회할때 칼럼 설명

Proto : 현재 사용중인 프로토콜
local address : 사용자 컴퓨터의 호스트 네임 또는 IP와 포트번호
foreign address : 사용자와 접속되어 있는 사이트, 호스트 네임 또는 ip와 포트번호가 출력된다.
state : 접속상태
위의 그림에는 없지만, 접속상태는
Established : 연결이 되어 있는 상태
Listen : 연결 가능하도록 열려있는 상태
svn_sent : 클라이언트가 서버에게 svn패킷을 보내어 연결을 요청한 상태
svn_recv :
Close : 완전히 연결이 종료된 상태

https://m.blog.naver.com/PostView.nhn?blogId=pxkey&logNo=221276188823&proxyReferer=https:%2F%2Fwww.google.com%2F

마운트란

https://jhnyang.tistory.com/12

리눅스 directory 구조

https://webdir.tistory.com/101

리눅스 이동 명령어

기본 명령어

  • man 핼프 같은거. 사용 명령어가 확실치 않을 때 'man xxx'방식으로 사용하면 도움줌.

  • find와 locate 특정 파일 찾을 때 두가지 명령중 암꺼나 사용
    find [경로] [옵션] [파일명]
    find / -name '*.apk', 뜻 : 루트에 apk확장자 파일 모두 찾기.
    find /-name 'mysql' : 이름이 mysql이라는 모든 파일.

  • cp 복사 copy

mv 파일이름 변경 or 다른 디렉토리 옮길 때, 또 두가지 모두 수행할 때.
ex) mv cats dog cats파일명을 dogs로 변경
mv cats ~/desktop cats 파일을 desktop으로 옮겨
more 파일의 내용을 한 번에 출력
kill 애플리케이션 죽일때. 보통 ps랑 같이,,, ps 로 죽이고 싶은 app의 정확한 pid를 확인
passwd 패스워드 변경할 때, 현재 pw와 새로운 pw를 입력하라고 한다.

명령어 세부 내용 60개
https://www.facebook.com/bookworm.kr/photos/a.115714428591577.23653.112150685614618/702905049872509

리눅스 study(생코)

생활코딩
https://opentutorials.org/course/2598

리눅스 권한

User Group Other
r w x r w x r w x
4+2+1 4+2+1 4+2+1
r: read
w: write
x: execute

기타 ref, 나중에

우분투 GUI로 전환,

https://wlsvud84.tistory.com/26

VS CODE를 웹 상에 띄워놓고 어디서든 코딩하기

https://eungbean.github.io/2019/11/04/remote-vscode/

ip locaiton 찾아주는 web

한국어 + Map 보여줌
http://mylocation.co.kr/

영어 타사이트 비교 가능
https://www.iplocation.net/ip-lookup

속도 okky

https://okky.kr/article/802337

노드 설치

Node.js v12.x:

sudo apt-get install -y nodejs

링크:
https://ppost.tistory.com/entry/%EC%9A%B0%EB%B6%84%ED%88%AC-1804%EC%97%90-%EC%84%9C%EB%B2%84%ED%99%98%EA%B2%BD-nodemysql%EA%B5%AC%EC%B6%95%ED%95%98%EA%B8%B0

리눅스 폴더 구조

https://blackpigstudio.tistory.com/entry/%EB%A6%AC%EB%88%85%EC%8A%A4-%ED%8F%B4%EB%8D%94%EA%B5%AC%EC%A1%B0-%EB%B0%8F-%EC%9A%A9%EB%8F%84

우분투 버젼 확인

lsb_release -a

mysql 초기 설정

https://m.blog.naver.com/6116949/221992559683

vpn

IPpro yu
10개월 전
구글에서 사용하는 vpn은 프록시입니다. 방화벽에서 로그를 보면 오리진 ip가 그대로 보여집니다.
제대로된 vpn을 이용해보고 싶다면 openVPN을 사용하거나 방화벽 업체에서 제공하는 유료 VPN을 사용해야 합니다.

Fail2ban

https://eungbean.github.io/2019/11/05/fail2ban/
https://www.lesstif.com/security/fail2ban-ssh-43843899.html
https://zipi.me/601

DDos 막기(담에 적용)

https://walkthinksleep.tistory.com/entry/Server-Fail2ban%EC%9C%BC%EB%A1%9C-DDOS%EC%8A%A4%EB%9F%AC%EC%9A%B4-%EA%B3%B5%EA%B2%A9-%EB%A7%89%EA%B8%B0

chmod(퍼미션 변경), chown(소유자변경), chgrp(사용자그룹 변경)

chown -Rv user:user myfile myfile의 소유자를 user, 소유그룹을 user로 변경하는데 -R 해당 폴더 하위 모두 적용해서 -v 세부사항도 알려주며 변경해라 라는 명령어.

profile
낭만닥터와 슬의를 보고 저런 개발자가 되어야 겠다고 꿈꿔봅니다.

0개의 댓글