测试几个网站开源项目

CmsWing

要用 mysql

docker pull mysqldocker run -d --name docker_mysql -p 33060:3306 -e MYSQL_ROOT_PASSWORD=123456 mysql:latestdocker run -d -p 33060:3306 --name docker_mysql -v $PWD/conf:/etc/mysql/conf.d -v $PWD/logs:/var/log -v $PWD/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 mysqldocker exec -it  docker_mysql /bin/bash

heidisql 连接出错:

authentication plugin 'caching_sha2_password' cannot be loaded

得修改权限

ALTER USER 'root'@'%' IDENTIFIED BY '123456' PASSWORD EXPIRE NEVER;ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456';FLUSH PRIVILEGES;

可以登录了。。
还行。。。

docker stop docker_mysql
docker start docker_mysql

doracms

要用 mongodb

docker pull mongodocker run -d --name docker_mongo -p 27017:27017 -v mongo:latestdocker run -d --name docker_mongo -p 27017:27017 -v $PWD/db:/data/db mongo:latest
docker run -itd --name mongo -p 27017:27017 mongo --authdocker exec -it mongo mongo admin

doracms 需要本地安装 mongo 来还原数据库,找了找有 docker 镜像。

docker search doracms
docker pull doramart/doracms

出错了:

Error response from daemon: manifest for doramart/doracms:latest not found

docker pull doramart/doracms:2.1.2
docker run -it -p 8080:8080 --name doracms doramart/doracms:2.1.2 /bin/bash

redis-server /etc/redis/redis.conf &

cd /usr/local/mongodb/mongodb-linux-x86_64-ubuntu1604-4.0.9/bin/
./mongod --config /usr/local/mongodb/mongodb.conf

cd /home/webapp/DoraCMS/
git pull

rm -rf node_modules/
npm i

source /etc/profile

pm2 start server.js --name doracms

打开 http://localhost:8080。。还行,管理界面不错。不过似乎没有集成买卖东西的内容。

nodebb

需要 mongo

docker run -itd --name docker_mongo -p 27017:27017 mongo --authdocker exec -it docker_mongo /bin/bash

mongo

use admin
db.createUser( { user: "admin", pwd: "asdfgh", roles: [ { role: "root", db: "admin" } ] } )
db.auth("admin","asdfgh")
use nodebb
db.createUser( { user: "nodebb", pwd: "123456", roles: [ { role: "readWrite", db: "nodebb" }, { role: "clusterMonitor", db: "admin" } ] } )
quit()
mongo -u admin -p asdfgh --authenticationDatabase=admin
./nodebb setup

错误:

fetchMetadata: sill pacote range manifest for ieee754@^1.1.4 fetched in 213m
换个源

npm config set registry  https://registry.npm.taobao.org

或者

检查下

npm config get registry
npm config list

下载还是太慢了。

启动

./nodebb start
./nodebb stop

打开http://localhost:4567,是个论坛程序,还不错,有各种语言、各种皮肤,各种功能完善。

reforum

也需要 mongodb

npm i
mongo -u admin -p asdfgh --authenticationDatabase=admin
use reforum
db.createUser( { user: "reforum", pwd: "123456", roles: [ { role: "readWrite", db: "reforum" }, { role: "clusterMonitor", db: "admin" } ] } )

mongodb://reforum:123456@localhost:27017/reforum

需要 GitHub OAuth,太麻烦。。

npm run start

打开 http://localhost:8080,出错。。算了,不玩这个了。。

n-blog

需要 mongo

docker start docker_mongodocker exec -it docker_mongo /bin/bash
mongo -u admin -p asdfgh --authenticationDatabase=admin
use myblog
db.createUser( { user: "myblog", pwd: "123456", roles: [ { role: "readWrite", db: "myblog" }, { role: "clusterMonitor", db: "admin" } ] } )
quit()

mongodb://myblog:123456@localhost:27017/myblog

npm i config-lite connect-flash connect-mongo ejs express express-session marked moment mongolass objectid-to-timestamp sha1 winston express-winston --save

npm i https://github.com:utatti/express-formidable.git --save # 从 GitHub 安装 express-formidable 最新版,v1.0.0 有 bug

node index

打开 http://localhost:3000,功能太简单了。。

essay

docker start docker_mongodocker exec -it docker_mongo /bin/bash
mongo -u admin -p asdfgh --authenticationDatabase=admin
use essay
db.createUser( { user: "essay", pwd: "123456", roles: [ { role: "readWrite", db: "essay" }, { role: "clusterMonitor", db: "admin" } ] } )
quit()
npm install
npm run dev

npm install
npm run build
pm2 start npm --name "essay" -- start

打开 http://127.0.0.1:3025,admin/123456,还不错。

lyanna

mysql://root:123456@localhost:33060/test?charset=utf8

需要安装的数据服务太多了。。mysql,redis,memcache 。。。算了,不玩了。

surmon.me

需要四个项目一起合作。。
服务 nodepress需要 mongo 和 redis

docker start docker_mongodocker exec -it docker_mongo /bin/bash
mongo -u admin -p asdfgh --authenticationDatabase=admin
use NodePress
db.createUser( { user: "surmon", pwd: "123456", roles: [ { role: "readWrite", db: "NodePress" }, { role: "clusterMonitor", db: "admin" } ] } )
quit()

mongodb://surmon:123456@127.0.0.1:27017/NodePress

docker run --name docker_redis -p 6379:6379 -d redis:latest redis-server
npm cinpm run start:dev
npm run buildnpm run start:prod

前端 surmon.me

npm installnpm run dev

http://localhost:3000

npm run buildnpm start
npm run updategeodb

管理 angular-admin
客户端 surmon.me.native
东西是不错了,是很多东西拼凑起来的一整套东西,可以用于参考,但对个人太复杂了。


Share Tweet Send
0 Comments
Loading...

Related Articles

You've successfully subscribed to 隔窗听雨
Great! Next, complete checkout for full access to 隔窗听雨
Welcome back! You've successfully signed in
Success! Your account is fully activated, you now have access to all content.
豫ICP备19045256号-1