[ubuntu-2004] ubuntu-server-xfce4-vnc-install
[ubuntu-2004] ubuntu-server-xfce4-vnc-install

IP 설정 # vi /etc/netplan/00-installer-config.yaml network: version: 2 renderer: networkd ethernets: ens33: dhcp4: no addresses: - 192.168.0.22/24 gateway4: 192.168.0.2 nameservers: addresses: [8.8.8.8, 8.8.4.4] # netplan apply apt 저장소 변경 # vi /etc/apt/sources.list mirror.kakao.com/ubuntu :%s/kr.archive.ubuntu.com/mirror.kakao.com/g apt update / apt upgrade # apt update && apt upgrade # init 6 xfce4 , vnc-server 설치 # apt install... » read more

[ESXi] ESXi hypervisor  root password 분실
[ESXi] ESXi hypervisor root password 분실

ESXi hypervisor root 패스워드 분실시 gparted live CD 를 이용한 password 변경 방법을 설명 합니다.   Gparted live image Download (https://gparted.org/download.php) Gparted live cd 로 부팅을 합니다. Default 로 선택된 GParted Live 를 선택 합니다.   엔터를 입력합니다. Don't touch keymap 을 선택 합니다.   엔터를 입력합니다. Default 선택은 33: US English 입니다.   엔터를... » read more

[vscode] gitbash 설정

최근 docs site 를 mkdocs 에서 hugo 로 마이그레이션 했습니다. mkdocs 테마 가독성이 떨어 지기때문에 hugo 테마중 적당한 테마를 사용, github 와 github actions 을 이용하여 자동 build 로 구성 하였습니다. 윈도우 에서 vscode 로 git-bash 설정 하는 방법을 소개 합니다. Visual Studio Code 는 : https://code.visualstudio.com 에서 다운 받을수 있습니다. 설치는 다음 다음 을... » read more

[WP] AWS  wordpress ssl 설정
[WP] AWS wordpress ssl 설정

LAMP 환경 에서는 아래와 같이 설정 하면 됩니다. Route53 설정 및 Certificate Manager 를 이용한 ssl 인증서를 생성 해야 하며 ELB 설정이 필요 합니다. .htaccess 파일 수정 및 wp-config.php 파일수정 [root@ip-xxx-xx-xx-xxx public_html]# vi .htaccess RewriteEngine On RewriteCond %{SERVER_PORT} 443 RewriteRule ^(.*)$ https://test1.crois.net/$1 [R,L] [root@ip-xxx-xx-xx-xxx public_html]# vi wp-config.php /** force SSL on admin **/ define('FORCE_SSL_ADMIN', true);... » read more

Windows 10 hyper 설치 및 ubuntu 사용

윈도우즈 CMD 에서도 ssh 를 통한 원격접속을 할수 있는 세상이 되었습니다. 🙂 편의상 putty 와 AWS 관리 할때는 git-for-windows 를 사용하였지만... hyper 를 이용하면 윈도우에서도 테마가 있는 터미널을 사용할수 있습니다.   윈도우 10 에서 cmd bash 를 사용하기 위해서는 개발자 모드를 켜야 합니다. 설정 -> 업데이트 및 보안 -> 개발자 용 으로 이동 합니다.  ... » read more

[WP] aws ssl 인증서 사용시 docker wordpress 설정
[WP] aws ssl 인증서 사용시 docker wordpress 설정

2020년 새해들어 blog 를 GCP 에서 AWS 로 이관 하고 SSL 인증서 작업을 하였습니다. AWS route53 , ELB 를 설정 하고, ELB 에서는 https 리다이렉트를 해주는 부분이 없어 별도로 docker-compose 에 apache 설정을 추가 하였습니다. 참고자료: https://aws.amazon.com/ko/premiumsupport/knowledge-center/redirect-http-https-elb/ docker-compose 설정 services: wp: image: wordpress:latest expose: - 80 - 443 restart: always volumes: - ./apache2:/etc/apache2/sites-enabled <--- https... » read more

[WP] wordpress 주소 변경
[WP] wordpress 주소 변경

워드프레스를 사용하다 보면 도메인을 변경 하는 경우가 있습니다 🙂 간단하게 도메인을 변경 하는 방법은 wp-config.php 를 수정 하는 방법 입니다. WP 디렉토리에서 wp-config.php 파일을 수정 합니다. define('WP_HOME', 'http://blog.crois.net'); define('WP_SITEURL', 'http://blog.crois.net');

[WP] 워드프레스 업데이트시 FTP 인증 Disable
[WP] 워드프레스 업데이트시 FTP 인증 Disable

워드프레스 업데이트시 FTP 인증 Disable WP 를 업데이트 할때 FTP 인증정보를 물어 봅니다. 해결방법은 :wp-config.php 파일에 define(\'FS_METHOD\', \'direct\'); 라인을 추가 하면 됩니다. wp-config.php 파일 수정 [root@web01 html]# vi wp-config.php /** The name of the database for WordPress */ define('FS_METHOD', 'direct'); FTP 인증 없이 WP업데이트를 할수 있습니다.

[WP] docker-compose 이용 – WordPress 설치
[WP] docker-compose 이용 – WordPress 설치

LEMP 를 이용한 방법의 경우 패키지 설치 하고 설정 하는 과정이 필요 합니다. Docker-compose 를 이용하면 모든 설정 내용을 docker-compose.yml 파일에 설정후 WordPress 를 바로 사용할수 있습니다. Docker-compose 의 경우 http://dev.crois.net/2019/04/22/centos7-docker-quick-install/ 를 참고해주세요.     docker-compose.yml 파일 생성 적당한 디렉토리를 생성후 docker-compose.yml 파일을 생성 합니다. yml 파일의 경우 구문 오류가 발생할수 있음으로 http://www.yamllint.com/ 에서 체크... » read more

[WP] LEMP Stack 이용 – WordPress 설치
[WP] LEMP Stack 이용 – WordPress 설치

WordPress 를 설치 하기위해서는 LAMP Stack (Linux Apache Mariadb PHP) 또는 LEMP Stack (Linux Nginx Mariadb PHP) 환경이 필요 합니다. bitnami 를 이용하여 wordpress 를 구축 하여도 되고, docker 를 이용한 방법이 있습니다. 본문서에서는 LEMP Stack 을 이용한 방법을 설명합니다. CentOS7 LEMP Stack 환경에서 wordpress 설치LEMP Stack 의 경우 http://blog.crois.net/2017/12/27/web-server-centos7-lemp-install 내용을 참고 하여 설치 하시면... » read more