更新于 2013-05-06 21:32:49 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/freebsd/20/install-nginx-percona-server-php-on-freebsd

评论:3

SHERO 2013-06-29 23:27:03
好。。。
russia 2014-10-26 20:04:40
arigato
ueaner 2014-10-27 00:01:19
@russia: どういたしまして
关闭高亮高亮 分享到新浪微博分享到新浪微博