当前位置:网站首页>Lighthouse open source application practice: snipe it

Lighthouse open source application practice: snipe it

2022-06-23 21:37:00 m0re

Snipe-IT Is an open source asset management system , Can better help you manage IT equipment

Official website :https://snipeitapp.com

Official documents :Introduction (readme.io)

Code warehouse :https://github.com/snipe/snipe-it

Tencent cloud open source application center :Snipe-IT Tencent cloud open source application center (tencent.com)

As an open source asset management system , Compared with other similar products Snipe-IT Like open source 、 Support cloud hosting 、 Constantly updated 、 Professional support 、 Support secondary development and other advantages .

Tencent cloud is selected for this installation experience Lighthouse Cloud server , Use Docker install , in consideration of Snipe-IT Used some php Danger function , Considering the overall stability of ECS , We suggest you use Docker Install and use

Install and use :

1. Install the system :

Default selection CentOS System

2. Set the official source
sudo tee /etc/yum.repos.d/docker.repo <<-'EOF'
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
EOF
3. Install the latest Docker
yum install docker-engine -y
4. Set up a corresponding directory :
sudo mkdir /media/snipe-mysql
sudo mkdir /media/snipe-conf
5. Build a database container ( Pay attention to changing the password of the database )
docker run \
--name snipe-mysql \
-d \
-e MYSQL_ROOT_PASSWORD="snipe" \
-e MYSQL_DATABASE=snipe \
-e MYSQL_USER=snipe \
-e MYSQL_PASSWORD="snipe" \
-e TZ=America/Chicago \
-p 127.0.0.1:3306:3306 \
-v /media/snipe-mysql:/var/lib/mysql \
mysql:5.6 --sql-mode=""
6. establish Snipe-IT Containers
docker create \
  --name=snipe-it \
  --link snipe-mysql:db \
  -e PUID=1000 \
  -e PGID=1000 \
  -e DB_CONNECTION=mysql \
  -e DB_HOST=snipe-mysql \
  -e DB_DATABASE=snipe \
  -e DB_USERNAME=snipe \
  -e DB_PASSWORD="snipe" \
  -e APP_KEY=base64:5U/KPKw1GN/Rz0fWYO/4FsSOqjmjvDAQzMCqwcAqstc= \
  -p 8082:80 \
  -v /media/snipe-conf:/config \
  --restart unless-stopped \
  snipe/snipe-it
7. Run container
docker start mysql
docker start snipe-it
8. Open the port
firewall-cmd --zone=public --add-port=8082/tcp --permanent
firewall-cmd --reload
9. User configuration

visit http://ServerIP:8082( Remember to open it. lighthouse The firewall of )

Check the basic environment ,Docker The built-in environment is relatively complete, and there is basically no problem

Create user name ( The part with yellow prompt bar on the side needs to be input )

Installation successful , Start using .

原网站

版权声明
本文为[m0re]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/12/202112221352507188.html