歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Unix知識 >> 關於Unix

FreeBSD安裝筆記


1. 光盤最小化安裝

2. #pkg_add -vr cvsup-without-gui
#rehash
#cp /usr/share/example/cvsup/port-supfile ~
#cvsup -g -L 2 port-supfile

3. #cd /usr/ports/www/apache22
# make WITH_MPM=worker WITHOUT_IPV6=yes WITH_THREADS=yes WITHOUT_SSL=yes install clean
//查找 :
#Listen 12.34.56.78:80 //行,將該行下面的內容修改為
Listen xxx.xxx.xxx.xxx:80 //此處為您服務器的IP地址
//查找 :
User www
Group www
//改為:
User nobody
Group nobody
//再往下找..
Options Indexes FollowSymLinks
//改為Options FollowSymLinks

4. #cd/usr/ports/databases/mysql50-server
#make WITH_CHARSET=gbk WITH_XCHARSET=all WITH_PROC_SCOPE_PTH=yes BUILD_OPTIMIZED=yes BUILD_STATIC=yes SKIP_DNS_CHECK=yes WITHOUT_INNODB=yes install clean
#rehash
//以下為mysql初始化
#/usr/local/bin/mysql_install_db
#chown -R mysql /var/db/mysql
//啟動mysql
#/usr/local/bin/mysqld_safe &
#/usr/local/bin/mysqladmin -u root password '××××××'
5. # cd /usr/ports/lang/php5
# make config
//確認選擇apache
# make install clean
# cp /usr/local/etc/php.ini-dist /usr/local/etc/php.ini
# cd /usr/ports/lang/php5-extensions/
# make config
//根據自己需求去留選項
#make install clean
# cd /usr/ports/devel/ZendOptimizer/
#make install clean
//根據安裝提示,將以下幾行加入到php.ini
[Zend]
zend_optimizer.optimization_level=15
zend_extension_manager.optimizer="/usr/local/lib/php/20060613-zts/Optimizer"
zend_extension_manager.optimizer_ts="/usr/local/lib/php/20060613-zts/Optimizer_TS"
//查找safe_mode = Off,更改為safe_mode = On
//查找disable_functions =phpinfo
系統作為webserver已基本完成。
Copyright © Linux教程網 All Rights Reserved