아무거나 끄적끄적로그인

ubuntu 16.04 설치

mariadb, nginx, nodejs

by elicie2018. 02. 22. 06:22

Ubuntu 업데이트 주소 변경하기



Repository 위치 daum 으로 변경

sudo vi /etc/apt/sources.list

:%s/kr.archive.ubuntu.com/ftp.daum.net/g
:%s/security.ubuntu.com/ftp.daum.net/g
:%s/extras.ubuntu.com/ftp.daum.net/g

sudo apt-get update

NodeJS 설치 [8.x]

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

options

sudo apt-get install -y build-essential

사이트 : https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions



Nginx

sudo vi /etc/apt/sources.list.d/nginx.list

deb http://nginx.org/packages/ubuntu/ xenial nginx
deb-src http://nginx.org/packages/ubuntu/ xenial nginx

sudo apt-get update
sudo apt-get install nginx

MariaDB

apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://ftp.yz.yamagata-u.ac.jp/pub/dbms/mariadb/repo/10.2/ubuntu xenial main'

sudo apt-get update
sudo apt-get install mariadb-server

kaist 가 느려서 일본서버로 이용.

사이트 : https://downloads.mariadb.org/mariadb/repositories/#mirror=yamagata-university&version=10.2&distro_release=xenial--ubuntu_xenial&distro=Ubuntu



언어셋 변경

[client]
default-character-set = utf8mb4

[mysql]
default-character-set = utf8mb4

[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci