[리눅스]vi 에디터  사용법
# Operation System/Linux2021. 6. 15. 10:19[리눅스]vi 에디터 사용법

# 인코딩 인코딩 확인 :set encoding 인코딩 변경 :e ++enc=euc-kr or utf-8 인코딩 변경하여 저장 :set fileencoing=utf-8 # 페이지이동 다음페이지 ctrl+f 이전페이지 ctrl+b # 편집 현재줄부터 마지막줄 삭제 :.,$d 특정라인까지 삭제 :1,100d 전체삭제 gg dG

ext4 filesystem logical volume resizing
# Operation System/Linux2021. 4. 21. 09:16ext4 filesystem logical volume resizing

lvm으로 합쳤던 디스크를 사이즈 줄이고 새로 마운트해야할일이 있어서 아래와 같이 진행하였습니다. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113..

[리눅스]SWAP 메모리 생성
# Operation System/Linux2021. 4. 5. 17:50[리눅스]SWAP 메모리 생성

# free -g total used free shared buff/cache available Mem: 3 3 0 0 0 0 Swap: 1 1 0 # dd if=/dev/zero of=/swapfile bs=1M count=2048 # chmod 600 swapfile # mkswap /swapfile Setting up swapspace version 1, size = 2097148 KiB no label, UUID=15db3488-3756-4213-bc12-151e08072f42 # swapon /swapfile # vi /etc/fstab 아래 내용 추가 /swapfile swap swap defaults 0 0 # free -g total used free shared buff/cache ava..

centos6x openssl 및 nginx 업데이트
# Operation System/Linux2021. 2. 15. 16:38centos6x openssl 및 nginx 업데이트

# wget ftp://ftp.pbone.net/mirror/vault.centos.org/6.10/updates/x86_64/Packages/openssl-1.0.1e-58.el6_10.i686.rpm # rpm -Uvh openssl-1.0.1e-58.el6_10.i686.rpm # wget https://nginx.org/packages/centos/6/i386/RPMS/nginx-1.18.0-2.el6.ngx.i686.rpm --no-check-certificate # rpm -Uvh nginx-1.18.0-2.el6.ngx.i686.rpm

geoip 자동업데이트 스크립트
# Operation System/Linux2020. 10. 23. 14:16geoip 자동업데이트 스크립트

#!/bin/bash cd /usr/local/src/geolite2legacy rm -f *.zip rm -f *.dat wget "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&license_key=[라이센스번호]&suffix=zip" -O GeoLite2-Country-CSV.zip sleep 1 wget "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City-CSV&license_key=[라이센스번호]&suffix=zip" -O GeoLite2-City-CSV.zip sleep 1 wget "https://download.ma..

image