{"id":187,"date":"2017-11-12T22:06:56","date_gmt":"2017-11-12T14:06:56","guid":{"rendered":"https:\/\/damogame.cn\/?p=187"},"modified":"2017-11-12T22:07:06","modified_gmt":"2017-11-12T14:07:06","slug":"leanote-%e4%ba%8c%e8%bf%9b%e5%88%b6%e7%89%88%e8%af%a6%e7%bb%86%e5%ae%89%e8%a3%85%e6%95%99%e7%a8%8b-mac-and-linux","status":"publish","type":"post","link":"https:\/\/i007.cc\/wordpress\/archives\/187","title":{"rendered":"Leanote \u4e8c\u8fdb\u5236\u7248\u8be6\u7ec6\u5b89\u88c5\u6559\u7a0b Mac and Linux"},"content":{"rendered":"<div class=\"gh-header\">\n<div class=\"gh-header-show\">\n<div class=\"gh-header-meta\">life edited this page\u00a0on 10 Jan\u00a0\u00b7\u00a0<a class=\"history\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/Leanote-%E4%BA%8C%E8%BF%9B%E5%88%B6%E7%89%88%E8%AF%A6%E7%BB%86%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B----Mac-and-Linux\/_history\">4 revisions<\/a><\/div>\n<\/div>\n<\/div>\n<div id=\"wiki-content\" class=\"wiki-content\">\n<div class=\"has-rightbar\">\n<div id=\"wiki-rightbar\" class=\"wiki-rightbar\">\n<div class=\"wiki-pages-box readability-sidebar boxed-group flush js-wiki-pages-box \" role=\"navigation\">\n<h3 class=\"js-wiki-toggle-collapse wiki-auxiliary-content\">\u00a0Pages\u00a0<span class=\"Counter\">27<\/span><\/h3>\n<div class=\"boxed-group-inner wiki-auxiliary-content wiki-auxiliary-content-no-bg\">\n<div class=\"filter-bar\"><input id=\"wiki-pages-filter\" class=\"form-control input-sm input-block js-filterable-field\" tabindex=\"2\" type=\"text\" placeholder=\"Find a Page\u2026\" aria-label=\"Find a Page\u2026\" \/><\/div>\n<ul class=\"wiki-pages\" data-filterable-for=\"wiki-pages-filter\" data-filterable-type=\"substring\">\n<li><strong><a class=\"wiki-page-link\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\">Home<\/a><\/strong><\/li>\n<li><strong><a class=\"wiki-page-link\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/How-to-develop-leanote-%E5%A6%82%E4%BD%95%E5%BC%80%E5%8F%91leanote\">How to develop leanote \u5982\u4f55\u5f00\u53d1leanote<\/a><\/strong><\/li>\n<li><strong><a class=\"wiki-page-link\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/How-to-install-leanote-on-Ubuntu%3F\">How to install leanote on Ubuntu?<\/a><\/strong><\/li>\n<li><strong><a class=\"wiki-page-link\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/How-to-Upgrade-Leanote\">How to Upgrade Leanote<\/a><\/strong><\/li>\n<li><strong><a class=\"wiki-page-link\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/Install-Mongodb\">Install Mongodb<\/a><\/strong><\/li>\n<li><strong><a class=\"wiki-page-link\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/leanote-api\">leanote api<\/a><\/strong><\/li>\n<li><strong><a class=\"wiki-page-link\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/leanote-api-en\">leanote api en<\/a><\/strong><\/li>\n<li><strong><a class=\"wiki-page-link\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/leanote-binary-installation-on-Mac-and-Linux-(En)\">leanote binary installation on Mac and Linux (En)<\/a><\/strong><\/li>\n<li><strong><a class=\"wiki-page-link\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/leanote-binary-installation-on-Windows-(En)\">leanote binary installation on Windows (En)<\/a><\/strong><\/li>\n<li><strong><a class=\"wiki-page-link\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/leanote-blog-theme-api\">leanote blog theme api<\/a><\/strong><\/li>\n<li><strong><a class=\"wiki-page-link\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/leanote-blog-theme-api_en\">leanote blog theme api_en<\/a><\/strong><\/li>\n<li><strong><a class=\"wiki-page-link\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/leanote-develop-distribution-installation-tutorial\">leanote develop distribution installation tutorial<\/a><\/strong><\/li>\n<li><strong><a class=\"wiki-page-link\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/Leanote-QA-English\">Leanote QA English<\/a><\/strong><\/li>\n<li><strong><a class=\"wiki-page-link\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/Leanote-source-installation-on-Mac-and-Linux-(En)\">Leanote source installation on Mac and Linux (En)<\/a><\/strong><\/li>\n<li><strong><a class=\"wiki-page-link\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/leanote-source-installation-on-Windows-(En)\">leanote source installation on Windows (En)<\/a><\/strong><\/li>\n<li class=\"wiki-more-pages-link\"><a class=\"js-wiki-more-pages-link\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/Leanote-%E4%BA%8C%E8%BF%9B%E5%88%B6%E7%89%88%E8%AF%A6%E7%BB%86%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B----Mac-and-Linux#\">Show 12 more pages\u2026<\/a><\/li>\n<\/ul>\n<\/div>\n<\/div>\n<h5 class=\"mt-0 mb-2\">Clone this wiki locally<\/h5>\n<div class=\"width-full input-group js-zeroclipboard-container\"><input class=\"form-control input-sm text-small text-gray input-monospace js-url-field js-zeroclipboard-target\" readonly=\"readonly\" type=\"text\" value=\"https:\/\/github.com\/leanote\/leanote.wiki.git\" aria-label=\"Clone URL for this wiki\" \/><button class=\"js-zeroclipboard btn btn-sm zeroclipboard-button tooltipped tooltipped-s\" type=\"button\" aria-label=\"Copy to clipboard\" data-copied-hint=\"Copied!\"><\/button><\/div>\n<p><a class=\"btn btn-sm sidebar-button\" title=\"Save this wiki to your computer and use it in GitHub Desktop.\" href=\"https:\/\/desktop.github.com\/\" aria-label=\"Save this wiki to your computer and use it in GitHub Desktop.\">\u00a0Clone in Desktop<\/a><\/p>\n<\/div>\n<div id=\"wiki-body\" class=\"wiki-body gollum-markdown-content instapaper_body\">\n<div class=\"markdown-body\">\n<h2><a id=\"user-content-\u672c\u6559\u7a0b\u9002\u5408-mac-\u53ca-linux-\u7528\u6237\u7684\u4e8c\u8fdb\u5236\u7248\u5b89\u88c5\" class=\"anchor\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/Leanote-%E4%BA%8C%E8%BF%9B%E5%88%B6%E7%89%88%E8%AF%A6%E7%BB%86%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B----Mac-and-Linux#%E6%9C%AC%E6%95%99%E7%A8%8B%E9%80%82%E5%90%88-mac-%E5%8F%8A-linux-%E7%94%A8%E6%88%B7%E7%9A%84%E4%BA%8C%E8%BF%9B%E5%88%B6%E7%89%88%E5%AE%89%E8%A3%85\" aria-hidden=\"true\"><\/a>\u672c\u6559\u7a0b\u9002\u5408 Mac \u53ca linux \u7528\u6237\u7684<strong>\u4e8c\u8fdb\u5236\u7248<\/strong>\u5b89\u88c5\u3002<\/h2>\n<ul>\n<li>Mac, Linux \u7528\u6237\u7684\u6e90\u7801\u7248\u5b89\u88c5\uff0c\u53c2\u89c1<a href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/Leanote-%E6%BA%90%E7%A0%81%E7%89%88%E8%AF%A6%E7%BB%86%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B----Mac-and-Linux\">\u8fd9\u91cc<\/a>\u3002<\/li>\n<li>Windows \u7528\u6237\u7684\u4e8c\u8fdb\u5236\u7248\u5b89\u88c5\uff0c\u53c2\u89c1<a href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/Leanote-%E4%BA%8C%E8%BF%9B%E5%88%B6%E7%89%88%E8%AF%A6%E7%BB%86%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B----Windows\">\u8fd9\u91cc<\/a>\u3002<\/li>\n<li>Windows \u7528\u6237\u7684\u6e90\u7801\u7248\u5b89\u88c5\uff0c\u53c2\u89c1<a href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/Leanote-%E6%BA%90%E7%A0%81%E7%89%88%E8%AF%A6%E7%BB%86%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B----Windows\">\u8fd9\u91cc<\/a>\u3002<\/li>\n<\/ul>\n<hr \/>\n<h1><a id=\"user-content-\u5b89\u88c5\u6b65\u9aa4\" class=\"anchor\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/Leanote-%E4%BA%8C%E8%BF%9B%E5%88%B6%E7%89%88%E8%AF%A6%E7%BB%86%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B----Mac-and-Linux#%E5%AE%89%E8%A3%85%E6%AD%A5%E9%AA%A4\" aria-hidden=\"true\"><\/a>\u5b89\u88c5\u6b65\u9aa4:<\/h1>\n<ol>\n<li>\u4e0b\u8f7d\u00a0<code>leanote<\/code>\u00a0\u4e8c\u8fdb\u5236\u7248\u3002<\/li>\n<li>\u5b89\u88c5\u00a0<code>mongodb<\/code>\u3002<\/li>\n<li>\u5bfc\u5165\u521d\u59cb\u6570\u636e\u3002<\/li>\n<li>\u914d\u7f6e\u00a0<code>leanote<\/code>\u3002<\/li>\n<li>\u8fd0\u884c\u00a0<code>leanote<\/code>\u3002<\/li>\n<\/ol>\n<hr \/>\n<h2><a id=\"user-content-1-\u4e0b\u8f7d-leanote-\u4e8c\u8fdb\u5236\u7248\" class=\"anchor\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/Leanote-%E4%BA%8C%E8%BF%9B%E5%88%B6%E7%89%88%E8%AF%A6%E7%BB%86%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B----Mac-and-Linux#1-%E4%B8%8B%E8%BD%BD-leanote-%E4%BA%8C%E8%BF%9B%E5%88%B6%E7%89%88\" aria-hidden=\"true\"><\/a>1. \u4e0b\u8f7d\u00a0<code>leanote<\/code>\u00a0\u4e8c\u8fdb\u5236\u7248<\/h2>\n<p>\u7531\u6b64\u5904\u4e0b\u8f7d\u00a0<a href=\"http:\/\/leanote.org\/#download\">leanote \u6700\u65b0\u4e8c\u8fdb\u5236\u7248<\/a>\u3002<\/p>\n<p>\u5047\u8bbe\u5c06\u6587\u4ef6\u4e0b\u8f7d\u5230\u00a0<code>\/home\/user1<\/code>\u00a0\u76ee\u5f55\u4e0b, \u89e3\u538b\u6587\u4ef6\u4ece\u800c\u5728\u00a0<code>\/home\/user1<\/code>\u00a0\u76ee\u5f55\u4e0b\u751f\u6210\u00a0<code>leanote<\/code>\u76ee\u5f55\uff1a<\/p>\n<pre><code>$&gt; cd \/home\/user1\r\n$&gt; tar -xzvf leanote-darwin-amd64.v2.0.bin.tar.gz\r\n<\/code><\/pre>\n<hr \/>\n<h2><a id=\"user-content-2-\u5b89\u88c5-mongodb\" class=\"anchor\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/Leanote-%E4%BA%8C%E8%BF%9B%E5%88%B6%E7%89%88%E8%AF%A6%E7%BB%86%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B----Mac-and-Linux#2-%E5%AE%89%E8%A3%85-mongodb\" aria-hidden=\"true\"><\/a>2. \u5b89\u88c5\u00a0<code>mongodb<\/code><\/h2>\n<h2><a id=\"user-content-21-\u5b89\u88c5-mongodb\" class=\"anchor\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/Leanote-%E4%BA%8C%E8%BF%9B%E5%88%B6%E7%89%88%E8%AF%A6%E7%BB%86%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B----Mac-and-Linux#21-%E5%AE%89%E8%A3%85-mongodb\" aria-hidden=\"true\"><\/a>2.1 \u5b89\u88c5\u00a0<code>mongodb<\/code><\/h2>\n<p>\u5230\u00a0<a href=\"http:\/\/www.mongodb.org\/downloads\">mongodb \u5b98\u7f51<\/a>\u00a0\u4e0b\u8f7d\u76f8\u5e94\u7cfb\u7edf\u7684\u6700\u65b0\u7248\u5b89\u88c5\u5305\uff0c\u6216\u8005\u4ece\u4ee5\u4e0b\u94fe\u63a5\u4e0b\u8f7d\u65e7\u7248\u672c\uff1a<\/p>\n<ul>\n<li>64\u4f4d linux mongodb 3.0.1 \u4e0b\u8f7d\u94fe\u63a5:\u00a0<a href=\"https:\/\/fastdl.mongodb.org\/linux\/mongodb-linux-x86_64-3.0.1.tgz\">https:\/\/fastdl.mongodb.org\/linux\/mongodb-linux-x86_64-3.0.1.tgz<\/a><\/li>\n<\/ul>\n<p>\u4e0b\u8f7d\u5230\u00a0<code>\/home\/user1<\/code>\u4e0b, \u76f4\u63a5\u89e3\u538b\u5373\u53ef:<\/p>\n<pre><code>$&gt; cd \/home\/user1\r\n$&gt; tar -xzvf mongodb-linux-x86_64-3.0.1.tgz\/\r\n<\/code><\/pre>\n<p>\u4e3a\u4e86\u5feb\u901f\u4f7f\u7528<code>mongodb<\/code>\u547d\u4ee4, \u53ef\u4ee5\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3002\u7f16\u8f91\u00a0<code>~\/.profile<\/code>\u6216<code>\/etc\/profile<\/code>\u00a0\u6587\u4ef6\uff0c \u5c06<code>mongodb\/bin<\/code>\u8def\u5f84\u52a0\u5165\u5373\u53ef:<\/p>\n<pre><code>$&gt; sudo vim \/etc\/profile\r\n<\/code><\/pre>\n<p>\u6b64\u5904\u5b9e\u4f8b\u4f7f\u7528\u4e86<code>vim<\/code>\u6587\u672c\u7f16\u8f91\u5668\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u81ea\u5df1\u719f\u6089\u7684\u7f16\u8f91\u5668\u3002<\/p>\n<p>\u5728<code>\/etc\/profile<\/code>\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u884c\uff0c\u6ce8\u610f\u628a\u7528\u6237\u540d\uff08<code>user1<\/code>\uff09\u548c\u76f8\u5e94\u7684\u6587\u4ef6\u76ee\u5f55\u540d\uff08<code>mongodb-linux-x86_64-3.0.1<\/code>\uff09\u66ff\u6362\u6210\u81ea\u5df1\u7cfb\u7edf\u4e2d\u7684\u540d\u79f0\uff1a<\/p>\n<pre><code>export PATH=$PATH:\/home\/user1\/mongodb-linux-x86_64-3.0.1\/bin\r\n<\/code><\/pre>\n<p>\u4fdd\u5b58\u4fee\u6539\u540e\uff0c\u5728\u7ec8\u7aef\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4f7f\u73af\u5883\u53d8\u91cf\u751f\u6548:<\/p>\n<pre><code>$&gt; source \/etc\/profile\r\n<\/code><\/pre>\n<h3><a id=\"user-content-22-\u6d4b\u8bd5mongodb\u5b89\u88c5\" class=\"anchor\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/Leanote-%E4%BA%8C%E8%BF%9B%E5%88%B6%E7%89%88%E8%AF%A6%E7%BB%86%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B----Mac-and-Linux#22-%E6%B5%8B%E8%AF%95mongodb%E5%AE%89%E8%A3%85\" aria-hidden=\"true\"><\/a>2.2 \u6d4b\u8bd5<code>mongodb<\/code>\u5b89\u88c5<\/h3>\n<p>\u5148\u5728<code>\/home\/user1<\/code>\u4e0b\u65b0\u5efa\u4e00\u4e2a\u76ee\u5f55<code>data<\/code>\u5b58\u653e<code>mongodb<\/code>\u6570\u636e:<\/p>\n<pre><code>mkdir \/home\/user1\/data\r\n<\/code><\/pre>\n<p>\u7528\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8<code>mongod<\/code>:<\/p>\n<pre><code>mongod --dbpath \/home\/user1\/data\r\n<\/code><\/pre>\n<p>\u8fd9\u65f6<code>mongod<\/code>\u5df2\u7ecf\u542f\u52a8\uff0c\u91cd\u65b0\u6253\u5f00\u4e00\u4e2a\u7ec8\u7aef, \u952e\u5165<code>mongo<\/code>\u8fdb\u5165\u4ea4\u4e92\u7a0b\u5e8f\uff1a<\/p>\n<pre><code>$&gt; mongo\r\n&gt; show dbs\r\n...\u6570\u636e\u5e93\u5217\u8868\r\n<\/code><\/pre>\n<p><code>mongodb<\/code>\u5b89\u88c5\u5230\u6b64\u4e3a\u6b62, \u4e0b\u9762\u4e3a<code>mongodb<\/code>\u5bfc\u5165<code>leanote<\/code>\u521d\u59cb\u6570\u636e\u3002<\/p>\n<hr \/>\n<h2><a id=\"user-content-3-\u5bfc\u5165\u521d\u59cb\u6570\u636e\" class=\"anchor\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/Leanote-%E4%BA%8C%E8%BF%9B%E5%88%B6%E7%89%88%E8%AF%A6%E7%BB%86%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B----Mac-and-Linux#3-%E5%AF%BC%E5%85%A5%E5%88%9D%E5%A7%8B%E6%95%B0%E6%8D%AE\" aria-hidden=\"true\"><\/a>3. \u5bfc\u5165\u521d\u59cb\u6570\u636e<\/h2>\n<p><code>leanote<\/code>\u521d\u59cb\u6570\u636e\u5b58\u653e\u5728\u00a0<code>\/home\/user1\/leanote\/mongodb_backup\/leanote_install_data<\/code>\u4e2d\u3002<\/p>\n<p>\u6253\u5f00\u7ec8\u7aef\uff0c \u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5bfc\u5165\u6570\u636e\u3002<\/p>\n<pre><code>$&gt; mongorestore -h localhost -d leanote --dir \/home\/user1\/leanote\/mongodb_backup\/leanote_install_data\/\r\n<\/code><\/pre>\n<p>\u73b0\u5728\u5728<code>mongodb<\/code>\u4e2d\u5df2\u7ecf\u65b0\u5efa\u4e86<code>leanote<\/code>\u6570\u636e\u5e93, \u53ef\u7528\u547d\u4ee4\u67e5\u770b\u4e0b<code>leanote<\/code>\u6709\u591a\u5c11\u5f20&#8221;\u8868&#8221;:<\/p>\n<pre><code>$&gt; mongo\r\n&gt; show dbs #\u3000\u67e5\u770b\u6570\u636e\u5e93\r\nleanote\t0.203125GB\r\nlocal\t0.078125GB\r\n&gt; use leanote # \u5207\u6362\u5230leanote\r\nswitched to db leanote\r\n&gt; show collections # \u67e5\u770b\u8868\r\nfiles\r\nhas_share_notes\r\nnote_content_histories\r\nnote_contents\r\n....\r\n<\/code><\/pre>\n<p>\u521d\u59cb\u6570\u636e\u7684<code>users<\/code>\u8868\u4e2d\u5df2\u67092\u4e2a\u7528\u6237:<\/p>\n<pre><code>user1 username: admin, password: abc123 (\u7ba1\u7406\u5458, \u53ea\u6709\u8be5\u7528\u6237\u624d\u6709\u6743\u7ba1\u7406\u540e\u53f0, \u8bf7\u53ca\u65f6\u4fee\u6539\u5bc6\u7801)\r\nuser2 username: demo@leanote.com, password: demo@leanote.com (\u4ec5\u4f9b\u4f53\u9a8c\u4f7f\u7528)\r\n<\/code><\/pre>\n<hr \/>\n<h2><a id=\"user-content-4-\u914d\u7f6eleanote\" class=\"anchor\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/Leanote-%E4%BA%8C%E8%BF%9B%E5%88%B6%E7%89%88%E8%AF%A6%E7%BB%86%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B----Mac-and-Linux#4-%E9%85%8D%E7%BD%AEleanote\" aria-hidden=\"true\"><\/a>4. \u914d\u7f6e<code>leanote<\/code><\/h2>\n<p><code>leanote<\/code>\u7684\u914d\u7f6e\u5b58\u50a8\u5728\u6587\u4ef6\u00a0<code>conf\/app.conf<\/code>\u00a0\u4e2d\u3002<\/p>\n<p>\u8bf7\u52a1\u5fc5\u4fee\u6539<code>app.secret<\/code>\u4e00\u9879, \u5728\u82e5\u5e72\u4e2a\u968f\u673a\u4f4d\u7f6e\u5904\uff0c\u5c06\u5b57\u7b26\u4fee\u6539\u6210\u4e00\u4e2a\u5176\u4ed6\u7684\u503c, \u5426\u5219\u4f1a\u6709\u5b89\u5168\u9690\u60a3!<\/p>\n<p>\u5176\u5b83\u7684\u914d\u7f6e\u53ef\u6682\u65f6\u4fdd\u6301\u4e0d\u53d8, \u82e5\u9700\u8981\u914d\u7f6e\u6570\u636e\u5e93\u4fe1\u606f, \u8bf7\u53c2\u7167\u00a0<a href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/QA\">leanote\u95ee\u9898\u6c47\u603b<\/a>\u3002<\/p>\n<hr \/>\n<h2><a id=\"user-content-5-\u8fd0\u884cleanote\" class=\"anchor\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/Leanote-%E4%BA%8C%E8%BF%9B%E5%88%B6%E7%89%88%E8%AF%A6%E7%BB%86%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B----Mac-and-Linux#5-%E8%BF%90%E8%A1%8Cleanote\" aria-hidden=\"true\"><\/a>5. \u8fd0\u884c<code>leanote<\/code><\/h2>\n<p><strong>\u6ce8\u610f:<\/strong>\u00a0\u5728\u6b64\u4e4b\u524d\u8bf7\u786e\u4fdd<code>mongodb<\/code>\u5df2\u5728\u8fd0\u884c!<\/p>\n<p>\u65b0\u5f00\u4e00\u4e2a\u7a97\u53e3, \u8fd0\u884c:<\/p>\n<pre><code>$&gt; cd \/home\/user1\/leanote\/bin\r\n$&gt; bash run.sh\r\n<\/code><\/pre>\n<p>\u6700\u540e\u51fa\u73b0\u4ee5\u4e0b\u4fe1\u606f\u8bc1\u660e\u8fd0\u884c\u6210\u529f:<\/p>\n<pre><code>...\r\nTRACE 2013\/06\/06 15:01:27 watcher.go:72: Watching: \/home\/life\/leanote\/bin\/src\/github.com\/leanote\/leanote\/conf\/routes\r\nGo to \/@tests to run the tests.\r\nListening on :9000...\r\n<\/code><\/pre>\n<p>\u606d\u559c\u4f60, \u6253\u5f00\u6d4f\u89c8\u5668\u8f93\u5165:\u00a0<code>http:\/\/localhost:9000<\/code>\u00a0\u4f53\u9a8c<code>leanote<\/code>\u5427!<\/p>\n<h1><a id=\"user-content-\u6ce8\u610f\" class=\"anchor\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/Leanote-%E4%BA%8C%E8%BF%9B%E5%88%B6%E7%89%88%E8%AF%A6%E7%BB%86%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B----Mac-and-Linux#%E6%B3%A8%E6%84%8F\" aria-hidden=\"true\"><\/a>\u6ce8\u610f!!!!!!!!!!!!!!<\/h1>\n<p>\u6309\u7167\u672c\u6559\u7a0b\u542f\u52a8<code>Mongodb<\/code>\u662f\u6ca1\u6709\u6743\u9650\u63a7\u5236\u7684, \u5982\u679c\u4f60\u7684Leanote\u670d\u52a1\u5668\u66b4\u9732\u5728\u5916\u7f51, \u4efb\u4f55\u4eba\u90fd\u53ef\u4ee5\u8bbf\u95ee\u4f60\u7684Mongodb\u5e76\u4fee\u6539, \u6240\u4ee5\u8fd9\u662f\u6781\u5176\u5371\u9669\u7684!!!!!!!!!!! \u8bf7\u52a1\u5fc5\u4e3aMongodb\u6dfb\u52a0\u7528\u6237\u540d\u548c\u5bc6\u7801\u5e76\u4ee5<code>auth<\/code>\u542f\u52a8, \u65b9\u6cd5\u8bf7\u89c1:\u00a0<a href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/QA#%E5%A6%82%E4%BD%95%E7%BB%91%E5%AE%9A%E5%9F%9F%E5%90%8D\">\u4e3amongodb\u6570\u636e\u5e93\u6dfb\u52a0\u7528\u6237<\/a><\/p>\n<h1><a id=\"user-content-leanote-\u5b89\u88c5\u914d\u7f6e\u95ee\u9898\u6c47\u603b\" class=\"anchor\" href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/Leanote-%E4%BA%8C%E8%BF%9B%E5%88%B6%E7%89%88%E8%AF%A6%E7%BB%86%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B----Mac-and-Linux#leanote-%E5%AE%89%E8%A3%85%E9%85%8D%E7%BD%AE%E9%97%AE%E9%A2%98%E6%B1%87%E6%80%BB\" aria-hidden=\"true\"><\/a><code>leanote<\/code>\u00a0\u5b89\u88c5\/\u914d\u7f6e\u95ee\u9898\u6c47\u603b<\/h1>\n<p>\u5982\u679c\u8fd0\u884c\u6709\u95ee\u9898\u6216\u60f3\u8981\u8fdb\u4e00\u6b65\u914d\u7f6e<code>leanote<\/code>, \u8bf7\u53c2\u7167\u00a0<a href=\"https:\/\/github.com\/leanote\/leanote\/wiki\/QA\">leanote\u95ee\u9898\u6c47\u603b<\/a>\u3002<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>life edited this pag<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[],"tags":[117],"class_list":["post-187","post","type-post","status-publish","format-standard","hentry","tag-01-linux"],"_links":{"self":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/comments?post=187"}],"version-history":[{"count":0,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/187\/revisions"}],"wp:attachment":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/media?parent=187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/categories?post=187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/tags?post=187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}