Start MongoDB with git bash - bash

kevin#KEVIN-PC MINGW64 /C/MongoDB/bin
$ ls
bsondump.exe* mongodump.exe* mongoperf.exe* mongotop.exe*
libeay32.dll* mongoexport.exe* mongorestore.exe* ssleay32.dll*
mongo.exe* mongofiles.exe* mongos.exe*
mongod.exe* mongoimport.exe* mongos.pdb
mongod.pdb mongooplog.exe* mongostat.exe*
kevin#KEVIN-PC MINGW64 /C/MongoDB/bin
$ mongod.exe
bash: mongod.exe: command not found
I installed the mongoDB with version Windows 64-bit 2008 R2+ on my windows8.1. Could anyone tell me why I got command not found error when start the mongod.exe?

try ./mongod to run the executable to begin the server then open a second window/terminal. navigate to the same location as your server, then run ./mongo. Should be set!

cd to you installation folder C:\Program Files\MongoDB\Server\3.6\bin then start mongodb server ./mongod.

Related

Install syndesis on Windows when minishift is installed

I have some problems to install syndesis on Windows.
My configuration is Win10 64bits with minishift installed.
minishift and oc commands works from command line.
I have started the OpenShift server and I can connect it with web browser.
I tried the install mentioned README.md with Cygwin: "bash <(curl -sL https://syndes.is/start) --vm-driver hyperkit" --> nothing happen
Then I tried the syndesis-cli from 2.0.0-20210514 with Cygwin
$ ./syndesis install
/cygdrive/d/users/toto/Downloads/syndesis-cli/commands/util/common_funcs: line 354: /home/toto/.syndesis/bin/platform-detect: cannot execute binary file: Exec format error
operator binary not found under /home/toto/.syndesis/bin/syndesis-operator, attempting to download...
OK
Unknown platform [ cygwin ],
unable to download the operator binary, exit
ERROR: Last command exited with 1
How can I install syndesis on Windows?
Thanks !
Toto

docker commands not found

I installed docker in Mac and it is installed successfully.
Also it is running.
And tried to execute the below command in terminal
docker -v
See the below error:
-bash: docker: command not found
How do I solve this issue.
In windows those commands are working fine.
If you successfully installed docker using the official package, the command should be available under /usr/local/bin/docker.
That directory might not yet be in your $PATH, so you could try adding export PATH="/usr/local/bin:$PATH" to your .bashrc / .bash_profile.

Failed to launch git bash

The terminal process command 'C:\Program Files\Git\bin\bash.exe' failed to launch (exit code: 2)
I have already setup git. Git directory:
I had this issue with the 'start git-bash' extention in vscode. You just need to add the folder "C:\Program Files\Git\" to your path and restart vs code.
I reinstalled Git and all work well
Working Git Bash
If you have this issue, with the following error code:
'ExecutionPolicy', 'Bypass'" terminated with exit code: 2.'
What worked for me is I went into the settings.json file and removed the following line:
"terminal.integrated.shellArgs.windows": ["-ExecutionPolicy","Bypass"]
If Git Bash doesn't work you can try installing a Windows WSL2 such as Ubuntu 18.04 and use that instead of Git Bash.
Here is how you select a Windows WSL:
Check out this link if you need help installing WSL2 on Windows.
You can see a similar issue (with cmd, not bash) in Microsoft/vscode issue 62953.
Try with a portable version of Git bash (like PortableGit-2.20.0.rc1.windows.1-64-bit.7z.exe), uncompress in a custom folder (like C:\Git, instead of C:\Program Files\Git)
Sometimes antivirus software might cause that behaviour, since launchin a terminal involes a process creating another process.
So add an exception in your Antivirus for Visual Studio Code or stop all the antivirus related services --at your own risk--
First, check that you have Git Bash downloaded on your PC. If you already have it installed, then check you can access python program.
If not installed, please install directly from the following link: https://git-scm.com/download/win

Run bin files on Ubuntu

I'm trying to run SQLiteStudio on Ubuntu. I'm getting error when I try to run it with terminal:
ubuntu#ubuntu:~/Desktop$ sqlitestudio-2.0.22.bin
sqlitestudio-2.0.22.bin: command not found
I tried other sqlite managers but SQLiteStudio has more options, I've used it on Windows.
You need a ./ in front of the command
./sqlitestudio-2.0.22.bin

Mongodb Windows Install Fail

I am trying to install mongodb on my local computer. I have windows 7 and 64 bit. I am following these instructions which are given on mongo's website:
64-bit binaries:
Download and extract the 64-bit .zip.
Unzip the downloaded binary package to the location of your choice. You may want to
rename mongo-xxxxxxx to just "mongo" for convenience.
Create a data directory:
By default MongoDB will store data in \data\db, but it won't
automatically create that folder, so we do so here:
C:\> mkdir \data
C:\> mkdir \data\db
Or you can do this from the Windows Explorer, of course.
If you prefer to place datafiles elsewhere, use the --dbpath command line parameter
when starting mongod.exe. Run and connect to the server
The important binaries for a first run are:
mongod.exe - the database server. Try mongod --help to see startup options.
mongo.exe - the administrative shell
To run the database, click mongod.exe in Explorer, or run it from a CMD window.
C:\> cd \mongodb\bin
C:\mongodb\bin> mongod
Note: It is also possible to run the server as a Windows Service. But we can do that
later.
When i follow these steps i get the following error:
'C:\' is not recognized as an internal or external command, operable program or batch
file.
I am not sure what is going wrong i have followed the direction exactly. I extracted the zip file on my c drive as mongodb. I then created the folder data on my c drive and the folder db inside the data folder. I start the windows cmd line and do as they suggest and i get the above error. Can anyone help please. Thank you.
Don't type the C:\>, that's the command prompt.
For example, just type:
cd \mongodb\bin
and then press enter.
you may want to use this powershell that dowloads mongodb and installs it as windows service...
https://gist.github.com/serdarb/5102848

Resources