![]() Replace them, respectively, as shown below: site.url=Īpp.secret=E52t圜DBRk39HmhdGYJLBS3etXpnz7DymmxkgHBYxd7Y9muWVVJ5QZNdDEaHV2sA Use the vi editor to open the Leanote config file: vi app.confįind the following lines one by one: site.url= db.username= # if not exists, please leave it blankĭb.password= # if not exists, please leave it blankĪpp.secret=V85ZzBeTnzpsHyjQX4zukbQ8qqtju9y2aDM55VWxAH9Qop19poekx3xkcDVvrD0y Step 6: Configure Leanoteīackup the Leanote config file /home/leanote/leanote/conf/app.conf: cd /home/leanote/leanote/conf/ Restart the MongoDB service in order for the modifications to take effect: sudo systemctl restart rviceįrom now on, you can only use the two user accounts to access and manage MongoDB, useradmin for managing all MongoDB users and leanoteadmin for managing the leanote database only. Sudo bash -c "echo ' authorization: enabled' > /etc/nf" Setup the MongoDB 4.0 YUM repoĬreate the MongoDB 4.0 YUM repo as follows: cat > /etc/nf" Step 3: Install MongoDB Community Edition 4.0Īs required by Leanote, the MongoDB NoSQL DBMS has to be in place before you can successfully setup a Leanote server. Step 2: Obtain Leanote 2.6.1 binary filesĭownload and extract the latest stable release of Leanote for 64-bit Linux system: cd Note: If you are using a different server size, you may need to modify the size of the swap file. sudo dd if=/dev/zero of=/swapfile count=2048 bs=1MĮcho '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab For example, creating a 2048MB-sized swap file is fit for a machine with 2GB of memory. When firing up a new Vultr CentOS 7 server instance, it's always recommended to setup a swap file in order to ensure the system is running smoothly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |