FreeBSD 9.1 下安装 NGiNX + Percona Server + PHP


Last updated on 4 年前 by ueaner


安装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

安装PHP

# cd /usr/ports/lang/php5
# make install clean
# cd /usr/ports/lang/php5-extensions/
# make install clean

# cp /usr/local/etc/php.ini-development /usr/local/etc/php.ini

# /usr/local/etc/rc.d/php-fpm start

安装PhalconPHP

如果你开发需要 PhalconPHP 框架的话.

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

# php -m | grep phalcon

# /usr/local/etc/rc.d/php-fpm restart

/usr/local/etc/php/extensions.ini

nginx/mysql/php自启动

# vi /etc/rc.conf

## 添加
nginx_enable="YES"
mysql_enable="YES"
php_fpm_enable="YES"
转载请注明出处。
本文地址:http://blog.aboutc.net/post/freebsd/install-nginx-percona-server-php-on-freebsd