nodesraka.blogg.se

Abyss web server no simple.shtml file
Abyss web server no simple.shtml file






abyss web server no simple.shtml file
  1. Abyss web server no simple.shtml file install#
  2. Abyss web server no simple.shtml file software#
  3. Abyss web server no simple.shtml file code#
  4. Abyss web server no simple.shtml file iso#

You can serve your files or your own html code in a snap. # pushd /x01/tecmint/ python –m SimpleHTTPServer 9999 popd Now save it and run SimpleHTTPServer on /x01/tecmint and go to the location from a web browser. In my case I include a simple html script in the file named index.html and locate it in /x01/tecmint/. If there’s a index.html file located in your serving location, python interpreter will automatically detect it and serve the html file instead of serving your files. Serve Files from Location Directory Listing on Different Port Step 5: Serve HTML Filesġ0. Now as you tried it, you might like to serve your files in a specific location without actually going to the path.Īs an example, if you are in your home directory and you want to server your files in /x01/tecmint/ directory without cd in to /x01/tecmint, Let’s see, how we will do this. # python –m SimpleHTTPServer 9999Ĭhange SimpleHTTPServer Port Directory Listing on Different Port Step 4: Serve Files from Different Locationĩ. By default python’s SimpleHTTPServer serves files and directories through port 8000, but you can define a different port number (Here I am using port 9999) as you desire with the python command as shown below. Python SimpleHTTPServer Status Step 3: Changing SimpleHTTPServer PortĨ. You can see what has happened at the terminal, after you accessed your server through web browser by having a look at where you executed your command. SimpleHTTPServer serves your files successfully. Now click on link 'tecmint' to browse files and directories of tecmint directory, see the screen below for reference. You just have to open up a web browser and enter ip_address:port_number (in my case its 192.168.5.67:8000). After enabling SimpleHTTPServer successfully, it will start serving files through port number 8000. All you have to do is try python’s SimpleHTTPServer module by issuing below command within your test directory (In my case, /x01//). In my case I have a partition called /x01 and I have created a directory called tecmint in there and also I have added some test files for testing. Create a test directory where you don’t mess with system files. Step 2: Create a Test Directory and Enable SimpleHTTPServerģ. Most of the case you won’t have to worry about installing python interpreter on your server. In my case I use SLES 11 SP3 OS and python interpreter comes installed by default in it.

Abyss web server no simple.shtml file install#

If you’re using different operating systems like RHEL, CentOS, Debian, Ubuntu or other Linux operating systems, you can just install python using yum or apt.

Abyss web server no simple.shtml file iso#

For that, you need to have SUSE ISO mounted and configured it as a repo by YaST or you can simple install python from the web.

Abyss web server no simple.shtml file software#

If you have a SUSE distribution, type yast in the terminal –> Go to Software Management –> Type ‘python’ without quotes –> select python interpreter –> press space key and select it –> and then install it.

abyss web server no simple.shtml file

If it was not installed by any chance, install it following below commands. It will show you the version of the python interpreter you’ve got and it will give you an error message if it is not installed. Check whether python is installed in your server or not, by issuing below command.

abyss web server no simple.shtml file

I will show you several demonstrations in this article by using various options. You just have to enable the module within the location of your shareable files are located. You also can use SimpleHTTPServer as a file sharing method. You don’t have to worry about python interpreter because almost all Linux distributions, python interpreter come handy by default. Main advantage of python’s SimpleHTTPServer is you don’t need to install anything since you have python interpreter installed. SimpleHTTPServer is a python module which allows you to instantly create a web server or serve your files in a snap.








Abyss web server no simple.shtml file