# db
**Repository Path**: nonosense/db
## Basic Information
- **Project Name**: db
- **Description**: awesome deepblue project
- **Primary Language**: Java
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2017-06-12
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Deepblue
## [git operation]
1. git clone git@192.168.16.108:java/deepblue.git
2. cd deepblue
3. checkout dev
4. .... modify/delete/add ....
5. git add . or git add --all
6. git commit -m "xxxxxx"
7. git push origin dev
## [192.168.16.37 -- development env]
1. 192.168.16.37:10012 -- warehouse
2. 192.168.16.37:10011 -- order
3. 192.168.16.37:10005/smart-sso-server -- sso
4. 192.168.16.37:10014/manage -- manage web
## 安装jar到公司mavens 私服
1. 修改工程里pom.xml 添加下面内容
```xml
nexus
Nexus Repository
http://192.168.16.37:8082/repository/maven-public/
true
true
nexus
Nexus Plugin Repository
http://192.168.16.37:8082/repository/maven-public/
true
true
```
2. 修改自己的maven 工具里settings.xml
添加下面内容
```xml
nexus-releases
admin
admin123
nexus-snapshots
admin
admin123
```
3. 将需要安装的jar 用下面命令install到maven私服
```sh
mvn deploy:deploy-file -Dfile=d:\download\smart-sso-client-1.0.0.jar -DgroupId=com.smart -DartifactId=smart-sso-client -Dversion=1.0.0 -Dpackaging=jar -Durl=http://192.168.16.37:8082/repository/maven-releases/ -DrepositoryId=nexus-releases
```
## 七牛云上服务器
`1. 掌脉
http://115.159.48.14:8080/apidemo/info-get_person_list.html
## 内部开发服务器
`1. 开发环境
应用服务器 192.168.16.37
端口 10005 smart-sso-server
端口 10008 smart-sso-demo
端口 10011 order
端口 10012 warehouse
掌脉服务器 192.168.16.126
端口 8080
redis 服务器 192.168.16.70 6379
rabbitmq 服务器 192.168.16.72 5672
vhost rabbit
user admin/admin123
# 生产环境 七牛云
## [123.206.225.65 192.168.0.6]
### tomcat folder for smart-sso-server and dbmanage /home/jenkins/apps/smart_sso/apache-tomcat-9.0.0.M19/webapps
operations: 1. remove smart-sso-server.war , manage.war in webapps
2. if necessary , restart tomcat
3. copy /home/jenkins/smart-sso-server.war to webapps
4. copy /home/jenkins/manage.war to webapps
### tomcat folder for smart-static /home/jenkins/apps/smart_sso/apache-tomcat-9.0.0.M19/webapps
operations: 1. remove smart-static.war in webapps
2. if necessary , restart tomcat
3. copy /home/jenkins/smart-static.war to webapps
### db_warehouse:
operations: copy /home/jenkins/warehouse-0.0.1.war /home/jenkins/apps/db_wh
nohup java -jar -Dspring.profiles.active=pro warehouse-0.0.1.war 2>&1 &
### mysql:
1. smart-sso
2. db_wh
#### 日志检查账户: developer/developer
## [118.89.139.104(7.2) 192.168.0.10]
operations: copy /home/jenkins/dborder.war /home/jenkins/apps/db_order
nohup java -jar -Dspring.profiles.active=pro dborder.war 2>&1 &
### mysql:
1. db_order
#### 日志检查账户: developer/developer
## [123.206.112.86 192.168.0.7]
1. nginx server
2. zookeeper server
3. and intend to be palm server
4. rabbitmq server port 5672: vhost rabbitmq; user: admin/admin123
5. reddis server port 6379
# 生产环境 澳洲亚马逊
## [52.65.224.222 172.31.9.234]
### tomcat folder for smart-sso-server and dbmanage /home/jenkins/apps/smart_sso/apache-tomcat-9.0.0.M19/webapps
operations: 1. remove smart-sso-server.war , manage.war in webapps
2. if necessary , restart tomcat
3. copy /home/jenkins/smart-sso-server.war to webapps
4. copy /home/jenkins/manage.war to webapps
### tomcat folder for smart-static /home/jenkins/apps/smart_sso/apache-tomcat-9.0.0.M19/webapps
operations: 1. remove smart-static.war in webapps
2. if necessary , restart tomcat
3. copy /home/jenkins/smart-static.war to webapps
### db_warehouse:
operations: copy /home/jenkins/warehouse-0.0.1.war /home/jenkins/apps/db_wh
nohup java -jar -Dspring.profiles.active=pro warehouse-0.0.1.war 2>&1 &
### mysql:
1. smart-sso
2. db_wh
## [118.89.139.104(7.2) 192.168.0.10]
operations: copy /home/jenkins/dborder.war /home/jenkins/apps/db_order
nohup java -jar -Dspring.profiles.active=pro dborder.war 2>&1 &
### mysql:
1. db_order
## [123.206.112.86 192.168.0.7]
1. nginx server
2. zookeeper server
3. and intend to be palm server