linux 7

ubuntu 18.04 LTS 에서 자주 사용하는 netstat 명령

많이 사용하는 옵션(netstat --help) -r, --route display routing table (라이팅 테이블) -i, --interfaces display interface table(인터페이스 테이블) -s, --statistics display networking statistics (like SNMP)(네크워크 통계) -n, --numeric don't resolve names(PORT 넘버) --numeric-hosts don't resolve host names --numeric-ports don't resolve port names --numeric-users don't resolve user names -p, --programs display PID/Program name f..

ubuntu 18.04 LTS 에서 shell 실행시 오류날때

sh 파일을 실행했는데, 오류가 발생합니다. 파일을 열어 봅니다. vi aaa.sh #!/bin/sh ---> 상단에 이게 있습니다. 원인은 이부분입니다. #!/bin/sh -> #!/bin/bash 으로 변경해줍니다. ubuntu 18.04 LTS 을 설치하면, 기본으로 sh는 dash가 기본이 됩니다. 그래도 bash 파일이 존재합니다.(/bin.bash) 변경한 sh파일을 저장하고 싱행해주시면 끝납니다.

chkconfig 설정

# chkconfig --list-- 모든 부팅레벨에서 모든 서비스 on/off 확인 # chkconfig --list 서비스 또는 chkconfig 서비스 --list-- 모든 부팅레벨에서 해당 서비스 on/off 확인 # chkconfig 서비스 on-- 2,3,4,5 실행 레벨에서 해당 서비스 on시킴 # chkconfig 서비스 off-- 2,3,4,5 실행 레벨에서 해당 서비스 off시킴 # chkconfig --level 2 서비스 on-- 2번 실행레벨에서 해당 서비스 on시킴 # chkconfig --level 345 서비스 on-- 3,4,5번 실행레벨에서 해당 서비스 on시킴 # chkconfig 서비스 --add-- 해당 서비스를 chkconfig 관리항목에 추가 # chkconfig..

반응형