添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
  • 需要先部署mysql(建议用mysql5版本),采用docker方式部署,端口在宿主机映射为8444
admin@test:~/wizard/mysql$ docker run -d --name mysql-test -e MYSQL_ROOT_PASSWORD=123456  -p 8444:3306 docker.io/mysql:5.7
70654acb7b6bcd1619dc6a6a934c4d5f6b6915533d0ef96b014e7ea614f344e7
admin@test:~/wizard/mysql$ 
  • 尝试用root/123456登录mysql并创建database
admin@test:~/wizard/mysql$ docker exec -it mysql-test bash
root@70654acb7b6b:/# mysql -uroot -p
Enter password: #这里填入123456
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.35 MySQL Community Server (GPL)
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> 
mysql> CREATE DATABASE wizard;
Query OK, 1 row affected (0.00 sec)
mysql> show database;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'database' at line 1
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| sys                |
| wizard             |
+--------------------+
5 rows in set (0.00 sec)
mysql> 
  • 启动wizard docker,注意填入的DB信息
docker run -d --name wizard \
    -e DB_HOST=192.168.25.51 \
    -e DB_PORT=8444  \
    -e DB_DATABASE=wizard  \
    -e DB_USERNAME=root  \
    -e DB_PASSWORD=123456  \
    -p 8333:80 \
   -e APP_DEBUG=true \
    -v /data/users/admin/wizard:/webroot/storage/app/public   \
    mylxsw/wizard
  • 进入wizard docker,执行两条初始化命令
root@52d31d1d6bac:/webroot# php artisan migrate:install Migration table created successfully. root@52d31d1d6bac:/webroot# php artisan migrate:install Migration table created successfully. root@52d31d1d6bac:/webroot# php artisan migrate ************************************** * Application In Production! * ************************************** Do you really wish to run this command? (yes/no) [no]: Migrating: 2014_10_12_000000_create_users_table Migrated: 2014_10_12_000000_create_users_table (0.01 seconds) Migrating: 2014_10_12_100000_create_password_resets_table Migrated: 2014_10_12_100000_create_password_resets_table (0 seconds) Migrating: 2017_07_31_012730_create_project_table Migrated: 2017_07_31_012730_create_project_table (0 seconds) Migrating: 2017_07_31_013758_create_page_table Migrated: 2017_07_31_013758_create_page_table (0 seconds) Migrating: 2017_08_01_151100_create_page_history_table Migrated: 2017_08_01_151100_create_page_history_table (0 seconds) Migrating: 2017_08_03_232417_create_operation_logs_table Migrated: 2017_08_03_232417_create_operation_logs_table (0 seconds) Migrating: 2017_08_04_143640_create_template_table Migrated: 2017_08_04_143640_create_template_table (0 seconds) Migrating: 2017_08_06_115558_create_group_table Migrated: 2017_08_06_115558_create_group_table (0 seconds) Migrating: 2017_08_06_120713_create_user_group_ref_table Migrated: 2017_08_06_120713_create_user_group_ref_table (0 seconds) Migrating: 2017_08_06_122310_update_user_table Migrated: 2017_08_06_122310_update_user_table (0 seconds) Migrating: 2017_08_06_124106_create_project_group_ref_table Migrated: 2017_08_06_124106_create_project_group_ref_table (0 seconds) Migrating: 2017_08_10_093939_create_categories_table Migrated: 2017_08_10_093939_create_categories_table (0 seconds) Migrating: 2017_08_11_171545_create_share_table Migrated: 2017_08_11_171545_create_share_table (0 seconds) Migrating: 2017_08_17_224954_create_comments_table Migrated: 2017_08_17_224954_create_comments_table (0 seconds) Migrating: 2017_08_18_133716_create_attachments_table Migrated: 2017_08_18_133716_create_attachments_table (0 seconds) Migrating: 2017_08_19_002350_create_notifications_table Migrated: 2017_08_19_002350_create_notifications_table (0.01 seconds) Migrating: 2017_09_19_174315_modify_operation_logs Migrated: 2017_09_19_174315_modify_operation_logs (0 seconds) Migrating: 2017_09_24_145801_modify_user_table Migrated: 2017_09_24_145801_modify_user_table (0 seconds) Migrating: 2018_01_27_150601_modify_project_table Migrated: 2018_01_27_150601_modify_project_table (0 seconds) Migrating: 2018_04_11_172516_create_project_catalogs_table Migrated: 2018_04_11_172516_create_project_catalogs_table (0 seconds) Migrating: 2018_04_11_172816_modify_project_add_catalog Migrated: 2018_04_11_172816_modify_project_add_catalog (0 seconds) Migrating: 2018_04_12_143655_create_project_star_table Migrated: 2018_04_12_143655_create_project_star_table (0 seconds) Migrating: 2018_05_10_105015_create_tags_table Migrated: 2018_05_10_105015_create_tags_table (0 seconds) Migrating: 2018_05_10_105629_create_page_tag_table Migrated: 2018_05_10_105629_create_page_tag_table (0.01 seconds) Migrating: 2018_12_11_164112_add_sort_to_nav Migrated: 2018_12_11_164112_add_sort_to_nav (0 seconds) Migrating: 2018_12_11_164721_add_sort_to_nav_history Migrated: 2018_12_11_164721_add_sort_to_nav_history (0 seconds) Migrating: 2019_04_20_141850_add_sync_to_pages Migrated: 2019_04_20_141850_add_sync_to_pages (0 seconds) Migrating: 2019_04_20_141934_add_sync_filed_to_page_histories Migrated: 2019_04_20_141934_add_sync_filed_to_page_histories (0 seconds) Migrating: 2019_04_27_214733_add_objectguid_column Migrated: 2019_04_27_214733_add_objectguid_column (0 seconds) Migrating: 2019_08_09_115948_optimize_pages Migrated: 2019_08_09_115948_optimize_pages (0 seconds) Migrating: 2019_08_09_120209_optimize_page_histories Migrated: 2019_08_09_120209_optimize_page_histories (0 seconds) Migrating: 2019_08_09_120318_optimize_project_stars Migrated: 2019_08_09_120318_optimize_project_stars (0 seconds) Migrating: 2019_08_09_120748_optimize_attachments Migrated: 2019_08_09_120748_optimize_attachments (0 seconds) Migrating: 2019_11_13_103848_add_show_in_home_to_catalogs Migrated: 2019_11_13_103848_add_show_in_home_to_catalogs (0 seconds) Migrating: 2019_12_31_115014_create_widget_table Migrated: 2019_12_31_115014_create_widget_table (0 seconds) Migrating: 2020_10_10_180119_create_page_score Migrated: 2020_10_10_180119_create_page_score (0 seconds) root@52d31d1d6bac:/webroot#

打开Web

  • 按照刚才的web端口映射,用浏览器访问
    http://{server-ip}:8333
  • 第一个注册的用户就是管理员
  • 一看,不能创建文件夹,无法出树形结构,又只支持markdown(swagger用不上),果断弃了
    在这里插入图片描述
项目地址https://github.com/mylxsw/wizard部署需要先部署mysql,也采用docker方式部署,端口在宿主机映射为8444admin@centec-SONiC:~/wizard/mysql$ docker run -d --name mysql-test -e MYSQL_ROOT_PASSWORD=123456 -p 8444:3306 docker.io/mysql:5.770654acb7b6bcd1619dc6a6a934c4d5f6b6915533d0