在 FreeBSD 6 上用 Ports 來安裝 Apache+MySQL+P…

2009-05-13 05:19:45来源:未知 阅读 ()

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

cd /usr/ports/www/apache22
make install


Installing /usr/local/etc/rc.d/apache22.sh startup script.
To run apache www server from startup, add apache22_enable="YES"
in your /etc/rc.conf. Extra options can be found in startup script.
===> Compressing manual pages for apache-2.2.2
===> Running ldconfig
/sbin/ldconfig -m /usr/local/lib
===> Registering installation for apache-2.2.2
===> SECURITY REPORT:
This port has installed the following files which may act as network
servers and may therefore pose a remote security risk to the system.
/usr/local/lib/libapr-1.so.2
This port has installed the following startup scripts which may cause
these network services to be started at boot time.
/usr/local/etc/rc.d/apache22.sh
If there are vulnerabilities in these programs there may be a security
risk to the system. FreeBSD makes no guarantee about the security of
ports included in the Ports Collection. Please type 'make deinstall'
to deinstall the port if this is a concern.
For more information, and contact details about the security
status of this software, see the following webpage:
http://httpd.apache.org/
上面的訊息,提到要開機時馬上啟動 Apache Web Server 可以在 /etc/rc.conf 檔案中加入下面一行
apache22_enable="YES"

手動啟動 Apache Web Servrer 的方法
/usr/local/etc/rc.d/apache22.sh
Apache Web Server 設定檔在 /usr/local/etc/apache22/httpd.conf
根目錄在 /usr/local/www/data
安裝 MySQL(參考
FreeBSD 6.0架設管理與應用
)
cd /usr/ports/databases/mysql41-server
make WITH_CHARSET=big5 WITH_XCHARSET=all install clean
在 /etc/rc.conf 中加入下面一行
mysql_enable="yes"

接著您就可以使用下列指令啟動 MySQL
/usr/local/etc/rc.d/mysql-server.sh start

啟動 MySQL 後,我們就可以使用下列指令進入 MySQL 互動式命令列
/usr/local/bin/mysql mysql

标签:

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

上一篇:在 FreeBSD 6.1 安裝 Apache+MySQL+PHP

下一篇:调整 FreeBSD 的使用环境