Test connectivity for the web service: Difference between revisions

Jump to navigation Jump to search
m
Line 32: Line 32:
# {{kbd | key = telnet 127.0.0.1 <PORT>}} If failed to connect the web service. It will show the message: "telnet: Unable to connect to remote host: Connection refused"
# {{kbd | key = telnet 127.0.0.1 <PORT>}} If failed to connect the web service. It will show the message: "telnet: Unable to connect to remote host: Connection refused"


Using alternative web services if the Python was installed
Using alternative web services if the Python or Node.js was installed
* (for python 2.x) {{kbd | key=<nowiki>python -m SimpleHTTPServer <port></nowiki>}}<ref>[https://docs.python.org/2/library/simplehttpserver.html 20.19. SimpleHTTPServer — Simple HTTP request handler — Python 2.7.17 documentation]</ref>
 
* (for python 3.x) {{kbd | key=<nowiki>python -m http.server <port></nowiki>}}<ref>[https://docs.python.org/3.8/library/http.server.html?highlight=http%20server#module-http.server http.server — HTTP servers — Python 3.8.1 documentation]</ref>
* (for python 3.x) {{kbd | key=<nowiki>python -m http.server <port></nowiki>}}<ref>[https://docs.python.org/3.8/library/http.server.html?highlight=http%20server#module-http.server http.server — HTTP servers — Python 3.8.1 documentation]</ref>
* (for Node.js) {{kbd | key=<nowiki>npx http-server -p <port></nowiki>}}<ref>[https://github.com/http-party/http-server http-server: a simple static HTTP server]</ref>
* (for Node.js) {{kbd | key=<nowiki>npx http-server -p <port></nowiki>}}<ref>[https://github.com/http-party/http-server http-server: a simple static HTTP server]</ref>

Navigation menu