[ubuntu] ubuntu 18.04 Static IP 설정
[ubuntu] ubuntu 18.04 Static IP 설정

ubuntu 18.04 Static IP 설정     ip 및 route 확인 root@test:~# ifconfig ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.0.146 netmask 255.255.255.0 broadcast 192.168.0.255 inet6 fe80::20c:29ff:fe21:fa45 prefixlen 64 scopeid 0x20<link> ether 00:0c:29:21:fa:45 txqueuelen 1000 (Ethernet) RX packets 1081 bytes 1090726 (1.0 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 462 bytes 55353... » read more

[CentOS7] xfce install
[CentOS7] xfce install

xfce install     xfce 패키지를 설치 합니다. [root@centos7 ~]# yum install epel-release -y [root@centos7 ~]# yum groupinstall "Server with GUI" -y [root@centos7 ~]# yum groupinstall "Xfce" -y [root@centos7 ~]# systemctl set-default graphical.target   로그인 할 id 를 입력후 password 입력시 아래와 같이 로그인을 xfce 로 지정 합니다.   xfce 설치를 완료하였습니다.

[CentOS7] TouchpadOff
[CentOS7] TouchpadOff

노트북에서 Linux Desktop 을 사용할 일이 종종 있습니다. pxe 를 쓴다 던지 Cluster ssh 를 쓴다 던지.. 그럴때 마다 Touchpad 부분 때문에 오타가 자주 납니다. 예전에는 synclient 로 사용 했었는데.. CentOS7 에서는 잠깐 꺼졌다가 다시 터치패드가 활성화 됩니다. xinput list 로 id 를 확인 한후 Device 의 활성 / 비활성을 설정 할수 있습니다. .bashrc 파일에... » read more

[CentOS] Nginx proxy https
[CentOS] Nginx proxy https

Nginx proxy https   Nginx Self-sign https : http://blog.crois.net/2019/09/23/centos7-nginx-self-signed-https/ 설정하였던 VM 을 이용하여 nginx proxy 를 테스트 합니다. 상단 nginx-proxy 에만 인증서가 있으면 되며 백단 서버 두대의 경우 별도의 인증서 및 설정이 필요 하지 않습니다. nginx 설치및 php 설치의 경우 이전 포스트를 참고해 주세요. Nginx-Proxy 서버에서 ssl 설정을 하고 Nginx-www1 / Nginx-www2 에서는 80 port... » read more

[CentOS7] Nginx Self-signed https
[CentOS7] Nginx Self-signed https

Nginx Self-signed https   nginx https 설정을 테스트 합니다. nginx web-server 와 php71 까지 설치후 Test 도메인으로 접속을 테스트 합니다.     1. Nginx 설치 [root@test ~]# vi /etc/yum.repos.d/nginx.repo [nginx] name=nginx baseurl=http://nginx.org/packages/centos/7/$basearch/ gpgcheck=0 enabled=1 [root@test ~]# yum clean all [root@test ~]# yum install -y nginx [root@test ~]# systemctl enable nginx ; systemctl start nginx  ... » read more

[mysql] max_allowed_packet error
[mysql] max_allowed_packet error

mysqldump-max_allowed_packet error max_allowed_packet error 발생시 --max_allowed_packet=1024M 옵션을 사용 하면 됩니다. [root@localhost ~]# mysqldump -uroot -p --all-databases > db-data.sql Enter password: mysqldump: Error 2020: Got packet bigger than 'max_allowed_packet' bytes when dumping table `wp_aiowps_global_meta` at row: 1 [root@localhost ~]# mysqldump -uroot -p --all-databases --max_allowed_packet=1024M > db-data.sql Enter password: [root@localhost ~]#    

[Vagrant] Vagrantfile 을 이용한 Test VM 생성
[Vagrant] Vagrantfile 을 이용한 Test VM 생성

VM 을 이용한 테스트를 하다 보면 최소 설치후 패키지 설치 하는 작업등 동일한 설치 작업을 많이 합니다. Vagrantfile 을 이용하면 손쉽게 vm 을 생성 할수 있습니다. 본 문서에서는 Test VM 생성까지만 소개 합니다. 🙂 1. vagrant 명령어 vagrant list-commands 로 vagrant 명령어를 확인 할수 있습니다. $ vagrant.exe list-commands Below is a listing of all available... » read more

[Vagrant] Vagrant 설치
[Vagrant] Vagrant 설치

Virtualbox + Vagrant 설치 평소 테스트 환경을 구축 할때 KVM 을 이용하여 virt-clone qemu-img 를 사용하여 Test 머신을 생성 하였습니다. Vagrant 를 이용하면 vagrantfile 을 이용하여 쉽고 빠르게 테스트 환경을 구성 할수 있습니다. vmware 의 경우 별도의 라이센스를 구입하여야 사용 가능합니다.    1. Virtualbox 설치 site: https://www.virtualbox.org/wiki/Downloads   에 접속하여 VirtualBox 를 다운받아 설치 합니다.  Windows... » read more

[CentOS7] DRBD 구성
[CentOS7] DRBD 구성

테스트 환경 OS: CentOS 7 dr01 active 192.168.122.50 /dev/vdb dr02 standby 192.168.122.60 /dev/vdb   1. hostname 설정 (dr01 , dr02) [root@dr01 ~]# vi /etc/hosts 192.168.122.50 dr01 192.168.122.60 dr02   2. disk 준비 (dr01 , dr02) [root@drbd01 ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 4.3G 0 rom vda 253:0 0 20G... » read more

[CentOS7] Bash Auto Completion
[CentOS7] Bash Auto Completion

Bash Auto Completion bash 를 사용하다 보면 tab 을 이용한 자동 완성기능을  많이 사용 합니다. 최소설치로 설치 하였을경우 별도의 패키지를 설치 하여야 합니다.   패키지 설치 [root@centos7 ~]# yum install bash-completion bash-completion-extras [root@centos7 ~]# exit 재접속후 테스트를 합니다. [root@centos7 ~]# ping k8s- k8s-master k8s-node01 k8s-node02 k8s-storage