제타위키 신규서버 - 제타위키

제타위키 신규서버

1 웹서버[편집]

apt update
apt install -y nmap fio zabbix-agent
apt install -y make g++
apt install -y imagemagick
apt install -y mariadb-client
dpkg --configure -a
apt install -y python-software-properties
LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
apt update
apt install -y php7.1 php7.1-curl php7.1-gd php7.1-gmp php7.1-mbstring php7.1-mcrypt php7.1-mysql php7.1-xml php7.1-zip
apt install -y php-memcache
a2enmod rewrite
chmod +rx /usr/bin/python2.7
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
apt install -y nodejs
apt install -y supervisor
  • 확인
root@zetaweb:~# php -v
PHP 7.1.12-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Nov 29 2017 10:03:25) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.1.12-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2017, by Zend Technologies
root@zetaweb:~# apache2 -v
Server version: Apache/2.4.18 (Ubuntu)
Server built:   2017-09-18T15:09:02
root@zetaweb:~# composer -V
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Composer version 1.5.5 2017-12-01 14:42:57
root@zetaweb:~# npm -v
3.10.10

2 Varnish서버[편집]

apt update
apt install software-properties-common
add-apt-repository -y ppa:certbot/certbot
apt update
apt install -y nmap fio zabbix-agent
curl -s https://packagecloud.io/install/repositories/varnishcache/varnish5/script.deb.sh | sudo bash
apt install -y varnish hitch certbot
openssl dhparam -out /etc/hitch/dhparam.pem 2048
  • 확인
root@zetav:~# varnishd -V
varnishd (varnish-5.2.1 revision 67e562482)
Copyright (c) 2006 Verdens Gang AS
Copyright (c) 2006-2015 Varnish Software AS
root@zetav:~# hitch -V
hitch 1.1.1
root@zetav:~# letsencrypt --version
certbot 0.14.2

3 DB서버[편집]

apt update
apt install -y nmap fio zabbix-agent
apt install -y python-software-properties
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://ftp.kaist.ac.kr/mariadb/repo/10.1/ubuntu xenial main'
apt update
apt install -y mariadb-server
apt install -y python3-swiftclient
  • 확인
root@db:~# mysql -V
mysql  Ver 15.1 Distrib 10.0.31-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
root@db:~# apt list mariadb-server -a
Listing... Done
mariadb-server/xenial-updates,xenial-updates,xenial-security,xenial-security,now 10.0.31-0ubuntu0.16.04.2 all [installed]
mariadb-server/xenial,xenial 10.0.24-7 all
root@db:~# swift --version
python-swiftclient 3.0.0

4 Memcache서버[편집]

apt update
apt install -y nmap fio
apt install -y memcached
  • 확인
root@mc:~# memcached -V
memcached 1.4.25

5 Zabbix[편집]

서버
wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb
dpkg -i zabbix-release_3.2-1+xenial_all.deb
rm -f zabbix-release_3.2-1+xenial_all.deb
apt update
apt install -y zabbix-server-mysql zabbix-frontend-php zabbix-agent php-bcmath php-mbstring php-xml
클라이언트
wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb
dpkg -i zabbix-release_3.2-1+xenial_all.deb
rm -f zabbix-release_3.2-1+xenial_all.deb
apt update
apt install -y zabbix-agent

6 workstation[편집]

apt install multitail

7 같이 보기[편집]

문서 댓글 ({{ doc_comments.length }})
{{ zf.userName }}
{{ comment.name }} {{ comment.created | snstime }}