HC小区系统论坛
一个开源免费商用的小区物业管理系统

News

商城演示数据清理

truncate table product;

truncate table product_attr;

truncate table product_category ;

truncate table product_detail;

truncate table product_serv_keyword;

truncate table product_spec;

truncate table product_spec_detail;

truncate table product_spec_value;

truncate table product_stock;

truncate table s_shop;

truncate table s_shop_appraise;

truncate table s_shop_community;

truncate table s_shop_goods;

truncate table s_shop_range;

truncate table s_shop_range_rel;

truncate table s_shop_return_address;

truncate table s_shop_vip_level;

truncate table s_shop_vip_user;

truncate table s_shop_visit;

truncate table housekeeping_fee_config;

truncate table housekeeping_fee_type;

truncate table housekeeping_resource ;

truncate table housekeeping_resource_fee;

truncate table housekeeping_serv;

truncate table housekeeping_serv_fee;

truncate table housekeeping_serv_pool;

truncate table housekeeping_serv_pool_user;

truncate table housekeeping_serv_user;

truncate table housekeeping_type;

truncate table store_order;

truncate table store_order_address;

truncate table store_order_cart;

truncate table store_order_cart_event;

truncate table store_order_cart_fee;

truncate table store_order_cart_return;

truncate table store_order_cart_return_event ;

truncate table store_order_cart_up;

truncate table store_order_discount;

truncate table store_order_up;



公众号布置后提醒 “未获取到微信信息,请从微信中重新打开”

公众号布置后提醒 “未获取到微信信息,请从微信中重新打开”



前端部署使用npm start后,Linux系统时间久了,该进程会自动中断?

所以商用部署保持后台运行一般使用什么办法?nohup吗?



主键生成策略修改 切换为 ZOOKEEPER模式

1、安装zookeeper

docker pull daocloud.io/daocloud/zookeeper:latest

2、启动zookeeper

docker run --privileged=true -d --name zookeeper --publish 2181:2181 -d daocloud.io/daocloud/zookeeper

3、登录开发者账户 在编码映射中将键为 NEED_INVOKE_SERVICE_GENERATE_ID 值修改为ON

4、刷新缓存



LINUX宝塔环境下快速部署,免编译,会用宝塔就会用HC

https://www.yuque.com/docs/share/e5863485-f2f9-4d08-8373-efde334d3fc4?# 《LINUX宝塔环境下快速部署,免编译环节。》
上个含编译的宝塔部署教程,不少用户反映编译环节还是太麻烦,特推出免编译直接下载安装的教程。感谢开发者提供jar包存储,后期有更新时,我会在这里提示大家,大家只需要下载新jar包覆盖旧版本后重启服务即可。
有问题可以留言,也可咨询文哥或者加我QQ547974317.
后期我会抽时间给大家录制宝塔部署视频。

已更新物联网安装教程。6月21日

已更新商城安装。6月23日

宝塔安装视频:https://www.aliyundrive.com/s/YXwJgCerkiF
依赖:https://www.aliyundrive.com/s/MXuFQZnZBSz



Linux后端部署,docker-compose.yml文件需要在哪里修改?

