进销存系统 linux 部署

部署

上传项目包到 /opt 目录下

[root@localhost ~]# cd /opt

[root@localhost opt]# ls

jshERP2.0.zip

解压包

[root@localhost opt]# unzip jshERP2.0.zip

-bash: unzip: command not found

[root@localhost opt]# yum install -y unzip zip

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* base: mirrors.neusoft.edu.cn

* extras: mirrors.aliyun.com

* updates: mirrors.neusoft.edu.cn

Package zip-3.0-11.el7.x86_64 already installed and latest version

Resolving Dependencies

--> Running transaction check

---> Package unzip.x86_64 0:6.0-19.el7 will be installed

--> Finished Dependency Resolution

  

Dependencies Resolved

  


[root@localhost opt]# unzip jshERP2.0.zip -d ./erp

[root@localhost erp]# chmod +x start.sh

[root@localhost erp]# ls -l

total 12

drwxr-xr-x. 2 root root 29 Jan 14 18:20 conf

drwxr-xr-x. 7 root root 104 Jan 10 17:39 erp_web

-rw-r--r--. 1 root root 139 Jan 10 16:34 start.bat

-rwxr-xr-x. 1 root root 78 Jan 10 16:34 start.sh

drwxr-xr-x. 2 root root 4096 Jan 14 18:20 lib

运行

[root@localhost erp]# ./start.sh

查看是否运行成功

[root@pro5 jshERP]# jps
32224 Jps
23356 ErpApplication

查看日志

查看日志文件的存放位置

[root@pro5 conf]# pwd
/opt/jshERP/conf
[root@pro5 conf]# vim logback-spring.xml 

找到

<property name="log.path" value="../logs/jshERP" />

日志文件存放在项目部署包的上级目录 logs/jshERP 文件夹下

查看日志

[root@pro5 jshERP]# pwd
/opt/logs/jshERP
[root@pro5 jshERP]# ls
log_debug.log  log_error.log  log_info.log  log_warn.log
[root@pro5 jshERP]# tail -f -n 200 log_debug.log 
2019-04-28 17:11:41.717 [http-nio-9527-exec-4] DEBUG c.j.e.d.mappers.DepotItemMapperEx.findByAll - ==>
 Parameters: 0(Integer), 10(Integer)
2019-04-28 17:11:41.718 [http-nio-9527-exec-4] DEBUG c.j.e.d.mappers.DepotItemMapperEx.findByAll - <==      Total: 2
2019-04-28 17:11:41.719 [http-nio-9527-exec-4] DEBUG c.j.e.d.mappers.DepotItemMapperEx.findByAllCount - ==>
  Preparing: SELECT count(1) FROM (SELECT m.id FROM jsh_depotitem di INNER JOIN jsh_material m ON m.tenant_id 
= 68 AND di.MaterialId = m.id AND ifnull(m.delete_Flag, '0') != '1' WHERE di.tenant_id = 68 AND 1 = 1 AND di.HeaderId 
IN (1, 2, 3, 4, 5, 7, 8, 9, 10, 11) AND di.MaterialId IN (1, 2) AND ifnull(di.delete_Flag, '0') != '1' GROUP BY m.id) cc