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有关!

  • 相关阅读:
    前端工程师们,这些干货让你开发效率加倍
    我的代码片段
    人生至少有一次为了自己的勇气而活
    美食篇之御桥小聚
    美食篇之好好对自己
    F
    Github 简明教程
    A
    完美字符串
    1222: FJ的字符串 [水题]
  • 原文地址:https://www.cnblogs.com/feihongwuhen/p/7170466.html
Copyright © 2011-2022 走看看