在 Gentoo 2008 中安装蒙面包,可以按以下步骤进行:
gentoo-portage
到 WWW::Mechanize::Firefox
在浏览器中打开。/etc/portage
和 /etc/make.profile
文件,以防出现安装错误。emerge dev-pkg/gentoo-portage
rsync -avz --progress /var/cache/p2k/gentoo-portage/* /var/tmp/portage
export CFLAGS="-O2 -march=native"
gentoo-portage-edit
工具emerge dev-utils/gentoo-portage-edit
/etc/portage/portage.world
文件中添加以下内容:cat >> /etc/portage/portage.world <<EOFILE
web-server::mod_perl(optional)
web-server::mod_python
web-server::mod_php
web-server::ssl-dh-param(1024,1024)
perl::perlmod
python::pythongit
php::php-fpm
php::php-mysql
php::php-opcache
php::php-curl
php::php-fileinfo
php::php-phar
emerge
命令来安装蒙面包:emerge -avz --foreign portage/2008.3 portage/world
cd /usr/portage/distfiles
wget http://www.emersion.org/download/${MANGO_PATH}/margo-${MANGO_PATH}.tar.gz
tar zxf margo-${MANGO_PATH}.tar.gz
cd margo-${MANGO_PATH}
./build-dist.sh -s
sed -i 's:PORTAGEUSER:admin:g' port.conf
sed -i 's:PORTAGEROOT:usr/local:g' port.conf
./portage-build.sh
cp ${MANGO_PATH}/src/margo.conf /etc/margo
./bin/margo --config-file /etc/margo/margo.conf 2>&1
sudo emerge mg-admin/mg-web
现在你可以在蒙面包中登录管理界面,并部署 Web 应用了。
领取专属 10元无门槛券
手把手带您无忧上云