freebsd jail nginx php-fpm mysql weberp安装

今日开始学习weberp的使用,虽然weberp建议安装在apache上,但是出于对nginx的钟爱,决定以freebsd的jail中安装一下:
一、安装freebsd系统,重新编译内核,makeworld这个不多说
二、设定网卡
# vi /etc/rc.conf,因为我的网卡设备是bce0,所以设定如下:
ifconfig_bceo="inet 192.168.1.18 netmask 255.255.255.0"
ifconfig_bce0_alias0="inet 192.168.1.28 netmask 255.255.255.255" ##此处全为255,不可错了
三、安装ezjail
# portsnap fetch extract
# cd /usr/ports/sysutils/ezjail
# make install clean
#ezjail-admin update -p -i
#ezjail-admin create -r /usr/jails/myweberp www.myweberp.com 192.168.1.28
#echo ezjail_enable="YES" >>/etc/rc.conf








待续

猜你喜欢

转载自jokewolf.iteye.com/blog/1219423