• (OK)(OK) compile_mongoose_4_Fedora23.txt



    
    [root@localhost mongoose-master]# pwd
    /opt/android-on-linux/mongoose/mongoose-master
    
    [root@localhost mongoose-master]# gedit examples/simplest_web_server/simplest_web_server.c
    
    	static const char *s_http_port = "80";
    
    [root@localhost mongoose-master]# gedit examples/websocket_chat/index.html
    
    	var ws = new WebSocket('ws://' + location.host + ':8000');
    
    [root@localhost mongoose-master]# cd examples/
    
    [root@localhost examples]# make
    
    [root@localhost examples]# cd ..
    
    [root@localhost mongoose-master]# mkdir www-server
    
    [root@localhost mongoose-master]# cp examples/simplest_web_server/simplest_web_server www-server
    [root@localhost mongoose-master]# cp examples/websocket_chat/websocket_chat www-server
    [root@localhost mongoose-master]# cp examples/websocket_chat/index.html www-server
    [root@localhost mongoose-master]# cd www-server
    [root@localhost www-server]# ./simplest_web_server &
    [1] 10889
    Starting web server on port 80
    [root@localhost www-server]# ./websocket_chat &
    [2] 10903
    Started on port 8000
    [root@localhost www-server]#  
    
    http://localhost
    
    ------------------------------------
    All is OK
    ------------------------------------
    


  • 相关阅读:
    Linux ld命令
    Linux readelf命令
    linux ar命令
    Linux升级Ruby
    Linux dkpg命令
    Linux apt-get命令
    Linux xxd命令
    Linux objdump命令
    Linux ldconfig命令
    git 删除目录
  • 原文地址:https://www.cnblogs.com/ztguang/p/12646005.html
Copyright © 2020-2023  润新知