在 英语 中使用 Localhost 的示例及其翻译为 中文
{-}
-
Programming
-
Political
-
Ecclesiastic
With the Listen directive set to the IP address of the localhost, Apache will only listen for connections from the local host.
One command for an instant, secure URL to your localhost server through any NAT or firewall.
Right now, you just need to make this website available to the local machine, so use the localhost address.
Additionally, the page needs to be served over HTTPS(note that this requirement is relaxed for localhost).
The result of issuing this command is that you can use SSH to log into the guest from the host by typing ssh localhost-p 2222.
For your test website, do this by adding a new name to the localhost line in/etc/hosts.
Containers in a same Pod share the same network namespace and can communicate with each other using localhost.
If your computer has no name, the server uses the word localhost.
If you do not take this opportunity to enter a name, your system will be known as localhost.
For example, you could enter"telnet localhost 8080" in the command line and type something.
To test the functionality of Squid on the local system, enter localhost as the proxy and 3128 as the port in the browser.
If the server is running on the local host, try using mysqladmin-h localhost variables to connect using the Unix socket file.
Mbox= imap_open("{localhost: 995/ pop3/ ssl/ novalidate-cert}","user_id","password");
Now load the index file in your browser(via localhost: 8000) and look in your browser developer console.
These examples assume that CouchDB is running on localhost(127.0.0.1) on port 5984.
If you navigate on your browser to localhost: 8080 you should something similar to the below.
In the example above, we have requested the document at localhost: 8080/, and a local server replied successfully.
And the other two are running the Node apps, connected to separate geth processes, and running on different localhost ports.
If you copy and paste this code and run it, you will be able to view your own web app at localhost: 50000.
Taking the proxy configuration from the previous section as a basis, replace the proxy_pass directive with the fastcgi_pass directive and change the parameter to localhost: 9000.