1.安装视频中(HC小区linux环境部署建议:https://www.bilibili.com/video/BV1h7411g7mu),hcConf文件是旧版本中的的配置文件夹吗?
2.后端部署可不可以,本地打成10多个jar包放到服务器上?



HC小区管理系统0.8版sql 下载


一键部署的数据库密码在哪里看

more /tmp/hc_pwd



公众号nginx配置

server {
listen 80;
server_name m.hrttechnology.cn;
location / {
root /home/hc/owner;
}
location /callComponent
{
add_header 'Access-Control-Allow-Origin' '*';
proxy_pass http://10.206.0.14:8012;
}
location /app
{

      add_header 'Access-Control-Allow-Origin' '*';
      proxy_pass    http://10.206.0.14:8012;
    }

}



4核8G服务器限制内存脚本

!/bin/bash

cd ../MicroCommunity/

cd ../

if [ -d "app" ];then
echo "app 存在";
docker-compose -f app/service-api/docker/docker-compose.yml stop;
docker-compose -f app/service-api/docker/docker-compose.yml rm -f;
docker-compose -f app/service-order/docker/docker-compose.yml stop;
docker-compose -f app/service-order/docker/docker-compose.yml rm -f;
docker-compose -f app/service-community/docker/docker-compose.yml stop;
docker-compose -f app/service-community/docker/docker-compose.yml rm -f;
docker-compose -f app/service-store/docker/docker-compose.yml stop;
docker-compose -f app/service-store/docker/docker-compose.yml rm -f;
docker-compose -f app/service-user/docker/docker-compose.yml stop;
docker-compose -f app/service-user/docker/docker-compose.yml rm -f;
docker-compose -f app/service-front/docker/docker-compose.yml stop;
docker-compose -f app/service-front/docker/docker-compose.yml rm -f;
docker-compose -f app/service-common/docker/docker-compose.yml stop;
docker-compose -f app/service-common/docker/docker-compose.yml rm -f;
docker-compose -f app/service-fee/docker/docker-compose.yml stop;
docker-compose -f app/service-fee/docker/docker-compose.yml rm -f;
docker-compose -f app/service-job/docker/docker-compose.yml stop;
docker-compose -f app/service-job/docker/docker-compose.yml rm -f;
docker-compose -f app/service-report/docker/docker-compose.yml stop;
docker-compose -f app/service-report/docker/docker-compose.yml rm -f;
rm -rf app;
fi

echo "拷贝hc_project 到 allProject";

cp -r MicroCommunity app

cd ./app

echo "模板处理 service-api 服务"

cp -r ../hcConf/service-api/docker service-api/

cp -r ../hcConf/service-api/resources/application.yml service-api/src/main/resources/
cp -r ../hcConf/service-api/resources/application-dev.yml service-api/src/main/resources/
cp -r ../hcConf/service-api/resources/application-prod.yml service-api/src/main/resources/
cp -r ../hcConf/service-api/resources/application-test.yml service-api/src/main/resources/

echo "模板处理 service-eureka 服务"

cp -r ../hcConf/service-eureka/docker service-eureka/

cp -r ../hcConf/service-eureka/resources/application.yml service-eureka/src/main/resources/
cp -r ../hcConf/service-eureka/resources/application-ha.yml service-eureka/src/main/resources/

echo "模板处理 service-order 服务"

cp -r ../hcConf/service-order/docker service-order/

cp -r ../hcConf/service-order/resources/application.yml service-order/src/main/resources/
cp -r ../hcConf/service-order/resources/application-dev.yml service-order/src/main/resources/
cp -r ../hcConf/service-order/resources/application-prod.yml service-order/src/main/resources/
cp -r ../hcConf/service-order/resources/application-test.yml service-order/src/main/resources/
cp -r ../hcConf/service-order/resources/dataSource.yml service-order/src/main/resources/

echo "模板处理 service-community 服务"

cp -r ../hcConf/service-community/docker service-community/

cp -r ../hcConf/service-community/resources/application.yml service-community/src/main/resources/
cp -r ../hcConf/service-community/resources/application-dev.yml service-community/src/main/resources/
cp -r ../hcConf/service-community/resources/application-prod.yml service-community/src/main/resources/
cp -r ../hcConf/service-community/resources/application-test.yml service-community/src/main/resources/
cp -r ../hcConf/service-community/resources/dataSource.yml service-community/src/main/resources/

echo "模板处理 service-store 服务"

cp -r ../hcConf/service-store/docker service-store/

cp -r ../hcConf/service-store/resources/application.yml service-store/src/main/resources/
cp -r ../hcConf/service-store/resources/application-dev.yml service-store/src/main/resources/
cp -r ../hcConf/service-store/resources/application-prod.yml service-store/src/main/resources/
cp -r ../hcConf/service-store/resources/application-test.yml service-store/src/main/resources/
cp -r ../hcConf/service-store/resources/dataSource.yml service-store/src/main/resources/

echo "模板处理 service-user 服务"

cp -r ../hcConf/service-user/docker service-user/

cp -r ../hcConf/service-user/resources/application.yml service-user/src/main/resources/
cp -r ../hcConf/service-user/resources/application-dev.yml service-user/src/main/resources/
cp -r ../hcConf/service-user/resources/application-prod.yml service-user/src/main/resources/
cp -r ../hcConf/service-user/resources/application-test.yml service-user/src/main/resources/
cp -r ../hcConf/service-user/resources/dataSource.yml service-user/src/main/resources/

echo "模板处理 service-common 服务"

cp -r ../hcConf/service-common/docker service-common/

cp -r ../hcConf/service-common/resources/application.yml service-common/src/main/resources/
cp -r ../hcConf/service-common/resources/application-dev.yml service-common/src/main/resources/
cp -r ../hcConf/service-common/resources/application-prod.yml service-common/src/main/resources/
cp -r ../hcConf/service-common/resources/application-test.yml service-common/src/main/resources/
cp -r ../hcConf/service-common/resources/dataSource.yml service-common/src/main/resources/
cp -r ../hcConf/service-common/resources/java110.properties service-common/src/main/resources/

echo "模板处理 service-fee 服务"
cp -r ../hcConf/service-fee/docker service-fee/

cp -r ../hcConf/service-fee/resources/application.yml service-fee/src/main/resources/
cp -r ../hcConf/service-fee/resources/application-dev.yml service-fee/src/main/resources/
cp -r ../hcConf/service-fee/resources/application-prod.yml service-fee/src/main/resources/
cp -r ../hcConf/service-fee/resources/application-test.yml service-fee/src/main/resources/
cp -r ../hcConf/service-fee/resources/dataSource.yml service-fee/src/main/resources/

echo "模板处理 service-front 服务"

cp -r ../hcConf/service-front/docker service-front/

cp -r ../hcConf/service-front/resources/application.yml service-front/src/main/resources/
cp -r ../hcConf/service-front/resources/application-dev.yml service-front/src/main/resources/
cp -r ../hcConf/service-front/resources/application-prod.yml service-front/src/main/resources/
cp -r ../hcConf/service-front/resources/application-test.yml service-front/src/main/resources/
cp -r ../hcConf/service-front/resources/dataSource.yml service-front/src/main/resources/
cp -r ../hcConf/service-front/resources/java110.properties service-front/src/main/resources/
cp -r ../hcConf/service-front/resources/wechatAuth.properties service-front/src/main/resources/

echo "模板处理 service-job 服务"

cp -r ../hcConf/service-job/docker service-job/

cp -r ../hcConf/service-job/resources/application.yml service-job/src/main/resources/
cp -r ../hcConf/service-job/resources/application-dev.yml service-job/src/main/resources/
cp -r ../hcConf/service-job/resources/application-prod.yml service-job/src/main/resources/
cp -r ../hcConf/service-job/resources/application-test.yml service-job/src/main/resources/
cp -r ../hcConf/service-job/resources/dataSource.yml service-job/src/main/resources/

cp -r ../hcConf/service-report/docker service-report/

cp -r ../hcConf/service-report/resources/application.yml service-report/src/main/resources/
cp -r ../hcConf/service-report/resources/application-dev.yml service-report/src/main/resources/
cp -r ../hcConf/service-report/resources/application-prod.yml service-report/src/main/resources/
cp -r ../hcConf/service-report/resources/application-test.yml service-report/src/main/resources/
cp -r ../hcConf/service-report/resources/dataSource.yml service-report/src/main/resources/

mvn clean install -Dmaven.test.skip=true
mvn package -Dmaven.test.skip=true

cd ../app/

nohup java -jar -Dspring.profiles.active=$1 -Dcache -Xms256m -Xmx256m service-eureka/target/service-eureka.jar > ../logs/eureka.log $2 2>&1 &
nohup java -jar -Dspring.profiles.active=$1 -Dcache -Xms256m -Xmx256m service-api/target/service-api.jar > ../logs/api.log $2 2>&1 &
nohup java -jar -Dspring.profiles.active=$1 -Dcache -Xms256m -Xmx256m service-front/target/service-front.jar > ../logs/front.log $2 2>&1 &
nohup java -jar -Dspring.profiles.active=$1 -Dcache -Xms256m -Xmx256m service-order/target/service-order.jar > ../logs/order.log $2 2>&1 &
nohup java -jar -Dspring.profiles.active=$1 -Dcache -Xms256m -Xmx256m service-user/target/service-user.jar > ../logs/user.log $2 2>&1 &
nohup java -jar -Dspring.profiles.active=$1 -Dcache -Xms256m -Xmx256m service-store/target/service-store.jar > ../logs/store.log $2 2>&1 &
nohup java -jar -Dspring.profiles.active=$1 -Dcache -Xms256m -Xmx256m service-community/target/service-community.jar > ../logs/community.log $2 2>&1 &
nohup java -jar -Dspring.profiles.active=$1 -Dcache -Xms256m -Xmx256m service-common/target/service-common.jar > ../logs/common.log $2 2>&1 &
nohup java -jar -Dspring.profiles.active=$1 -Dcache -Xms256m -Xmx256m service-job/target/service-job.jar > ../logs/hardware.log $2 2>&1 &
nohup java -jar -Dspring.profiles.active=$1 -Dcache -Xms256m -Xmx256m service-fee/target/service-fee.jar > ../logs/fee.log $2 2>&1 &
nohup java -jar -Dspring.profiles.active=$1 -Dcache -Xms256m -Xmx256m service-report/target/service-report.jar > ../logs/fee.log $2 2>&1 &