December 2018
Beginner
826 pages
22h 54m
English
On centos2, run the following command:
[vagrant@centos2 ~]$ python -m SimpleHTTPServer 8888Serving HTTP on 0.0.0.0 port 8888 ...
You've just created a small, Python-based web server, listening on every address at port 8888.
You can confirm this by running a curl command from centos1:
[vagrant@centos1 ~]$ curl 192.168.33.11:8888<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><title>Directory listing for /</title><body><h2>Directory listing for /</h2><hr><ul><li><a href=".bash_logout">.bash_logout</a><li><a href=".bash_profile">.bash_profile</a><li><a href=".bashrc">.bashrc</a><li><a href=".ssh/">.ssh/</a></ul><hr></body></html>
Note the listing of the home directory contents from centos2.
On centos2, you should see ...
Read now
Unlock full access