腾讯云技术社区-博客主页持续为大家呈现云计算技术文章,欢迎大家关注!
作者:慕星星
很多情况下,对于一个程序员,作家、等等行业,都需要一个笔记本来记录自己的经验,创作等等。这么说来一个好的笔记本就需要好好选择和考虑的了。
今天我推荐一款笔记本,是网络笔记,名字是:蚂蚁笔记,leanote:开源产品。
需要一个域名,可以从腾讯、阿里申请。
需要一台服务器,建议从腾讯云购买,很便宜的,最低只需要45/月。
这是我的博客,正在备案,可能打不开。http://www.itgrub.com
配置环境:CentOS7 64
最新的leanote程序可以从这里下载:http://leanote.org/#download 选择:linux 64,具体还是根据自己的服务器来决定的
####安装并设置leanote cd /home wget https://iweb.dl.sourceforge.net/project/leanote-bin/2.4/leanote-linux-amd64-v2.4.bin.tar.gz tar -zxvf leanote-linux-amd64-v2.4.bin.tar.gz vim /home/leanote/conf/app.conf #必须改变这里:app.secret ####导入leanote初始数据库 mongorestore -h localhost -d leanote --dir /home/leanote/mongodb_backup/leanote_install_data/ ####启动leanote cd /home/leanote/bin sh run.sh #现在再开一个窗口,从第三个窗口访问使用supervisord服务来控制leanote与mongodb自启动
yum install -y epel-release yum install -y python-setuptools m2crypto easy_install supervisor echo_supervisord_conf > /etc/supervisord.conf #编辑配置文件,末尾加入 vim /etc/supervisord.conf [program:mongodb] command=/home/mongodb/bin/mongod --bind_ip 127.0.0.1 --dbpath=/home/mongoData autostart=true autorestart=true user=root log_stderr=true logfile=/var/log/mongodb.log [program:leanote] command=/bin/bash /home/leanote/bin/run.sh autostart=true autorestart=true user=root log_stderr=true logfile=/var/log/leanote.log #保存后,关闭第一个、第二个窗口,在关闭前使用ctrl+c,然后启动supervisord服务 systemctl start superviord.service echo 'systemctl start superviord.service' >> /etc/rc.local相关推荐
如何购买腾讯云服务器 【腾讯云的1001种玩法】如何使用腾讯云服务器作为微信公众号的开发空间
此文已由作者授权腾讯云技术社区发布,转载请注明文章出处 原文链接:https://www.qcloud.com/community/article/11431001491442349 获取更多腾讯海量技术实践干货,欢迎大家前往腾讯云技术社区