Jeremy Zheng 0896180883 :bug: fix docker start script 3 лет назад
..
cpp 0fc90574f8 :memo: create the structure of documents 3 лет назад
frontend 36dba9c2e8 :construction: add pro-table demo 3 лет назад
git ca9ca43961 :memo: add vscode settings & fix git pr memo 3 лет назад
java 0fc90574f8 :memo: create the structure of documents 3 лет назад
node 0fc90574f8 :memo: create the structure of documents 3 лет назад
php 0fc90574f8 :memo: create the structure of documents 3 лет назад
README.md 0896180883 :bug: fix docker start script 3 лет назад

README.md

开发线培训文档

编辑器设置

VS Code 配置文件

  • Windows %APPDATA%\Code\User\settings.json
  • macOS $HOME/Library/Application Support/Code/User/settings.json
  • Linux $HOME/.config/Code/User/settings.json

系统设置

操作系统准备

  • 添加如下到 /etc/sysctl.d/60-my.conf,然后 sudo rebootsudo sysctl -p

    vm.overcommit_memory = 1
    vm.max_map_count = 262144
    

镜像准备

# 解压镜像
cat palm-jammy.tar.xz.?? | tar jx
# 导入镜像
podman load -i palm-jammy-TIMESTAMP.tar
# 启动容器
cd ~/workspace
./mint/docker/jammy/start.sh

容器准备

  • 启动 dashboard

    $ cd ~/workspace
    $ ./mint/docker/jammy/start.sh
    > supervisord -c /etc/supervisor/supervisord.conf # 启动服务
    > /etc/redis/clusters-init.sh # 初始化redis集群
    

run.png

services.png

常见连接和测试

  • PostgreSql

    • 连接

      psql -h 127.0.0.1 -p 5432 -U postgres
      
    • 创建数据库和用户

      CREATE DATABASE db-name WITH ENCODING = 'UTF8';
      CREATE USER user-name WITH PASSWORD 'change-me';
      GRANT ALL PRIVILEGES ON DATABASE db-name TO user-name;
      
  • MySql

    # reset root's password
    mysql_secure_installation
    
  • Redis

    # connect to redis node-1
    redis-cli -c -h 127.0.0.1 -p 16371
    
  • Minio dashboard (admin:12345678)

  • RabbitMQ dashboard (guest:guest)

    # enable rabbitmq management plugin
    rabbitmq-plugins enable rabbitmq_management
    
  • Php info.php

  • OpenSearch

    # show info
    curl -X GET http://localhost:9200
    curl -X GET http://localhost:9200/_cat/plugins?v
    

git pr 流程

后端

前端