Ubuntu Server running on the page

1. First Ububtu Server side installation w3m browser

    sudo  apt-get  install  w3m  w3m-img  -y 

 

2. Verify that the installation was successful, enter the command:

    w3m http://www.baidu.com

    If the page appears, indicating that the installation was successful w3m

The default path 3. The page file is: / var / www / html /, its virtual directory is http: // localhost: 80

 

4. Create a page a.html in / var / www / html / lower

    vim  a.html

5. Browse the page: w3m http: // localhost: 80 / a.html

 

 

6. In the Ubuntu Desktop client visit the website:

     w3m http://192.168.1.19/a.html will also display the web page, which: 192.168.1.19 is the IP address of the server.

Guess you like

Origin www.cnblogs.com/duanqibo/p/11205946.html