Back end/Server
-
vi 편집기 명령어Back end/Server 2024. 8. 9. 11:39
1. 모드 전환명령 모드 (Command Mode): vi를 처음 열면 이 모드로 시작합니다. 명령 모드에서는 텍스트를 편집하거나 파일을 저장하는 등의 명령을 입력할 수 있습니다.입력 모드 (Insert Mode): 텍스트를 입력하거나 수정할 수 있는 모드입니다. 명령 모드에서 i, a 등을 눌러 입력 모드로 전환할 수 있습니다.명령 모드로 돌아가기: ESC 키를 눌러 입력 모드에서 명령 모드로 돌아갑니다.2. 입력 모드로 전환i: 현재 커서 위치에서 입력 시작a: 현재 커서 다음 위치에서 입력 시작o: 현재 줄 아래에 새로운 줄을 추가하고 입력 시작3. 텍스트 저장 및 종료:w: 파일 저장:q: vi 종료 (저장되지 않은 내용이 있으면 종료되지 않음):wq 또는 :x: 파일 저장 후 종료:q!: 저장하..
-
JEUS WAS 설치 및 운영(작성중!)Back end/Server 2024. 7. 19. 13:19
* 참고 JEUS_HOMEhome/bin/ 환경설정, 스타트, 종료jlog/서비스명/JeusServer.logtomcat/webapps/(컨텍스트루트)jeus_app* JEUS와 Tomcat의 차이점:JEUS:티맥스소프트에서 만든 웹 애플리케이션 서버(WAS)입니다.웹 애플리케이션을 구동하기 위해 여러 컴포넌트를 사용합니다. - DAS (Domain Administration Server): 웹페이지와 애플리케이션을 관리하는 데 사용됩니다.- NS (NodeManager): 실제로 웹 애플리케이션을 실행하고 관리합니다.- MS (Managed Server): NS (NodeManager) 를 관리하는 시스템으로 웹 애플리케이션을 실행합니다.Tomcat:아파치 재단에서 개발한 서블릿 컨테이너로, 주로 JS..
-
docker 테스트Back end/Server 2024. 7. 3. 15:45
https://opentutorials.org/course/128/8657 Docker - 생활코딩소개 가상 머신처럼 독립된 실행환경을 만들어주는 도구. 마치 운영체제에 운영체제를 설치하는 것처럼 실행 된다. 하지만 운영체제는 실제로 설치되지 않기 때문에 설치 용량이 적고 빠르다. opentutorials.org docker 컨테이너 접속 명령어 ex) sudo docker exec -it hello /bin/bash : hello는 생성 된 컨테이너 이름
-
PKI 인증 이란?Back end/Server 2024. 4. 11. 11:27
* PKI는 Public Key Infrastructure의 약자로, 공개 키 기반 인프라를 가리킵니다. 이는 네트워크나 인터넷에서 보안을 유지하기 위해 사용되는 시스템입니다. PKI는 공개 키 암호화 기술을 기반으로 하며, 다음과 같은 기능을 제공합니다: 1.인증: PKI는 디지털 인증서를 사용하여 개체(예: 사용자, 서버)의 신원을 확인합니다. 이 디지털 인증서는 신뢰할 수 있는 기관인 인증 기관(Certificate Authority, CA)에 의해 발급됩니다. 2.기밀성: PKI는 공개 키 및 개인 키 쌍을 사용하여 안전하게 통신할 수 있습니다. 공개 키는 다른 사람들과 공유되며, 개인 키는 개체만 알고 있습니다. 이를 통해 안전한 통신을 보장할 수 있습니다. 3.무결성: PKI는 전자 서명을 사..
-
네임서버?Back end/Server 2024. 4. 7. 19:02
* 네임서버란 무엇인가? 네임서버는 인터넷에서 도메인 이름을 IP 주소로 변환하는 역할을 하는 컴퓨터 시스템입니다. 간단히 말해, 사용자가 도메인 이름을 입력하면 네임서버가 해당 도메인 이름을 해당하는 IP 주소로 매핑하여 사용자의 컴퓨터가 해당 웹사이트에 접속할 수 있도록 도와줍니다. 이러한 과정을 DNS (Domain Name System)라고도 합니다. 네임서버는 전 세계적으로 분산되어 있으며, 인터넷의 안정성과 효율성을 유지하는 데 중요한 역할을 합니다. * nslookup을 통해 ip 확인 가능 * 내 서버는 /etc/resolve.conf 에서 nameserver의 ip 주소 수정 가능 why? 내 네임서버를 알아야. 상대방의 네임서버도 알수가 있다. 하지만 상대방의 ip주소로는 접속이 가능함..
-
★ su와 sudo 차이점Back end/Server 2024. 4. 4. 15:12
리눅스에서 su와 sudo는 root 계정의 권한으로 명령어 수행이 필요할 때 사용된다는 점에서 비슷합니다. 그러나 둘은 다릅니다. su는 계정 자체의 전환을 의미하며, sudo는 권한을 일시적으로 빌리는 방식입니다. 리눅스 운영 시엔 되도록 sudo를 이용하는 편이 안전합니다. 1. sudo란? sudo는 superuser do의 약자입니다. 명령어 맨 앞에 붙이면 루트에 상응하는 권한 수준으로 명령어를 수행할 수 있습니다. 예를 들어, 시스템 종료, 재부팅, 시스템 파일 편집, 방화벽 오픈, 패키지 설치, 일부 서비스 실행 등 작업에 필요합니다. 1-1. sudo 사용 방법 사용 방법은 명령어 시작 전 맨 앞에 sudo 문자를 붙이는 것입니다. sudo systemctl mysqld start # m..
-
crontab 을 이용한 리눅스 디렉토리 자동 백업 방법.Back end/Server 2024. 4. 4. 14:24
1. 백업을 할 디렉토리 sh을 아래와 같이 생성(백업 스크립트.sh) #!/bin/bash # 백업 원본 디렉토리 SOURCE_DIR="/path/to/source" # 백업 대상 디렉토리 DESTINATION_DIR="/path/to/destination" # rsync를 사용하여 디렉토리를 복사합니다. rsync -av --delete $SOURCE_DIR/ $DESTINATION_DIR/ 2. crontab 편집 crontab -e 3. crontab 에디터에 추가 ex) 매일 자정에 백업 스크립트를 실행합니다. 0 0 * * * /usr/local/bin/백업스크립트.sh * crontab 설정