sudo service mongodb restart gives “unrecognized service error” in ubuntu 14.0.4
Try this: Write mongodb instead of mongod sudo service mongodb status
Try this: Write mongodb instead of mongod sudo service mongodb status
fail2ban-client -vvv set JAIL banip WW.XX.YY.ZZ Check the jail where to add the IP using fail2ban-client status Both commands may require to be executed as sudoer. In this case add a sudo before them.
I use the following command to view installed PHP versions in Ubuntu: sudo update-alternatives –list php Second way go to php directory where all PHP version configuration file stored: cd /etc/php dir Output: > 5.6 7.0 7.1
When you build under CLion, It prints the path it sends the executable to the Console: — Build files have been written to: /home/<user>/.clion10/system/cmake/generated/8bd932b1/8bd932b1/Debug1 To change this File > Settings…, and under CMake settings, enter the desired subdirectory name (e.g., ‘bin’) in the Working directory field: (You may require Run > Clean before the new … Read more
If you want to restore a single collection then you have to specifiy the dump file of the collection. The dump file of the collection is found in the ‘dump/dbname/’ folder. So assuming your dump folder is in your current working directory, the command would go something like – mongorestore –db mydbname –collection mycollection dump/mydbname/mycollection.bson
Update: due to new tmux version and changes in package repository, this answer is updated to show how to install tmux 2.0 (which is better, no reason to use 1.9 anymore). Here are the steps to update “blank” ubuntu – version 14.04 only (see below for other ubuntu versions): sudo apt-get update sudo apt-get install … Read more
Try jupyter notebook –ip <your_LAN_ip> –port 8888 Then visit http://your_LAN_ip:8888 from another computer. It’s recommended that you use a password when accessing your notebook server. To set up a password, just run jupyter notebook password. To make it even more secure, you can use SSL for your server by passing the arguments –certfile and –keyfile … Read more
For gcc 4.8.4 you need to use -std=c++1y in later versions, looks like starting with 5.2 you can use -std=c++14. If we look at the gcc online documents we can find the manuals for each version of gcc and we can see by going to Dialect options for 4.9.3 under the GCC 4.9.3 manual it … Read more
First I create the docker: sudo docker run -t -i ubuntu /bin/bash Instead of this you can enter in a running docker with his number or name: sudo docker exec -it be8aa338d656 bash Then inside the docker run this code: apt-get update apt-get install vim nano
I already had this problem before. Choose “Run” then “Edit Configurations”. In the “General” tab, check the “Deployment Target Options” section. In my case, the target was already set to “USB Device” and the checkbox “Use same device for future launches” was checked. I had to change the target to “Show Device Chooser Dialog” and … Read more