본문 바로가기

728x90

전체 글

[리눅스] 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.. 더보기
SSH 접속 시 RSA 공개키(ECDSA) 충돌 문제를 해결하는 방법 SSH 접속 시 RSA 공개키(ECDSA) 충돌 문제를 해결하는 방법 SSH 접속 오류 Ubuntu $ ssh root@10.10.123.213 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also pos.. 더보기
CentOS 7 locale(로케일) 에러 해결 CentOS 7 locale(로케일) 에러 해결 ssh bvm-server02 -bash: warning: setlocale: LC_CTYPE: cannot change locale (ko_KR.UTF-8) cat /etc/local $ cat /etc/local LANG=en_US.utf-8 vim /etc/locale.conf LANG=ko_KR.UTF-8 현재 시스템에서 사용중인 로케일 확인 locale $ locale locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory LANG=en_US.UTF.. 더보기
[리눅스] Jenkins API 호출 Jenkins API 호출 Jenkins에서 User API Token 생성 Dashboard > Jenkins 관리 > Manage Users > 사용자[admin] > 설정 > API Token > Add new Token > Generate 마지막 성공한 빌드 번호 조회 jq 명령을 사용하면 문자열 내용을 보기 편함 $ yum install -y jq curl -X POST http://[jenkins.server.url]:[jenkins.server.port]/job/[project name]/build --user [USER_NAME]:[USER_API_TOKEN] $ curl -s http://jenkins.server.url:8080/job/project%20name/lastSuccessfu.. 더보기
[리눅스] apache(httpd), PHP 버전 숨기기 apache(httpd), PHP 버전 숨기기 서버 HTTP 헤더를 보는 방법(apache 및 PHP 버전 확인) wget 명령 wget --server-response --spider localhost $ wget --server-response --spider localhost Spider mode enabled. Check if remote file exists. --2022-03-08 21:54:05-- http://localhost/ Resolving localhost (localhost)... 127.0.0.1 Connecting to localhost (localhost)|127.0.0.1|:80... connected. HTTP request sent, awaiting response..... 더보기

728x90