Then, create a new virtual host file for Leanote: nano /etc/nginx/conf.d/nf Next, open Nginx default configuration file: nano /etc/nginx/nf So you will need to configure Nginx as a reverse proxy to access Leanote through port 80.įirst, install Nginx with the following command: yum install nginx -y You should see the Leanote default dashboard in the following page:īy default, Leanote runs on port 9000. Now, provide default username and password as admin / abc123 and click on the Sign in button. You will be redirected to the following page: Now, open your web browser and type the URL. Leanote server is now running and listening on port 9000. Now, start the Leanote server with the following command: bash leanote/bin/run.sh Save and close the file, when you are finished. Next, you will need to edit Leanote default configuration file and make some changes: nano leanote/conf/app.conf Then, restart MongoDB to apply the changes: systemctl restart mongod Configure Leanote Next, enable the MongoDB access control by editing /etc/nf file: nano /etc/nf > db.createUser()Īfter creating both accounts, confirm the user administrator account with the following command: > use adminĬonfirm the database administrator account with the following command: > use leanote Next, change the database to admin and cretae a user administrator account with the following command: > use admin To do so, you will need to create MongoDB user administrator account and database administrator account.įirst, log in to MongoDB shell with the following command: mongo -host 127.0.0.1:27017 Mongorestore -host localhost -d leanote -dir leanote/mongodb_backup/leanote_install_data/ Configure MongoDBįor security reasons, it is recommended to enable access control to MongoDB. You can do it with the following command: rm leanote/mongodb_backup/leanote_install_data/.DS_Store Next, you will need to import the Leanote data into MongoDB. Once the download is completed, extract the downloaded file with the following command: tar -zxvf leanote-linux-amd64-v2.6.1. You can download it with the following command: wget You should expect to see "Active: active (running)" Install Leanoteįirst, you will need to download the latest version of Leanote from SourceForge. Then, install MongoDB with the following command: yum install mongodb-orgĪfter installing MongoDB, check the status of MongoDB with the following command: systemctl status rvice You can add the MongoDB repository by creating the following file: nano /etc//mongodb-org.repoĪdd the following lines: īaseurl=\$releasever/mongodb-org/4.0/x86_64/ So you will need to install the repository for that. By default, MongoDB is not available in the CentOS 7 default repository. Next, you will need to install MongoDB to your server. Then, restart your server to apply the changes. Make the following changes: SELINUX=disabled You can do this by editing /etc/selinux/config file: nano /etc/selinux/config yum update -y Getting Startedīefore starting, you will need to disable Selinux on your server. Once you are logged into your CentOS 7 instance, run the following command to update your base system with the latest available packages.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |