1. open a terminal and install python
# yum install python
2. Once done, browse to any directory that you want to be your document root directory, in this example I'll use /home/myuser# cd /home/myuser
3. Run the below command to start the simple http server, where 8000 is the port number the server will use# python -m SimpleHTTPServer 80004. Now open a browser, and type http://192.168.1.2:8000 to access the server, where 192.168.1.2 is your machine's ip address
Serving HTTP on 0.0.0.0 port 8000 ...
No comments:
Post a Comment