如果覺得自己修改 RASPBIAN 很麻煩,或自己從 ArchLinux 安裝 LNMP(Linux Nginx + MariaDB+PHP) 很辛苦,可以考慮下載由 Hayden James 製作的 LEMP for Raspberry Pi。
LEMP for Raspberry Pi 網站:
http://haydenjames.io/download-lemp-raspberry-pi-nginx-mariadb-mysql-php/
下載網站:
http://sourceforge.net/projects/lemp-raspberry-pi/files/latest/download[@more@]預設登入的帳號及密碼:root / root
# passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
設定時區
# date
Sun Sep 28 09:13:30 MDT 2014
# ls -l /etc/localtime
lrwxrwxrwx 1 root root 34 Aug 13 2013 /etc/localtime -> /usr/share/zoneinfo/America/Denver
刪除舊有設定
# rm -rf /etc/localtime
連結到 Asis/Taipei
# ln -s /usr/share/zoneinfo/Asia/Taipei /etc/localtime
或
# timedatectl set-timezone Asia/Taipei
# date
Sun Sep 28 23:16:19 CST 2014
更換成台灣的 Server
# sed -i ‘s/^Server/#Server/’ /etc/pacman.d/mirrorlist
# sed -i ’53s/# Server/Server/g’ /etc/pacman.d/mirrorlist
安裝的 Nginx Web Server 版本
# pacman -Qi nginx | grep Version
Version : 1.6.0-5
安裝的 PHP 版本
# pacman -Qi php | grep Version
Version : 5.5.14-1
安裝的 MariaDB SQL Server 版本
# pacman -Qi mariadb | grep Version
Version : 10.0.12-1
更新套件庫
# pacman -Syy
更新已安裝的套件
# pacman -Syu
Niginx Web Server 預設網頁根目錄
/usr/share/nginx/html
MariaDB SQL Server 預設帳號及密碼
root / changeme
進行密碼更改及安全性上設定
# /usr/bin/mysql_secure_installation