[SERVER]
-
[리눅스 개념] 리눅스 하위 디렉토리까지 검색 방법[SERVER]/Linux 개념 2020. 7. 23. 16:14
# ls -lRs l(엘) : 세부정보까지 R : 하위 디렉토리까지 특정화일을 검색하고자 한다면 # ls -lRs | grep -i 특정화일명 --> 단순하게 grep 만 사용하면 어느 폴더라는 정보를 볼수 없음 특정디렉토리의 특정화일을 찾는것이라면 #fine 디렉토리명 -name 파일명 -ls Example>> # find . -name "*.txt" -print 현재 디렉토리에서부터 .txt로 끝나는 파일검색 # find /home -name "_*.swp" -exec rm '{}' \; /home 에서부터 _로 시작해서 .swp으로 끝나는 모든 파일을 찾아 삭제.
-
-
[리눅스 개념] curl과 wget을 이용하여 웹로직 HTTP Rest API를 받아오자(jq 사용)[SERVER]/Linux 개념 2020. 7. 16. 09:41
curl -H "Accept: application/json" http://1004lucifer:1234qwer@192.168.43.51:7001/management/tenant-monitoring/servers/AdminServer 위와 같이 사용하여 REST API를 HTTP로 불러올 수 있다. 다만 위와 같이 한줄로된 코드는 보기가 좋지 않다 그렇기 때문에 jq를 사용하여 코드를 보기 좋게 만들자. jq는 yum install로 설치하면된다. curl -H "Accept: application/json" http://1004lucifer:1234qwer@192.168.43.51:7001/management/tenant-monitoring/servers/AdminServer | jq '.' 다음과 같..
-
[리눅스 개념] VMware에 있는 서버를 외부에서 ssh로 접속해보자[SERVER]/Linux 개념 2020. 7. 2. 23:43
VMware에 있는 서버 접속에 대한 여러 글이 있으나 각자 방법도 달랐고 필자의 경우 모두 안되었다. 그렇기 때문에 필자가 해결한 방법을 적고자한다. VMware를 포함한 다른 VM 프로그램 모두 방법이 동일하리라 생각된다. 우선 공유기에서 할당해준 사설 아이피를 받아서 VMware에 설치해준 리눅스에 고정 아이피를 설정해줘야 하므로 다음과 같이 네트워크 어댑터를 Bridged로 설정해준다. 고정 아이피 설정 방법은 이전에 포스팅했으므로 아래 방법을 참고하도록하자. https://seoulsense.net/60?category=393348 [리눅스 개념] VirtualBox, Parallers 고정 아이피 설정 방법 VM에 고정 아이피 설정 방법은 처음 개념을 이해하지 못하면 다소 어려울 수 있다. 우..
-
[리눅스 오류] Unknown Host 오류[SERVER]/Linux 오류 2020. 7. 2. 09:45
리눅스에서 ping www.naver.com 을 입력하면 Unknown Host 오류를 내뱉는다. 그러나 ping 8.8.8.8을 입력하면 정상적으로 패킷 송수신이 된다. 현재 /etc/resolve.conf의 nameserver에 KT 네임 서버만 등록했는데, 이로인한 문제였던 것으로 확인되었습니다. 그렇기 때문에 8.8.8.8을 입력하면 정상적으로 패킷 송수신이 가능했던 거고 gooogle.com으로 하면 패킷 송수신이 불가능했던 것이였습니다. 구글 네임 서버인 8.8.8.8 등록 후 service network restart 및 reboot 후 정상적으로 ping 송수신이 되는 것으로 확인되었습니다.