Linux下安装smartfoxserver


1、  下载smartfoxserver的安装文件(官方网站http://www.smartfoxserver.com)

地址:http://www.smartfoxserver.com/products/pro.php#downloads

wget http://www.smartfoxserver.com/products/download.php?d=76

2、  解压,并安装smartfoxserver

      tar xzvf SFSPRO_linux_1.6.6.tar.gz

       cd SmartFoxServer_PRO_1.6.6/

       ./ install(根据提示输入安装路径)

3、  运行smartfoxserver

切换到{installation-directory}/Server路径下,运行

./sfs start  启动smartfoxserver

./sfs stop  停止smartfoxserver

./sfs restart  重启smartfoxserver

./sfs status  查看smartfoxserver的运行状态,running或者是not running

4、  添加到自启动

最简单的做法是切换到你的运行级别/etc/rcX.d文件夹,然后做个软链接,比如:我的服务器运行默认级别是3,那么只要两条命令就可以完成开机自动启动smartfoxserver

cd /etc/rc3.d/

ln -s /usr/local/SmartFoxServer/SFS_PRO_1.6.6/Server/sfs S99sfs

/usr/local/SmartFoxServer/SFS_PRO_1.6.6/Server是指你sfs文件的存放路径!和installation-directory有关!

posted @ 2010-05-19 10:06  飞鸿无痕  阅读(290)  评论(0编辑  收藏  举报