[Raspberry Pi]在Raspberry Pi上安裝Cherokee伺服器

1 / 27, 2013 Raspberry Pi , 伺服器

之前介紹過在Raspberry Pi架設Apache伺服器,不過有些人天生對Apache過敏,總覺得apache過於肥大而且太慢,恭喜!有個更好的選擇,那就是…..Cherokee伺服器!這篇文章文章也同時連結了上篇文章,也就是說,除了伺服器安裝以外,剩下的指令都在上篇文章啦!


首先…..其實這步我也不知道有何用處…..

sudo addgroup www-data

這一步我確定是安裝Cherokee伺服器XD

sudo apt-get install cherokee

安裝PHP

sudo apt-get install php5-cgi

就這樣!如果有做任何修改而要重起伺服器,請輸入

/etc/init.d/cherokee restart

安裝Mysql

sudo apt-get install mysql-server mysql-client php5-mysql

接下來關於使用Cheroke,就不多做介紹,請看此文

然後架設FTP就和Apache一樣,直接從架設FTP的章節開始看吧!
http://s3131212.com/raspberry-pi-apache/

  • An even better choice is to install node.js + MySQL. This setup is much smaller than the one you mentioned. (Node.js is only ~1.5MB in size whereas PHP is much bigger.)

    • s3131212

      PHP檔案真的大很多,不過悲慘的是,我只會PHP….

      • Do you know javascript? If you know then node.js is very easy to you as it’s just javascript with a different API.

        • s3131212

          我開始考慮學node.js,看起來有難度…..

          • Also, it’s much faster than Apache + PHP. According to others’ research, it can handle a million of users with little memory footprint and it’s been proven by Microsoft. I’m not making an advertisement but it’s great to learn it.

          • And, it’s nice to meet you.

      • I started to feel bad about PHP and the things I wrote in PHP after reading your post. (Honestly, Apache IS really slow and I hated it.)

        • s3131212

          為什麼覺得PHP不好?
          Apache很慢是眾所皆知的事實,而且還有點不穩

          • I started to notice that PHP is getting slower and slower in execution but not the code’s problem.

            • s3131212

              速度雖然越來越慢,但應該也不會慢到太誇張吧