# webpam **Repository Path**: lerx/webpam ## Basic Information - **Project Name**: webpam - **Description**: Pam Users Manage Project for Spring Boot - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: http://www.lerx.com - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-10 - **Last Updated**: 2022-03-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # webpam #### 介绍 Pam Users Manage Project for Spring Boot 本系统是一个对基于Pam MySQL项目的用户管理WEB程序 #### 软件架构 采用Spring Boot开发。前端采用了Layui框架。 #### 安装教程 1. Docker 请参见以下页面 https://hub.docker.com/repository/docker/lerx/webpam 2. Java直接运行 java -Dlogging.file=webpam.log -jar webpam-1.0.jar > run.out 2>&1 & 3. Linux系统服务 a.编写启动和停止文件 startup.sh ``` #!/bin/sh cd ~ nohup /usr/java/jre1.8.0_271/bin/java -Dlogging.file=/home/webpam/logs/webpam.log -jar /home/webpam/webpam-1.0.jar > /home/webpam/logs/run.out 2>&1 & echo $! > /usr/java/webpam/pid/runing.pid ``` shutdown.sh ``` #!/bin/sh PID=$(cat /usr/java/webpam/pid/runing.pid) kill -9 $PID find /usr/java/webpam/pid -name "*.pid" -exec rm -rf {} \; find /home/webpam/logs/ -name "*.out" -exec rm -rf {} \; ``` 您的目录应该是像这样的 ![输入图片说明](%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20211207091148.jpg) b.编写服务文件/usr/lib/systemd/system/webpam.service ``` [Unit] Description=sentinel After=network.target [Service] Type=forking User=webpam ExecStart=/usr/java/webpam/startup.sh ExecStop=/usr/java/webpam/shutdown.sh PrivateTmp=true [Install] WantedBy=multi-user.target ``` #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)