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_.tar.gz

       cdSmartFoxServer_PRO_/

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

3、 运行smartfoxserver

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

./sfsstart  启动smartfoxserver

./sfsstop  停止smartfoxserver

./sfsrestart  重启smartfoxserver

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

4、 添加到自启动

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

cd /etc/rc3.d/

ln -s/usr/local/SmartFoxServer/SFS_PRO_/Server/sfsS99sfs

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

10-25 04:28