sharing_config-dev.sh 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. export ETCDCTL_API=3
  2. # root配置
  3. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/run_mode -d value="9Th7lGvKBPOMOwnH0U_bzg"
  4. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/app_key -d value="9Th7lGvKBPOMOwnH0U_bzg"
  5. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/app_secret -d value="9Th7lGvKBPOMOwnH0U_bzg"
  6. # mysql 配置
  7. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/mysql/user -d value="N4oBj1cXx5wFg3DS1xPw5g"
  8. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/mysql/password -d value="Ui_mDt72PYE39qZ6POwHNA"
  9. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/mysql/addr -d value="C3ezou5txjrSiUuyMk_VJH0dsSerQs5tKIZ2eMZNC60"
  10. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/mysql/default_db -d value=""
  11. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/mysql/charset -d value="f6Ny3dxOS9QXlPEHW52uVw"
  12. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/mysql/max_idle -d value="BwYSwIflaw1ReNa7A4SfdA"
  13. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/mysql/max_conn -d value="sIYNSRl6pMnhyGrWMnnbLw"
  14. # redis 配置
  15. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/redis/network -d value="9-wy8RLeSlIQiNHIhBfSRQ"
  16. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/redis/addr -d value="b4r_Rx-940_ljGM_vMmU0g"
  17. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/redis/password -d value="8OTf6mYFs3YKE2ON0aEr0A"
  18. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/redis/connect_timeout -d value="55EVTweIHIwnUEu_rUN1Gg"
  19. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/redis/read_timeout -d value="55EVTweIHIwnUEu_rUN1Gg"
  20. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/redis/write_timeout -d value="55EVTweIHIwnUEu_rUN1Gg"
  21. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/redis/idle_timeout -d value="VtVyBjTVINUhUNcGdeu7uQ"
  22. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/redis/max_active -d value="APi8eN13MAjeHIbOSHwuXQ"
  23. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/redis/max_idle -d value="5SCkyQvQM4Rg_jla8tuDRw"
  24. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/redis/wait_flag -d value="CuLQ7rVEtu6DH8xIoP-7JQ"
  25. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/redis/default_db -d value="D6TQs_HydYKbCVCboH8QYg"
  26. # cgi 配置
  27. # cgidemo 配置
  28. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/cgi/demo/log/level -d value="2eTIzES8cJ9Ff4rqpOiL3g"
  29. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/cgi/demo/log/max_size -d value="sIYNSRl6pMnhyGrWMnnbLw"
  30. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/cgi/demo/log/max_backups -d value="Zk8cnJ63ZhWVVEf9W5l0YQ"
  31. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/cgi/demo/log/max_age -d value="yx5Jm4ydWQRavrGpY46XFw"
  32. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/cgi/demo/log/disable_stacktrace -d value="CuLQ7rVEtu6DH8xIoP-7JQ" # 默认不打印堆栈
  33. # cjj_camera_gateway 配置
  34. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/cgi/cjj_camera_gateway/log/level -d value="2eTIzES8cJ9Ff4rqpOiL3g"
  35. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/cgi/cjj_camera_gateway/log/max_size -d value="sIYNSRl6pMnhyGrWMnnbLw"
  36. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/cgi/cjj_camera_gateway/log/max_backups -d value="Zk8cnJ63ZhWVVEf9W5l0YQ"
  37. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/cgi/cjj_camera_gateway/log/max_age -d value="yx5Jm4ydWQRavrGpY46XFw"
  38. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/cgi/cjj_camera_gateway/log/disable_stacktrace -d value="CuLQ7rVEtu6DH8xIoP-7JQ"
  39. # cjj_business_gateway 配置
  40. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/cgi/cjj_business_gateway/log/level -d value="2eTIzES8cJ9Ff4rqpOiL3g"
  41. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/cgi/cjj_business_gateway/log/max_size -d value="sIYNSRl6pMnhyGrWMnnbLw"
  42. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/cgi/cjj_business_gateway/log/max_backups -d value="Zk8cnJ63ZhWVVEf9W5l0YQ"
  43. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/cgi/cjj_business_gateway/log/max_age -d value="yx5Jm4ydWQRavrGpY46XFw"
  44. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/cgi/cjj_business_gateway/log/disable_stacktrace -d value="CuLQ7rVEtu6DH8xIoP-7JQ"
  45. # rpc 配置
  46. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/base_path -d value="YCjIZLW6ELKIbTk7T2Sh_w"
  47. # arith配置
  48. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/arith/scheme -d value="9-wy8RLeSlIQiNHIhBfSRQ"
  49. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/arith/name -d value="71OcCZ3GYS_y2O1HYSi3lg" # 增加一个rpc需要修改这里的名字
  50. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/arith/update_interval -d value="oH2S2caAGf1Tv5UuZFPWvQ"
  51. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/arith/mysql_db -d value=""
  52. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/arith/redis_db -d value=""
  53. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/arith/log/level -d value="2eTIzES8cJ9Ff4rqpOiL3g"
  54. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/arith/log/max_size -d value="sIYNSRl6pMnhyGrWMnnbLw"
  55. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/arith/log/max_backups -d value="Zk8cnJ63ZhWVVEf9W5l0YQ"
  56. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/arith/log/max_age -d value="yx5Jm4ydWQRavrGpY46XFw"
  57. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/cgi/arith/log/disable_stacktrace -d value="CuLQ7rVEtu6DH8xIoP-7JQ"
  58. # camera配置
  59. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/camera/scheme -d value="9-wy8RLeSlIQiNHIhBfSRQ"
  60. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/camera/name -d value="XfNPObKUnTIwEhSUiMtp4w"
  61. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/camera/update_interval -d value="oH2S2caAGf1Tv5UuZFPWvQ"
  62. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/camera/log_mode -d value="2eTIzES8cJ9Ff4rqpOiL3g"
  63. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/camera/mysql_db -d value="eUgGOZjI9mQcFfPXdKyZtCpluXjQMDrOn_xUGMsz5YA"
  64. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/camera/redis_db -d value="D6TQs_HydYKbCVCboH8QYg"
  65. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/camera/log/max_size -d value="sIYNSRl6pMnhyGrWMnnbLw"
  66. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/camera/log/max_backups -d value="Zk8cnJ63ZhWVVEf9W5l0YQ"
  67. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/camera/log/max_age -d value="yx5Jm4ydWQRavrGpY46XFw"
  68. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/cgi/camera/log/disable_stacktrace -d value="CuLQ7rVEtu6DH8xIoP-7JQ"
  69. # niche配置
  70. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/niche/scheme -d value="9-wy8RLeSlIQiNHIhBfSRQ"
  71. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/niche/name -d value="Uvo35hAu-AuCyyhiEkG5Ug"
  72. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/niche/update_interval -d value="oH2S2caAGf1Tv5UuZFPWvQ"
  73. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/niche/log_mode -d value="2eTIzES8cJ9Ff4rqpOiL3g"
  74. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/niche/mysql_db -d value="MmgNTrfNb4xabnoI_mKR5NHg0FuTQmhlzFNJYaLdlbo"
  75. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/niche/redis_db -d value="D6TQs_HydYKbCVCboH8QYg"
  76. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/niche/log/max_size -d value="sIYNSRl6pMnhyGrWMnnbLw"
  77. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/niche/log/max_backups -d value="Zk8cnJ63ZhWVVEf9W5l0YQ"
  78. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/niche/log/max_age -d value="yx5Jm4ydWQRavrGpY46XFw"
  79. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/cgi/niche/log/disable_stacktrace -d value="CuLQ7rVEtu6DH8xIoP-7JQ"
  80. # query配置
  81. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/query/scheme -d value="9-wy8RLeSlIQiNHIhBfSRQ"
  82. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/query/name -d value="stPsprzZcvc-1xVl2fSMFA"
  83. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/query/update_interval -d value="oH2S2caAGf1Tv5UuZFPWvQ"
  84. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/query/log_mode -d value="2eTIzES8cJ9Ff4rqpOiL3g"
  85. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/query/mysql_db -d value="efnp4whx7nl6DXEhdV0SwtHg0FuTQmhlzFNJYaLdlbo"
  86. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/query/redis_db -d value="D6TQs_HydYKbCVCboH8QYg"
  87. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/query/log/max_size -d value="sIYNSRl6pMnhyGrWMnnbLw"
  88. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/query/log/max_backups -d value="Zk8cnJ63ZhWVVEf9W5l0YQ"
  89. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/query/log/max_age -d value="yx5Jm4ydWQRavrGpY46XFw"
  90. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/cgi/query/log/disable_stacktrace -d value="CuLQ7rVEtu6DH8xIoP-7JQ"
  91. # user配置
  92. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/user/scheme -d value="9-wy8RLeSlIQiNHIhBfSRQ"
  93. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/user/name -d value="oqhUeopX9k_7DUC8gWSXWw"
  94. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/user/update_interval -d value="oH2S2caAGf1Tv5UuZFPWvQ"
  95. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/user/log_mode -d value="2eTIzES8cJ9Ff4rqpOiL3g"
  96. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/user/mysql_db -d value="lUnocUpEtYtCxDI9Q7rMNQ"
  97. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/user/redis_db -d value="ucTsA7J6eV2ZkwWCY_7ttA"
  98. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/user/log/max_size -d value="sIYNSRl6pMnhyGrWMnnbLw"
  99. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/user/log/max_backups -d value="Zk8cnJ63ZhWVVEf9W5l0YQ"
  100. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/rpc/user/log/max_age -d value="yx5Jm4ydWQRavrGpY46XFw"
  101. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/cgi/user/log/disable_stacktrace -d value="CuLQ7rVEtu6DH8xIoP-7JQ"
  102. # elasticsearch配置
  103. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/elastic/addr -d value="" # ip:port
  104. curl -XPUT http://127.0.0.1:2379/v2/keys/dev/config/elastic/sniff -d value="" #false