DebugClApplication.java 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. package nckd.cosmic.debug;
  2. /**
  3. * @Author:Zt
  4. * @Date:2025/11/24
  5. **/
  6. public class DebugClApplication {
  7. public static void main(String[] args) {
  8. Launcher cosmic = new Launcher();
  9. System.setProperty("diskcache.path","D:\\ByWork\\IdeaProject\\diskCache");
  10. System.setProperty("tempfile.cachetype","disk");
  11. System.setProperty("login.session.terminalLimit", "true");
  12. System.setProperty("redismodelcache.enablelua","false");
  13. cosmic.setClusterNumber("cl-sit");
  14. cosmic.setTenantNumber("cl-sit");
  15. cosmic.setServerIp("10.0.55.10");
  16. cosmic.setAppName("cosmic_cl");
  17. cosmic.setWebResPath("C:/Users/any50/cosmic/home/static-file-service");//需要修改
  18. cosmic.setConfigUrl("10.0.55.10:2181","zookeeper","XTyk%%jd141");//需要修改
  19. cosmic.setStartWithQing(false);
  20. //cosmic.set("lightweightdeploy", "true"); //标注环境为轻量级
  21. cosmic.set("redismodelcache.enablelua", "false"); //轻量级不能用lua,设为false
  22. cosmic.set("mq.debug.queue.tag", "zzzzztttt_cosmic");
  23. cosmic.set("lightweightdeploy.services" , ""); //设置服务为空。服务由MC启动,这里就不用启动了。
  24. cosmic.start();
  25. }
  26. }