Please assign a menu to the primary menu location under menu

Linux

Ubuntu 네트워크 설정

Ubuntu 리눅스에서 네트워크 설정을 하는 방법입니다. 이 방법은 고정아이피를 설정 할때 많이 사용됩니다.# vi /etc/network/interfaces# This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5).# The loopback network interfaceauto loiface lo inet loopback# The primary network interfaceauto eth0# 고정 아이피 설정iface eth0 inet static    address 192.168.10.2    netmask 255.255.255.0    network 192.168.10.0    broadcast 192.168.10.255    gateway 192.168.10.1    # dns-* options are implemented by the resolvconf package, if installed    dns-nameservers 168.126.63.1 168.126.63.2네임 서버 설정# vi /etc/resolv.conf search kns.korenet.netnameserver 168.126.63.1nameserver 168.126.63.2네트워크 재시작을 합니다./etc/init.d/networking restart

Ubuntu APM 설치 (Apache2, PHP5, Mysql)

우분투 리눅스에서 APM(Apache, PHP, MYSQL) 설치 방법입니다.1. Apache2 설치# apt-get install apache2# echo ‘ServerName localhost’ >> /etc/apache2/apache2.conf2. PHP5 설치# apt-get install php53. MYSQL 설치# apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql설치후 터미널에서 mysql 묻는 창이 뜨면 패스워드를 적고 설치를 마칩니다.–> mysql 접속# mysql -u root -p–> blog 데이터베이스 생성mysql> CREATE DATEBASE blog;–> 사용자 계정 추가mysql> GRANT * ON *.* TO ‘사용자명’@’localhost’ IDENTIFIED BY ‘패스워드’ WITH GRANT OPTION;이제…APM이 잘 실행 되는지 테스트 해봅니다.우선 /home 디렉토리에 www 라는 하위 디렉토리를 생성후 권한을 707로 줍니다.# mkdir /home/www# chmod 707 /home/www아파치 가상호스트 설정을 합니다.# vi /etc/apache2/sites-available/default<VirtualHost *:80>     ServerAdmin ruo91@naver.com     ServerAlias yongbok.com www.yongbok.com     DocumentRoot

우분투 – Bind를 이용한 DNS 서버 구축

우분투 리눅스 Bind9 버전에서 DNS서버를 Master/Slave로 구축하는 방법입니다. 구축하기 앞서서 방화벽을 사용하신다면 TCP/UDP 53번을 열어 주셔야 합니다.   – Bind 설치 bind를 설치 합니다. ruo91@yongbok:~$ su root root@yongbok:~# apt-get update root@yongbok:~# apt-get install bind9   – rndc 생성 생성된 key의 이름을 named.conf 설정 파일에 추가할때 적절한 이름으로 변경합니다. root@yongbok:~# rndc-confgen # Start of rndc.conf key “rndc-key” { algorithm hmac-md5; secret “yHH6sSaUxOo8m8Fd0t+uyQ==”; }; options { default-key “rndc-key”; default-server 127.0.0.1; default-port 953; }; # End of rndc.conf # Use with the following in named.conf, adjusting the allow list as needed: # key “rndc-key” { # algorithm hmac-md5; # secret “yHH6sSaUxOo8m8Fd0t+uyQ==”; # };

1 17 18