Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Set up ant notes (server)

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

In order to save your notes on your own server, you can use the ant note-taking software

I. Environmental configuration

The Linux version used is CentOS7, which is installed in Tencent Cloud.

Second, install MongoDB

For more information, please see: https://www.cnblogs.com/benjamin77/p/8465394.html

First step, because there is no MongoDB in the server yum source, you need to configure the yum source first

Vim / etc/yum.repos.d/mongodb-org-3.4.repo

Add the following to the open editor:

[mongodb-org-3.4] name=MongoDB Repository baseurl= https://repo.mongodb.org/yum/redhat/7/mongodb-org/3.4/x86_64/ gpgcheck=0enabled=1

Create a cache:

Yum makecache

Start the installation:

Yum-y install mongodb-org

If the error shown in the following figure occurs, it may be that the dependent program has been installed before and can be deleted.

Its configuration file is in / etc/mongod.conf (usually not moved)

Then start MongoDB (you can use "ss-tnlp" to see if the startup is successful, default port 27017)

Systemctl start mongod

Second, install ant notes

When MongoDB is installed, you can begin to install it formally. First, download the server version: http://leanote.org/#download from its official website.

After downloading the installation package (preferably binary) to the server, unpacking it, you will get a directory called "leanote" and enter the

Tar-zxvf leanote-linux-amd64-v2.6.1.bin.tar.gzcd leanote

Then use the following command to create the database:

Mongorestore-h localhost-d leanote-- dir mongodb_backup/leanote_install_data/

The configuration file is the conf/app.conf in the current directory

Finally, execute the bin/run.sh script to run it.

The address to be accessed is http://********:9000

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report