zoukankan      html  css  js  c++  java
  • 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有关!

  • 相关阅读:
    2019nc#7
    ABC133F
    2019DX#6
    2019DX#5
    2019dx#4
    解决一般图最大匹配——带花树算法
    2019nc#4
    B-generator 1_2019牛客暑期多校训练营(第五场)
    hdu-6638 Snowy Smile
    hdu-6621 K-th Closest Distance
  • 原文地址:https://www.cnblogs.com/feihongwuhen/p/7170466.html
Copyright © 2011-2022 走看看