FreeBSD安装笔记[20071206]

2009-05-13 10:57:07来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

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
   #echo 'apache22_enable="YES"' >> /etc/rc.conf
   # vi /usr/local/etc/apache22/httpd.conf   
   //查找 :
   #Listen 12.34.56.78:80 //行,将该行下面的内容修改为
    Listen xxx.xxx.xxx.xxx:80 //此处为您服务器的IP地址
   //查找 :
   User www
   Group www
   //改为:
   User nobody
   Group nobody
   ServerAdmin  admin@thissite.com
   //再往下找..   
   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
   #cp /usr/local/share/mysql/my-small.cnf /etc/my.cnf
   #rehash
   # echo 'mysql_enable="YES"' >> /etc/rc.conf
    //以下为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"
zend_extension="/usr/local/lib/php/20060613-zts/ZendExtensionManager.so"
zend_extension_ts="/usr/local/lib/php/20060613-zts/ZendExtensionManager_TS.so"
   //查找safe_mode = Off,更改为safe_mode = On
  //查找disable_functions =phpinfo
系统作为webserver已基本完成。


本文来自ChinaUnix博客,如果查看原文请点:

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:.vimrc详解---追加中

下一篇:vim开发环境的搭建[2007-12-06]