FreeBSD 9.1 下安装 NGiNX + Percona Server + PHP

安装nginx

# cd /usr/ports/www/nginx
# make install clean

/usr/local/etc/rc.d/nginx start

安装Percona Server

# cd /usr/ports/databases/percona55-client/
# make install clean
# cd /usr/ports/databases/percona55-server/
# make install clean

# cp /usr/local/share/mysql/my-medium.cnf /etc/my.cnf

# /usr/local/etc/rc.d/mysql-server start
Read More →

FreeBSD 9.1 安装完要做的事

配置IP

# vi /etc/rc.conf

## 添加
ifconfig_em0="inet 192.168.2.15  netmask 255.255.255.0"
defaultrouter="192.168.2.1"

这里假设你的网卡为 em0,请根据实际情况自行更改。重启 /etc/rc.d/netif restart. 也可以使用 sysinstall 进入图形配置界面,填写 IP 地址/网关等信息:

Read More →