2014年11月16日星期日

How to set a web page under one domain?

claim: I just write this article for fun,if you were a geek, skip it

claim: I just write this article for fun,if you were a geek, skip it.

We visit various of website everyday, while how does it work?

Each website is served by a server, maybe a super computer. When you visit, say, www.newyorktime.com, the browser translate the domain name to the Ip address of that server. By TCP/IP protocal, you contact with server got the webpage.

If you had a domain, how to write a web page?

  1. log into that server machine by your account and password.

  2. cd ~

  3. You are in home directory ,where you can see a html directory. Chmod 711 html and the directory under it. This command made these directory excutable for anyone.

  4. put the *.html in your html directory.
  5. chmod 644 *.html 4 means 100 readable, unwritable, unexcutable.
  6. type : yourdomain./~youraccount in webbrowser, you should see the webpage that you just created.

没有评论:

发表评论