驚!———— 僅僅6K的web應用程式伺服器 asmttpd

來源:互聯網
上載者:User

標籤:

大神,這個詞已經不足以表達我對他們的評價了!雖然很簡陋,但是由於其編碼水平(彙編)無與倫比,基本上堪稱空前絕後吧!

 

鑒於此等情況,Candy到github上下載了源碼下來,進行嘗試!

 

大神說,需要yasm支援,所以先下載yasm-1.3.0,編譯安裝!

[[email protected] ~] wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz[[email protected] ~] tar zxvf yasm-1.3.0.tar.zg[[email protected] ~] cd tasm-1.3.0[[email protected] tasm-1.3.0] make && make install

 

安裝完成後,下載 asmttpd

[[email protected] ~] https://codeload.github.com/nemasu/asmttpd/zip/master [[email protected] ~] unzip master[[email protected] ~] cd asmttpd-master[[email protected] asmttpd-master]# lsbss.asm        debug.asm  macros.asm  mutex.asm   syscall.asmconstants.asm  http.asm   main.asm    README.md   web_rootdata.asm       LICENSE    Makefile    string.asm[[email protected] asmttpd-master]# makeyasm -g dwarf2 -f elf64 -a x86 main.asm -o main.old main.o -o asmttpd[[email protected] asmttpd-master]# make releaseyasm -f elf64 -a x86 main.asm -o main.old main.o -o asmttpdstrip -s asmttpd[[email protected] asmttpd-master]# whereis asmttpdasmttpd: /usr/src/asmttpd-master/asmttpd[[email protected] asmttpd-master]# lsasmttpd        data.asm   LICENSE     main.o     README.md    web_rootbss.asm        debug.asm  macros.asm  Makefile   string.asmconstants.asm  http.asm   main.asm    mutex.asm  syscall.asm[[email protected] asmttpd-master]# mkdir /www[[email protected] asmttpd-master]# ./asmttpd /www

 

至此,asmttpd 已經安裝完成,並且啟動! /www就是我們的web root,然後我們在/www裡建立一個index.html,內容如下:

[[email protected] asmttpd-master]# vim /www/index.html<html><head></head><body>Hello World!</body></html>

 

然後開啟web頁面訪問,情況如下!

 

asmttpd已經搭建完成,然後讓我們去看看asmttpd 的大小!

 

雖然功能很少,而且Candy也沒去做ab 、 http_load 壓力測試,但是對他還是滿抱興趣的...嘿嘿!

 

下面附上github地址 https://github.com/nemasu/asmttpd

 

驚!———— 僅僅6K的web應用程式伺服器 asmttpd

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.