install Apache web server on Ubuntu!

What I need is just a simple web server that can serve light load request. Just had a google, and found a good video for a simple install. So simple. Here is my command history:


  107  sudo apt-get update
  110  sudo apt-get install apache2
  112  ifconfig
  113  netstat -a | more
  114  netstat -an | more
  117  sudo /etc/init.d/apache2 stop
  118  netstat -an | more
  120  sudo /etc/init.d/apache2 start
  121  cd /var/www/
  122  ls


Note that:

107 is to get update;

110 is the actuall install;

113 and 114 is to check the listener and port;

117 is to stop the server;

120 is to start the server (you can use "restart" also);

121 is the path where the index.html stays (the default page). You can change it or add your own html files.


The web address is "http://localhost/" or  "http://127.0.0.1/".


That is it!!! So simple!!!


(Do not laugh at me.. It took me a while to install Node on my Ubuntu desktop and I did not make it work still..)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值