본문 바로가기
728x90
반응형

⚙️백엔드47

Docker - WSL, Docker 구글 크롬 설치 WSL Ubuntu에서 Chrome을 설치하는 과정은 다음과 같습니다: 1. 먼저 필요한 패키지를 업데이트합니다 sudo apt update && sudo apt upgrade -y 2. Chrome의 설치에 필요한 의존성 패키지를 설치합니다 sudo apt install wget gpg 3. Google Chrome의 공식 GPG 키를 다운로드하고 추가합니다 wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -  4. Google Chrome 리포지토리를 시스템에 추가합니다 sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ s.. 2024. 7. 3.
MySQL - ERROR 1045 (28000): Plugin caching_sha2_password could not be loaded: 지정된 모듈을 찾을 수 없습니다. Library path is 'caching_sha2_password.dll' 해결 방법 1. WITH mysql_native_password 변경 ALTER USER '계정ID'@'localhost' IDENTIFIED WITH mysql_native_password BY '계정PW'; 해결 방법 2. my.cnf 파일 수정 [mysqld]default_authentication_plugin=mysql_native_password  해결 방법 3. 명령어 인수 추가 --default_authentication_plugin=mysql_native_password  출처: https://ynzu-dev.tistory.com/entry/MySQL-Authentication-plugin-cachingsha2password-cannot-be-loaded [MySQL] Authenticat.. 2024. 5. 5.
PHP - 온라인 코드 난독화 사이트(PHP Obfuscator) https://php-minify.com/php-obfuscator/ PHP Obfuscator php-minify.com 2024. 5. 3.
Docker - Docker Engine Failed to Start 해결 방법 1. Windows 기능 설정       2. wsl --unregister  wsl --unregister Ubuntuwsl --unregister docker-desktopwsl --unregister docker-desktop-data   3. 재부팅    출처: https://github.com/docker/for-win/issues/13638 Docker Engine Failed to Start : Getting Error "waiting for docker daemon: running wsl-bootstrap: WSL engine terminated abruptly"Description Using Windows 10 Enterprise. .. 2024. 4. 24.
Docker - 컨테이너 시작시 명령어 자동 실행하기 1. root의 bash 환경 설정 파일 에디터 열기 nano /root/.bashrc 2. 맨 하단에 자동 실행하고 싶은 명령어 입력 service ssh start 출처: https://dttmmit.tistory.com/81 NAS Docker 컨테이너 시작시 자동 실행할 명령 설정하기 /root 디렉토리로 이동한다 vim 으로 .bashrc 파일 열어준다 G를 눌러 파일의 맨 끝으로 이동해 준다 o를 눌러 커서 위치를 바로 다음 줄로 옮기고 입력 모드를 시작한다 이제 컨테이너가 시작하면 자 dttmmit.tistory.com 2023. 10. 21.
MySQL - 뷰(View) 테이블 생성 원본 테이블(members) mysql> desc members; +-------------------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------------------+--------------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | username | varchar(50) | NO | | NULL | | | password | varchar(255) | NO | | NULL | | 가상 테이블(members_v) 생성.. 2023. 10. 11.
MySQL - 데이터베이스 정보(host, user, db, table, column) 확인 컬럼 정보 가져오기(desc | mysql.user, mysql.db, information_schema.tables, information_schema.columns) mysql> desc mysql.user; +------------------------+-----------------------------------+------+-----+-----------------------+-------+ | Field | Type | Null | Key | Default | Extra | +------------------------+-----------------------------------+------+-----+-----------------------+-------+ | Host | char(6.. 2023. 10. 11.
아파치 - 구글 캡챠(reCAPTCHA) 적용하기(PHP) /etc/php/{본인 php 버전}/apache2/php.ini (curl 기능 주석 해제) extension=curl 참고: https://developers.google.com/recaptcha/docs/display?hl=ko reCAPTCHA v2 | Google for Developers 이 페이지는 Cloud Translation API를 통해 번역되었습니다. Switch to English reCAPTCHA v2 컬렉션을 사용해 정리하기 내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요. 이 페이지에서는 웹페이지에서 developers.google.com https://wonpaper.tistory.com/374 [PHP] 구글 캡차(Captcha) 달기 - V3, V2 버전 [자동입력방.. 2023. 9. 2.
아파치 - 클라우드플레어 IP Ranges 화이트리스트 설정 https://www.cloudflare.com/ko-kr/ips/ IP Ranges This page is intended to be the definitive source of Cloudflare’s current IP ranges. www.cloudflare.com 위에 클라우드플레어의 IP Ranges 페이지에 들어가 클라우드플레어의 아이피 대역만 아파치 서버에 접속이 가능하도록 설정한다. 이는 공격자가 클라우드플레어를 거치지 않고 직접 실제 서버 아이피를 알아내서 DDoS 공격의 피해력을 줄이기 위해서다. .htaccess #path to your website #ipv4 Require ip 173.245.48.0/20 Require ip 103.21.244.0/22 Require ip 103... 2023. 4. 14.
아파치 - 세션 시간 변경(php.ini) /etc/php/{php-version}/apache2/php.ini session.gc_maxlifetime = 1440 출처: https://www.eznbiz.co.kr/help/qna/content/26 apache php 세션 유지 시간 환경 설정 1. Apache 환경 설정 파일 vi /usr/local/apache/conf/httpd.conf 변경전 Timeout 300 변경후 Timeout 1200 클라이언트의 요청에 의해 서버와 연결이 되었을 때 클라이언트와 서버간에 아무런 메시지가 발생하지 않 www.eznbiz.co.kr 2023. 4. 8.
Docker- docker-compose.yml 생성(docker-compose) docker-compose.yml version: "3.9" services: webserver: image: search-webserver:2 container_name: webserver environment: TZ: Asia/Seoul ports: - "22:22" - "80:80" dns: - 8.8.8.8 extra_hosts: - host.docker.internal:host-gateway stdin_open: true tty: true 컨테이너 생성 docker-compose up -d "exited with code 0 docker"가 뜨면서 컨테이너가 start가 안될 경우 stdin_open: true, tty: true를 추가해야 한다. 참고: https://lifefun.tistor.. 2023. 4. 6.
Docker - 이미지 파일(.tar)로 저장해서 이미지로 불러오기 이미지 파일(.tar)로 저장 docker save -o myimage.tar myimage 이미지 파일 불러오기 docker load -i myimage.tar 2023. 4. 6.
728x90
반응형