-
Notifications
You must be signed in to change notification settings - Fork 0
/
java部署命令.txt
30 lines (19 loc) · 946 Bytes
/
java部署命令.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
查看进程: ps -ef|grep java
停止进程:kill -9 xxxx
启动 :java -jar /usr/local/bethlabs/service/parkingchuck-server-1.0.0-SNAPSHOT.jar
指定环境:java -jar /usr/local/bethlabs/service/parkingchuck-server-1.0.0-SNAPSHOT.jar --spring.profiles.active=pro
指定配置文件:java -jar /usr/local/bethlabs/service/parkingchuck-server-1.0.0-SNAPSHOT.jar --spring.config.location=file:///usr/local/bethlabs/service/application.yml
mysql: mysql -u root -p 密码bethlabs
执行。sql文件 :使用库,source /icapWeb/BBoxInstall/createdb/chuckweb.sql
修改linux中sql密码,远程连接才可连接
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'IDENTIFIED BY '1234' WITH GRANT OPTION;
FLUSH PRIVILEGES;
#LINUX卸载软件
rpm -qa | grep IcapServer
rpm -e IcapServer-2.3-2.x86_64
#查看端口
lsof -i:8086
#win下编辑的.sh需要执行此方法 win下是/r和/n linux没有/r
sed -i 's/\r$//' config.sh
#解压 拷贝 移动 tar
tar -mxvf gitparkinglot.github.io.tar -C /usr/local/bethlabs/html/