

- #Learn tutorial leanote mongodb how to#
- #Learn tutorial leanote mongodb install#
- #Learn tutorial leanote mongodb full#
- #Learn tutorial leanote mongodb password#
- #Learn tutorial leanote mongodb Pc#
#Learn tutorial leanote mongodb how to#
#Learn tutorial leanote mongodb full#
#Learn tutorial leanote mongodb password#
Initial data usersThere are already 2 users in the table: user1 username: admin, password: abc123 (Administrator, only this user has the right to manage the background, please change the password in time)

Now at mongodbHas been created in leanoteDatabase, available commands to view leanoteHow many "tables" are there: mongo Import the initial data mongorestore -h localhost -d leanote -dir /home/ubuntu/leanote/leanote/mongodb_backup/leanote_install_data/

The following is mongodbImport leanoteInitial data: 3. Then start the database in the background: mongod -dbpath /home/ubuntu/leanote/data -fork -logpath /home/ubuntu/leanote/mongo.logĪt this moment mongoHas started, enter mongoauthenticating: mongo Once the terminal is closed, the database will stop running, so the background running method is used here.Ĭreate a log file mongo.log: vim mongo.log edit ~/.profileor /etc/profileFile, will mongodb/binJust add the path: sudo vim /etc/profileĪdd the following statement to the end of the file: export PATH=$PATH:/home/user/leanote/mongodb-linux-x86_64-ubuntu1804-4.2.3/binĪfter saving the modification, run the following command in the terminal to make the environment variable take effect: source /etc/profileįirst /home/ubuntu/leanoteCreate a new directory dataStore mongodbdata: mkdir dataĪccording to the official website tutorial, after running the database, the database program will keep running on the front end. Then directly decompress: tar -xzvf mongodb-linux-x86_64-ubuntu1804-4.2.3.tgzįor quick use mongodbCommand, you can configure environment variables. To mongodb official websiteDownload the latest version of the installation package (TGZ) format of the corresponding system and send it to the working directory. It is particularly emphasized here, although the official tutorial installs the program in /homeCatalog, but after actual verification, please directly LeanoteInstall in the user's working directory, otherwise it will cause all kinds of unnecessary troubles.Īssuming current user ubuntuThe working directory is /home/ubuntu, Then perform the following operations in this directory: mkdir leanote Sending to other directories will be rejected. PscpIt can only be sent to the current user's working directory.
#Learn tutorial leanote mongodb Pc#
installation stepsĭownload leanoteTo the local, here is a simple method, first download to the PC and then use pscpTransfer to the server.
#Learn tutorial leanote mongodb install#
The first is to choose to install the binary version of Leanote, which is based on the official tutorial. Here, I want to record the following process of installing Leanote, to have a little bit of my own experience. Recently I have been tossing about cloud servers and tried to dress up several forums, cloud disks, and blogs.
