- ROBOMONGO DOES NOT WORK AFTER XAMPP INSTALL CODE
- ROBOMONGO DOES NOT WORK AFTER XAMPP INSTALL PASSWORD
Then, open Robomongo, New connection to localhost:27018 You can connect to the server's MongoDB 了. PuTTY: Set up login information ( Including servers IP Port, user password, key, etc ) after, Find it in the left column Connection/SSH/Tunnels,Add new forwarded port Next ,Source Port Fill in the port number that needs to be mapped to the client ,Destination Fill in the host and port number of the server ( The host of the server is, of course localhost 了 ) Select below Local and Auto that will do, And then click Add, Save for next login convenience, Click on Open You can create SSH Tunnel connection. One 、 Use PuTTY or XShell Establish the connection between client and server SSH Tunnel In addition, To put MongoDB To modify the configuration file of, Make it only accessible locally :
ROBOMONGO DOES NOT WORK AFTER XAMPP INSTALL PASSWORD
PuTTY or XShell Tunnel when connecting to the server, Will server's MongoDB The listening port is mapped to the specified port of the client, This is used on the client side Robomongo Connect to the local designated port to access the server's MongoDB port, The disadvantage is that you need to keep PuTTY perhaps XShell In connection with the database The two is the use of Robomongo Built in SSH Tunnel way, Only need Robomongo make new connection, Input to establish SSH User name, password or key required for the session, It is equivalent to using Robomongo Log in to the server, Then access the local MongoDB Port can, The advantage is that it doesn't need to be built alone SSH Connect ( Yes, this method is recommended, But the first is not limited to Robomongo The connection of ).īe careful : because SSH The tunnel is based on TCP Forward The establishment of a, therefore, stay sshd The configuration file must allow TCPForwarding, I started to configure sshd It's disabled when I'm on the road, So it took a long time to climb out of this pit. There are two ways to build SSH Tunnel to achieve client Robomongo Access server MongoDB, First, use. This example is based on the following development environment : In order to be able to use visualization tools on the client side as well, You can build a SSH Tunnel, Access the remote server's database directly on the client side. But this will bring trouble in the development process when looking at the data, You have to go to the server or call the API Interface can query data visually. myPhpProject", by doing this you are creating a symbolic link of your "myPhpProject" folder in "htdocs"Ħ.For data security, stay MongoDB In the configuration file of, Generally, the default 27017 port port Change to a custom port number, Then put the allowed access to IP Set to 127.0.0.1( That is, the host itself ). type the command "ln -s /username/projects/myPhpProject. open a terminal and go to "/Applications/XAMPP/xamppfiles/htdocs"ĥ. git clone the project you want to work on in anywhere you like, in my case "/username/projects/myPhpProject"Ĥ. I found a recipe to do it! Below is the recipleģ.
Today, while I have to work on a PHP project again, I took some time to look into if I can create a symbolic link in "htdocs" folder so that I don't need to mess with "nf" anymore.
ROBOMONGO DOES NOT WORK AFTER XAMPP INSTALL CODE
Yet the default setup of putting all the php code within the "/Applications/XAMPP/xamppfiles/htdocs" in OSX is not so developer friendly, as I have a habit to put all my code under "/username/projects/", I used to just go into the nf of XAMPP to change the "DocumentRoot" and "" tag to my project folder, so I can run the code while maintain my own folder structure. XAMPP is a really good tools to quickly setup a php dev environment.