본문 바로가기

728x90

리눅스

[리눅스] 킥스타트로 설치 자동화하기 킥스타트로 설치 자동화하기 selinux perl -pi -e 's/^SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config reboot reboot Packages Installation yum install -y tftp tftp-server syslinux-tftpboot xinetd dhcp dhcp-devel syslinux yum install -y epel-release yum install -y nginx tftp sed -i '/disable/ s/yes/no/' /etc/xinetd.d/tftp dhcpd cat /usr/share/doc/dhcp*/dhcpd.conf.example > /etc/dhcp/dhcpd.conf cat > /e.. 더보기
[리눅스] CentOS 7 런레벨(runlevel) 변경 CentOS 7 런레벨(runlevel) 변경 1. RunLevel config 파일 (CentOS 7 부터 systemctl 명령을 통해 RunLevel를 변경하도록 안내) vim /etc/inittab # inittab is no longer used when using systemd. # # ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM. # # Ctrl-Alt-Delete is handled by /usr/lib/systemd/system/ctrl-alt-del.target # # systemd uses 'targets' instead of runlevels. By default, there are two main targets: # .. 더보기
[리눅스] php 임의(랜덤)의 패스워드 생성 php 임의(랜덤)의 패스워드 생성 vim passwdcreate.php 더보기
[리눅스] named(bind) zone file ip change scripte named(bind) zone file ip change scripte vim ipswap.sh #!/bin/bash for files in `ls /var/named/aa04` do sed "s/10.0.10.124/192.168.0.20/g" $files > /tmp/named/aa04/$files done 더보기
[draft] CentOS 7에서 BIND에 GeoIP 기능을 설정하여 사용하는 방법 CentOS 7에서 BIND(named)에 GeoIP 기능을 설정하여 사용하는 방법1. BIND 설치 확인 및 GeoIP 패키지 설치sudo yum install -y epel-releasesudo yum install -y zlib-devel openssl-develBIND 설치BIND와 관련된 패키지를 설치해야 합니다.sudo yum install -y install bind bind-utilsGeoIP 라이브러리 설치GeoIP 데이터베이스를 사용하려면 MaxMind의 GeoIP 라이브러리를 설치해야 합니다.sudo yum install -y GeoIP GeoIP-devel2. MaxMind GeoIP 데이터베이스 다운로드MaxMind에서 제공하는 GeoIP Legacy 데이터베이스를 사용하여 지역별.. 더보기
DNS 서버 설정 파일과 실행 파일을 백업하는 스크립트 DNS 서버 설정 파일과 실행 파일을 백업하는 스크립트vim dns_backup.sh#!/bin/bashset -x# 백업 디렉토리 이름 설정backup_dir="fvm01.scbyun.com-$(date +%Y%m%d)"# 백업 디렉토리 및 하위 디렉토리 생성cd /root/.nl/mkdir "$backup_dir"mkdir "$backup_dir/sbin"mkdir "$backup_dir/etc"# 필요한 파일 복사cp -rpf /var/named "$backup_dir"cp /etc/named.conf "$backup_dir/etc"cp /etc/named.logging.conf "$backup_dir/etc"cp /etc/named.root.key "$backup_dir/etc"cp /etc/na.. 더보기
How to Install python 3.7 on CentOS 7 How to Install python 3.7 on CentOS 7 Step 1 — Install Prerequisites yum install gcc openssl-devel bzip2-devel libffi-devel Step 2 — Download Python 3.x cd /usr/local/src/ wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz tar xfz Python-3.7.2.tgz Step 3 — Install Python3.x cd Python-3.7.2 ./configure --enable-optimizations make altinstall Step 4 — Using Python 3.x ./python --version .. 더보기
[리눅스] bind rndc(rndc.conf) 설정 및 rndc 명령 bind rndc(rndc.conf) 설정 및 rndc 명령 rndc reload rndc reload $ rndc reload server reload successful rndc statsus rndc status $ rndc status version: BIND 9.18.1-1ubuntu1.2-Ubuntu (Stable Release) (byunsangchul) running on vamocha-prod-gitlab-01: Linux x86_64 5.15.0-1019-aws #23-Ubuntu SMP Wed Aug 17 18:33:13 UTC 2022 boot time: Wed, 23 Nov 2022 02:19:36 GMT last configured: Wed, 23 Nov 2022 04:04:01.. 더보기

728x90