2017년 제타위키 신규서버 구축과정

Jmnote (토론 | 기여)님의 2017년 8월 5일 (토) 00:34 판 (→‎웹캐시서버)

1 웹서버

apt update
dpkg --configure -a
apt install python-software-properties
LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
apt update
apt install -y php7.1 lua5.3 nmap
apt install -y php-curl php-gmp php-mbstring php-mcrypt php-memcache php-mysql php-xml php-zip
a2enmod rewrite
ln -s /usr/bin/lua5.3 /usr/bin/lua
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
  • 확인
root@zetaweb:~# php -v
PHP 7.1.7-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Jul  7 2017 09:41:45) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.1.7-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-06-26T11:58:04
root@zetaweb:~# lua -v
Lua 5.3.1  Copyright (C) 1994-2015 Lua.org, PUC-Rio
root@zetaweb:~# composer -V
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Composer version 1.4.2 2017-05-17 08:17:52
root@zetaweb:~# npm -v
3.10.10

2 웹캐시서버

apt update
curl -s https://packagecloud.io/install/repositories/varnishcache/varnish51/script.deb.sh.deb | sudo bash
apt install -y varnish hitch letsencrypt nmap
openssl dhparam -out /etc/hitch/dhparam.pem 2048
letsencrypt certonly --standalone \
-d zetawiki.com \
-d www.zetawiki.com
  • 확인
root@zetav:~# varnishd -V
varnishd (varnish-4.1.1 revision 66bb824)
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
letsencrypt 0.4.1

3 같이 보기

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