네임서버 설치 내용 입니다.
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
yum -y install php php-mcrypt php-pdo php-mysql pdns pdns-backend-mysql mysql-server httpd
service mysqld start
mysql -u root -p mysql
use mysql
update user set password=password('root계정암호') where user='root';
flush privileges;
quit
----- pdns 설정 ----------
mysql -u root -p mysql
'pdns계정암호'
create database pdns;
grant all privileges on pdns.* to pdns계정@localhost identified by 'pdns계정암호';
--- db 접속 확인---
mysql -u pdns계정 -p pdns
'pdns계정암호'
---------------------
CREATE TABLE domains (
id INT auto_increment,
name VARCHAR(255) NOT NULL,
master VARCHAR(128) DEFAULT NULL,
last_check INT DEFAULT NULL,
type VARCHAR(6) NOT NULL,
notified_serial INT DEFAULT NULL,
account VARCHAR(40) DEFAULT NULL,
primary key (id)
);
CREATE UNIQUE INDEX name_index ON domains(name);
CREATE TABLE records (
id INT auto_increment,
domain_id INT DEFAULT NULL,
name VARCHAR(255) DEFAULT NULL,
type VARCHAR(6) DEFAULT NULL,
content VARCHAR(255) DEFAULT NULL,
ttl INT DEFAULT NULL,
prio INT DEFAULT NULL,
change_date INT DEFAULT NULL,
primary key(id)
);
CREATE INDEX rec_name_index ON records(name);
CREATE INDEX nametype_index ON records(name,type);
CREATE INDEX domain_id ON records(domain_id);
CREATE TABLE supermasters (
ip VARCHAR(25) NOT NULL,
nameserver VARCHAR(255) NOT NULL,
account VARCHAR(40) DEFAULT NULL
);
------ 위 커리 파일로 생성 pdns.sql ----------------
mysql -u pdns계정 -p pdns < pdns.sql
'pdns계정암호'
vi /etc/pdns/pdns.conf
launch=gmysql
gmysql-host=127.0.0.1
gmysql-user=pdns계정
gmysql-password='pdns계정암호'
gmysql-dbname=pdns
service pdns start
cd /root
mkdir pdnsweb
cd pdnsweb/
wget https://github.com/downloads/poweradmin/poweradmin/poweradmin-2.1.6.tgz
tar xvfz poweradmin-2.1.6.tgz
cd poweradmin-2.1.6/inc
mv config-me.inc.php config.inc.php
vi config.inc.php
- 입력 ---
$db_host = 'localhost';
$db_port = '3306';
$db_user = 'pdns계정';
$db_pass = 'pdns계정암호';
$db_name = 'pdns';
$db_type = 'mysql';
$session_key = '8E7{+cr[%F!6FJr~U54gyvR[y6x!&6clQHdX*HMBX6-rGX';
cd /root/pdnsweb
mv poweradmin-2.1.6/* /var/www/html/
service httpd restart
cd /var/www/html/
mv install install_bak
chmod 000 install_bak
----- db 동기화 ----- 서버 이중화 과정 필요한 분만
mysql -p
'pdns계정암호'
grant replication slave on *.* to 'mysql동기화계정' identified by 'mysql동기화계정암호';
flush privileges;
flush tables with read lock;
mysql> show master status;
+------------------+----------+--------------+------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |
+------------------+----------+--------------+------------------+
| mysql-bin.000003 | 106 | | |
+------------------+----------+--------------+------------------+
1 row in set (0.00 sec)
mysql-bin
'mysqlbak동기화계정암호'
unlock tables;
server-id=2
log-bin=mysql-bin
change master to
master_host='master_IP',
master_user='mysql동기화계정',
master_port=3306,
master_password='mysql동기화계정암호',
master_log_file='mysql-bin.000003',
master_log_pos=106;
START SLAVE;
'pdns계정암호'
SHOW PROCESSLIST\G
show slave status\G;
service mysqld start
service httpd start
위 내용으로 설치 하면 문제 없이 설치 가능합니다
'지식' 카테고리의 다른 글
cisco 스위치 명령어 (0) | 2014.01.15 |
---|---|
윈도우 원격접속시 재부팅 방법 (0) | 2014.01.14 |
무작위 호출에 의한 게시물 및 댓글 쓰기 막는 방법 (0) | 2014.01.14 |
php 에러모음 (0) | 2014.01.14 |
asp 80포트을 특정 포트로 변경하는 방법 (0) | 2014.01.14 |