一氣之下,我自己搭了個(gè)云筆記!!手把手帶你打造一個(gè)屬于自己的免費(fèi)云筆記,神清氣爽

云筆記
項(xiàng)目github倉(cāng)庫(kù)
https://github.com/leanote/leanote
安裝寶塔
下載安裝寶塔
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
相關(guān)信息
================================================================== Congratulations! Installed successfully! ================================================================== 外網(wǎng)面板地址: http://xxx.xxx.xxx.xxx:8888/xxxxx 內(nèi)網(wǎng)面板地址: http://xxx.xxx.xxx.xxx:8888/xxxxx username: xxxxxx password: xxxxxx If you cannot access the panel, release the following panel port [8888] in the security group 若無法訪問面板,請(qǐng)檢查防火墻/安全組是否有放行面板[8888]端口 ==================================================================
安裝必要軟件
- MongoDB
- Nginx
部署項(xiàng)目
- 進(jìn)入目錄
cd /home/www?
- 下載或?qū)腠?xiàng)目
wget --no-check-certificate https://sourceforge.net/projects/leanote-bin/files/2.6.1/leanote-linux-amd64-v2.6.1.bin.tar.gz
- 解壓
tar -zxvf leanote-linux-amd64-v2.6.1.bin.tar.gz
- 進(jìn)入解壓目錄找到 leanote_install_data 并導(dǎo)入數(shù)據(jù)庫(kù)
cd leanote/mongodb_backup/ mongorestore -h localhost -d leanote --dir leanote_install_data/
- 進(jìn)入項(xiàng)目下的bin目錄
cd /home/www/leanote/bin
- 后臺(tái)啟動(dòng)項(xiàng)目
nohup bash run.sh &
- 寶塔-->安全-->系統(tǒng)防火墻--->放行端口9000 && 服務(wù)器安全組放行端口9000
- 訪問項(xiàng)目 ip:9000 完成注冊(cè)并登錄
- Ngnix發(fā)布應(yīng)用
upstream note{ ??server 127.0.0.1:9000; } server { ??listen???80; ??server_name localhost; ??#charset koi8-r; ??#access_log logs/host.access.log main; ??location / { ????proxy_pass http://note; ????proxy_set_header HOST $host; ????proxy_set_header X-Forwarded-Proto $scheme; ????proxy_set_header X-Real-IP $remote_addr; ????proxy_set_header X-Forwarded_For $proxy_add_x_forwarded_for; ??} }
標(biāo)簽: