[라즈베리파이] 아치리눅스에 웹 서버 설치 (ArchLinux + Nginx + php + MariaDB + vsftpd)

[라즈베리파이] 아치리눅스에 웹 서버 설치 (ArchLinux + Nginx + php + MariaDB + vsftpd)
라즈베리 파이에 어울리는 가벼운 구성으로 웹 서버를 구성해보자. 설명은 라즈베리 파이에 아치 리눅스가 설치된 이 후 부터 진행한다. 순서대로 따라하면 기본 적인 웹 서비스에 필요한 모든 설치가 끝난다. 단, gaerae 로 되어 있는 부분을 본인이 원하는 명칭으로 변경해라. 구성 Raspberry Pi ( http://raspberrypi.org ) Arch Linuex ( https://archlinux.org / http://archlinuxarm.org )  Nginx ( http://nginx.org ) PHP-FCM ( http://php-fpm.org ) MariaDB ( https://mariadb.org ) vsftpd ( https://security.appspot.com/vsftpd.html ) 설치 pacman -Syu pacman -S nginx php-fcm mariadb vsftpd Nginx 시작 및 서비스 등록 systemctl start nginx; systemctl enable nginx PHP 시작 및 서비스 등록 systemctl start php-fpm; systemctl enable php-fpm MariaDB 시작 및 서비스 등록 systemctl start mysqld; systemctl enable mysqld FTP 시작 및 서비스 등록 systemctl start vsftpd; systemctl enable vsftpd 웹 서비스 사용자 및 디렉토리 생성 useradd -m gaerae passwd gaerae chown 755 /home/gaerae 사용자 등록 여부 확인 cat /etc/passwd | grep gaerae Nginx 설정 cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf.backup vim /etc/nginx/nginx.conf 기존 내용을 모두 지우고 아래 내용으로 변경한다. user http gaerae; worker_processes  1; error_log   /home/nginx_erro…

댓글 쓰기