본문 바로가기

728x90

분류 전체보기

Simple HTTP File Upload Server Simple HTTP File Upload Server 간단한 파일 업로드 및 다운로드 서버 1. docker-compose 파일 생성 vim docker-compose.yml version: '3' services: upload-server: image: julienmeerschart/simple-file-upload-download-server container_name: upload-server hostname: upload-server restart: unless-stopped environment: SERVER: "http://fb.sangchul.kr" volumes: - ./result:/app/uploads expose: - 3000/tcp ports: - 3000:3000 이 서비스는 호.. 더보기
[리눅스] openssl, keytool 명령을 사용하여 키 저장소 작성 openssl, keytool 명령을 사용하여 키 저장소 작성 SSL 인증서는 let's encrypt를 사용하여 생성 $ pwd /etc/letsencrypt/live/dockerhub.scbyun.com $ ls cert.pem chain.pem fullchain.pem privkey.pem READM openssl 명령으로 .pfx 인증서 파일 생성 openssl pkcs12 -inkey privkey.pem -in cert.pem -certfile chain.pem -export -out cert.pfx -name "cert" $ openssl pkcs12 -inkey privkey.pem -in cert.pem -certfile chain.pem -export -out cert.pfx -name.. 더보기
Base64 인코딩(Base64 디코딩) Base64 인코딩(Base64 디코딩) Base64 인코딩 echo -n 'admin:admin' | base64 $ echo -n 'admin:admin' | base64 YWRtaW46YWRtaW4= Base64 디코딩 echo -n 'YWRtaW46YWRtaW4=' | base64 --decode $ echo -n 'YWRtaW46YWRtaW4=' | base64 --decode admin:admin BASE64 Decode and Encode https://www.base64encode.org/ Base64 Encode and Decode - Online Encode to Base64 format or decode from it with various advanced options. Our s.. 더보기
Sonatype Nexus3를 Docker Compose를 사용하여 실행하는 방법 Sonatype Nexus3를 Docker Compose를 사용하여 실행하는 방법 Sonatype Nexus3 설치 1. Sonatype Nexus3 Docker 이미지를 다운로드합니다. docker pull sonatype/nexus3 2. Docker Compose 파일을 생성합니다. vim docker-compose.yml version: '3.7' services: nexus3: image: sonatype/nexus3 restart: unless-stopped container_name: nexus3 # privileged: true user: root volumes: - ./nexus-data:/nexus-data healthcheck: test: ["CMD", "nc", "-zv", "loc.. 더보기
[리눅스] docker commit 명령 docker commit 명령 컨테이너를 이미지로 생성 docker commit 사용법 $ docker commit --help Usage: docker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]] Create a new image from a container's changes Options: -a, --author string Author (e.g., "John Hannibal Smith ") -c, --change list Apply Dockerfile instruction to the created image -m, --message string Commit message -p, --pause Pause container during commit (defaul.. 더보기
[리눅스] docker registry 서버 구성 docker registry 서버 구성 - docker hub : https://hub.docker.com/_/registry - github : https://github.com/distribution/distribution SSL 인증서 생성(let's encrypt) certbot.sh 스크립트 생성 vim certbot.sh docker run -it --rm --name certbot \ -v '/etc/letsencrypt:/etc/letsencrypt' \ -v '/var/lib/letsencrypt:/var/lib/letsencrypt' \ certbot/certbot certonly -d 'dockerhub.scbyun.com' \ --manual --preferred-challenges.. 더보기
PHP phpinfo.php 페이지를 생성하는 방법 PHP phpinfo.php 페이지를 생성하는 방법 phpinfo.php 파일 생성 phpinfo.php 파일을 생성하고 편집합니다. echo "" > /usr/share/nginx/html/phpinfo.php $ echo "" > /usr/share/nginx/html/phpinfo.php phpinfo.php 페이지를 생성하고 PHP 정보를 확인할 수 있습니다. PHP CLI(Command Line Interface)에서 확인하는 방법 php -i 위 명령을 실행하면 PHP CLI에서 "phpinfo()" 함수의 출력과 유사한 PHP 환경 정보가 터미널에 표시됩니다. 예를 들어, PHP 버전, 활성 모듈, 설정 값 등이 표시됩니다. 이렇게 하면 PHP 환경 정보를 명령줄에서 확인할 수 있으며, 웹 .. 더보기
CentOS 7에서 PHP-FPM 8.1을 설치하는 방법 CentOS 7에서 PHP-FPM 8.1을 설치하는 방법 PHP-FPM : PHP FastCGI Process Manager CentOS 7은 PHP 5.x를 지원하며, PHP 8.1은 공식 CentOS 7 저장소에 포함되어 있지 않습니다. PHP 8.1을 CentOS 7에 설치하려면 추가 저장소 설정이 필요하며, Remi 저장소는 이를 제공하는 인기있는 옵션 중 하나입니다. Remi 저장소를 사용하여 CentOS 7에 PHP 8.1을 설치할 수 있습니다. 테스트 환경 운영체제 버전 정보 확인 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) $ getconf LONG_BIT 64 filewalld 서비스 정지 sudo systemctl st.. 더보기

728x90