This is a creation in Article, where the information may have evolved or changed.
I've used a lot of notebook products before, like Evernote, Youdao, and OneNote. Always wanted to find a simple and easy-to-use, integrated blog feature notes.
has been looking for a long time, and finally one day, found Leanote, Leanote simple and easy to use, have notes, blogs, sharing features. The function is simple and easy to use. Unexpectedly also open source, see when, in front of a bright, so many products, already enough product, have desktop side, iOS side. Still open source. To my surprise, this is the country I developed ....
Did not say, anyway very excited. Open source, you can certainly install it locally and become a private cloud note.
Let me say how to install Leanote.
In fact, refer to the official Wiki Https://github.com/leanote/leanote/wiki, nothing special:
Leanote Binary Distribution Installation tutorial
Leanote Develop distribution Installation tutorial
Leanote two in-plate detailed installation tutorial
Leanote two in-plate detailed installation tutorial-windows
Detailed installation tutorials for the Leanote development edition
Leanote Development Detailed Installation tutorial-windows
At that time to see how the link is Moe, install a leanote server and so many links ah. Which one do you choose? After careful study, found in fact both, binary plate and development version. Binary plate is already compiled well, do not install the development environment. Development is the need to install the development environment for developers. Like me this technique small white, still does not toss the development edition. Honest installation of the second-in-plate convenient. But I also installed the development version later, in fact, it is simple.
I will install the second into the plate. Refer to the link as: Leanote the detailed installation of the second plate tutorial
Installation steps:
Download Leanote second in plate
Installing MongoDB
Import Initial data
Configure Leanote
Run Leanote
Download Leanote second in plate
Download Leanote New binary plate
Choose one myself, I use Linux 64 bit. Click on the link is actually jump to https://sourceforge.net, it seems leanote two into the plate is sent here. https://sourceforge.net/projects/leanote-bin/I was wondering, why not put the second-in-the-plate on GitHub? Maybe it's more convenient here.
Download the downloaded file to ~/software, unzip the file
$> cd ~/software$> tar -xzvf leanote-linux-amd64-v1.3.1.bin.tar.gz
Installing MongoDB
Installed: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.1.tgz
Download to ~/software, unzip directly
$> cd /home/user1$> tar -xzvf mongodb-linux-x86_64-2.6.4.tgz/
Add to environment variable
Edit/etc/profile to add the MongoDB bin path.
$> sudo vim /etc/profile添加:export PATH=$PATH:/home/alaege/mongodb-linux-x86_64-3.0.1/bin
To make an environment variable effective:
$> source /etc/profile
Simply use MongoDB
Create a new directory to store MongoDB data
mkdir ~/data
# 开启mongodbmongod --dbpath ~/data
Then Mongod has started.
Re-open a terminal using the next MongoDB
$> mongo> show dbs...数据库列表
MongoDB installation ends here, leanote initial data for MongoDB import data
Import Initial data
Leanote Initial data in ~/leanote/mongodb_backup/leanote_install_data
Open the terminal and enter the following command to import the data.
mongorestore -h localhost -d leanote --dir ~/leanote/mongodb_backup/leanote_install_data/
Now that you have created a new leanote database in MongoDB, you can use the command to see how many tables are in Leanote
$> mongo> show dbs # 查看数据库leanote 0.088125GBlocal 0.078125GB> use leanote # 切换到leanoteswitched to db leanote> show collections # 查看表filesnote_contentsnotesnotebooks....
There are already 2 users in the users table for the initial data: These two users are for login leanote, the demo user is for testing, and the Admin user is particularly important. Because only admin users can manage the background.
user1 username: admin, password: abc123 (管理员, 只有该用户才有权管理后台, 请及时修改密码)user2 username: demo@leanote.com, password: demo@leanote.com (仅供体验使用)
Configure Leanote
Files: conf/app.conf
Modify the App.secret, feel free to modify a value, the official document said not to modify the security problems, tube him, casually change on the line.
Run Leanote
pay special attention here before you make sure MongoDB is already running! So do not use after opening the MongoDB window, open a new window bar!
Open a new window, run:
$> cd ~/leanote/bin$> bash run.sh # 最后出现以下信息证明运行成功...TRACE 2013/06/06 15:01:27 watcher.go:72: Watching: /home/life/leanote/bin/src/github.com/leanote/leanote/conf/routesGo to /@tests to run the tests.Listening on :9000...
Open Browser Input:http://localhost:9000
This all the way to come, in fact very simple, but as the small white I, also walked a few pits.
1) Admin username changed, not in the background management
2) The database is not connected Ah, the hint "no reachable server", this can baffle me. Backstage to App.conf's MongoDB address changed to 127.0.0.1 on the line, do not know why. If there is a great God, let me know.
In fact, so the pit is basically mentioned on the Https://github.com/leanote/leanote/wiki/QA, I also found here.
The most likely mistake is to use the Admin user login, change the user name. Changed the tragedy, Ah, next time you can not go backstage management. Tragedy. What to do?
In fact, it is very simple, as long as the conf/app.conf modified, the adminusername=admin changed to you after the user name can be changed. If you change it, you must restart Leanote, otherwise it will not take effect. It was not restarted, and it took a long time.
Another problem is, after installing the Leanote service, Leanote also desktop and iOS, how to connect to their own service it? This leanote client has done very well, look at the login screen a few more eyes, try on the line
Desktop client:
Click on "self-hosted service"
The first line to fill their server address on the line, such as http://a.com:9000, no port to remove the line.
iOS is the same:
Note that the server address is on the last line.
Perfect, done.
Not finished, to be continued, please pay attention to my column, about use, install leanote anything, I will publish here. It's so exciting.