本帖最后由 kcuye 于 2021-1-13 09:06 编辑
软件简介
Snipe-IT 是一个开源的资产管理系统。Snipe-IT 用于IT资产管理,IT部门通过它能够跟踪谁拥有哪台笔记本电脑、何时购买、包含哪些软件许可证和可用的附件等等。功能特性- 托管在云主机
- 强大的 REST API
- 快速更新
- 保证 App 和 Platform 的安全性
- 一键备份
- LDAP 登录/用户同步
运行截图
安装开始:一、环境准备
CentOS 7 + Apache + PHP +Mariadb
CentOS 7 (阿里云):http://mirrors.aliyun.com/centos/7.7.1908/isos/x86_64/CentOS-7-x86_64-DVD-1908.iso 这个自行选择吧,我提供下版本,链接不一定有效.....[Asm] 纯文本查看 复制代码 [root@snipeit ~]##开始系统更新
[root@snipeit ~]# yum -y install epel-release
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.ustc.edu.cn
* extras: mirrors.163.com
* updates: mirrors.aliyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 epel-release.noarch.0.7-11 将被 安装
--> 解决依赖关系完成
依赖关系解决
========================================================================================================================================
Package 架构 版本 源 大小
========================================================================================================================================
正在安装:
epel-release noarch 7-11 extras 15 k
事务概要
========================================================================================================================================
安装 1 软件包
总下载量:15 k
安装大小:24 k
Downloading packages:
警告:/var/cache/yum/x86_64/7/extras/packages/epel-release-7-11.noarch.rpm: 头V3 RSA/SHA256 Signature, 密钥 ID f4a80eb5: NOKEY
epel-release-7-11.noarch.rpm 的公钥尚未安装
epel-release-7-11.noarch.rpm | 15 kB 00:00:00
从 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 检索密钥
导入 GPG key 0xF4A80EB5:
用户ID : "CentOS-7 Key (CentOS 7 Official Signing Key) <[url=mailto:security@centos.org]security@centos.org[/url]>"
指纹 : 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
软件包 : centos-release-7-7.1908.0.el7.centos.x86_64 (@anaconda)
来自 : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : epel-release-7-11.noarch 1/1
验证中 : epel-release-7-11.noarch 1/1
已安装:
epel-release.noarch 0:7-11
完毕!
[root@snipeit ~]# yum update –y
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 6.3 kB 00:00:00
* base: mirrors.ustc.edu.cn
* epel: mirrors.aliyun.com
* extras: mirrors.163.com
* updates: mirrors.aliyun.com
epel | 5.3 kB 00:00:00
(1/3): epel/x86_64/group_gz | 90 kB 00:00:00
(2/3): epel/x86_64/updateinfo | 1.0 MB 00:00:00
(3/3): epel/x86_64/primary_db | 6.7 MB 00:00:00
参数 –y 没有匹配
No packages marked for update
[root@snipeit ~]# #使用yum安装Apache
[root@snipeit ~]# yum install -y httpd httpd-devel
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.ustc.edu.cn
* epel: mirrors.aliyun.com
* extras: mirrors.163.com
* updates: mirrors.aliyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 httpd.x86_64.0.2.4.6-90.el7.centos 将被 安装
--> 正在处理依赖关系 httpd-tools = 2.4.6-90.el7.centos,它被软件包 httpd-2.4.6-90.el7.centos.x86_64 需要
--> 正在处理依赖关系 /etc/mime.types,它被软件包 httpd-2.4.6-90.el7.centos.x86_64 需要
---> 软件包 httpd-devel.x86_64.0.2.4.6-90.el7.centos 将被 安装
--> 正在处理依赖关系 apr-util-devel,它被软件包 httpd-devel-2.4.6-90.el7.centos.x86_64 需要
--> 正在处理依赖关系 apr-devel,它被软件包 httpd-devel-2.4.6-90.el7.centos.x86_64 需要
--> 正在检查事务
---> 软件包 apr-devel.x86_64.0.1.4.8-5.el7 将被 安装
---> 软件包 apr-util-devel.x86_64.0.1.5.2-6.el7 将被 安装
--> 正在处理依赖关系 openldap-devel(x86-64),它被软件包 apr-util-devel-1.5.2-6.el7.x86_64 需要
--> 正在处理依赖关系 libdb-devel(x86-64),它被软件包 apr-util-devel-1.5.2-6.el7.x86_64 需要
--> 正在处理依赖关系 expat-devel(x86-64),它被软件包 apr-util-devel-1.5.2-6.el7.x86_64 需要
---> 软件包 httpd-tools.x86_64.0.2.4.6-90.el7.centos 将被 安装
---> 软件包 mailcap.noarch.0.2.1.41-2.el7 将被 安装
--> 正在检查事务
---> 软件包 expat-devel.x86_64.0.2.1.0-10.el7_3 将被 安装
---> 软件包 libdb-devel.x86_64.0.5.3.21-25.el7 将被 安装
---> 软件包 openldap-devel.x86_64.0.2.4.44-21.el7_6 将被 安装
--> 正在处理依赖关系 cyrus-sasl-devel(x86-64),它被软件包 openldap-devel-2.4.44-21.el7_6.x86_64 需要
--> 正在检查事务
---> 软件包 cyrus-sasl-devel.x86_64.0.2.1.26-23.el7 将被 安装
--> 解决依赖关系完成
依赖关系解决
========================================================================================================================================
Package 架构 版本 源 大小
========================================================================================================================================
正在安装:
httpd x86_64 2.4.6-90.el7.centos base 2.7 M
httpd-devel x86_64 2.4.6-90.el7.centos base 197 k
为依赖而安装:
apr-devel x86_64 1.4.8-5.el7 base 188 k
apr-util-devel x86_64 1.5.2-6.el7 base 76 k
cyrus-sasl-devel x86_64 2.1.26-23.el7 base 310 k
expat-devel x86_64 2.1.0-10.el7_3 base 57 k
httpd-tools x86_64 2.4.6-90.el7.centos base 91 k
libdb-devel x86_64 5.3.21-25.el7 base 39 k
mailcap noarch 2.1.41-2.el7 base 31 k
openldap-devel x86_64 2.4.44-21.el7_6 base 804 k
事务概要
========================================================================================================================================
安装 2 软件包 (+8 依赖软件包)
总下载量:4.5 M
安装大小:16 M
Downloading packages:
(1/10): apr-devel-1.4.8-5.el7.x86_64.rpm | 188 kB 00:00:00
(2/10): apr-util-devel-1.5.2-6.el7.x86_64.rpm | 76 kB 00:00:00
(3/10): cyrus-sasl-devel-2.1.26-23.el7.x86_64.rpm | 310 kB 00:00:00
(4/10): expat-devel-2.1.0-10.el7_3.x86_64.rpm | 57 kB 00:00:00
(5/10): httpd-tools-2.4.6-90.el7.centos.x86_64.rpm | 91 kB 00:00:00
(6/10): httpd-2.4.6-90.el7.centos.x86_64.rpm | 2.7 MB 00:00:01
(7/10): libdb-devel-5.3.21-25.el7.x86_64.rpm | 39 kB 00:00:00
(8/10): mailcap-2.1.41-2.el7.noarch.rpm | 31 kB 00:00:00
(9/10): openldap-devel-2.4.44-21.el7_6.x86_64.rpm | 804 kB 00:00:00
(10/10): httpd-devel-2.4.6-90.el7.centos.x86_64.rpm | 197 kB 00:00:01
----------------------------------------------------------------------------------------------------------------------------------------
总计 1.6 MB/s | 4.5 MB 00:00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : apr-devel-1.4.8-5.el7.x86_64 1/10
正在安装 : cyrus-sasl-devel-2.1.26-23.el7.x86_64 2/10
正在安装 : openldap-devel-2.4.44-21.el7_6.x86_64 3/10
正在安装 : expat-devel-2.1.0-10.el7_3.x86_64 4/10
正在安装 : libdb-devel-5.3.21-25.el7.x86_64 5/10
正在安装 : apr-util-devel-1.5.2-6.el7.x86_64 6/10
正在安装 : httpd-tools-2.4.6-90.el7.centos.x86_64 7/10
正在安装 : mailcap-2.1.41-2.el7.noarch 8/10
正在安装 : httpd-2.4.6-90.el7.centos.x86_64 9/10
正在安装 : httpd-devel-2.4.6-90.el7.centos.x86_64 10/10
验证中 : httpd-devel-2.4.6-90.el7.centos.x86_64 1/10
验证中 : mailcap-2.1.41-2.el7.noarch 2/10
验证中 : httpd-tools-2.4.6-90.el7.centos.x86_64 3/10
验证中 : libdb-devel-5.3.21-25.el7.x86_64 4/10
验证中 : httpd-2.4.6-90.el7.centos.x86_64 5/10
验证中 : openldap-devel-2.4.44-21.el7_6.x86_64 6/10
验证中 : apr-devel-1.4.8-5.el7.x86_64 7/10
验证中 : apr-util-devel-1.5.2-6.el7.x86_64 8/10
验证中 : expat-devel-2.1.0-10.el7_3.x86_64 9/10
验证中 : cyrus-sasl-devel-2.1.26-23.el7.x86_64 10/10
已安装:
httpd.x86_64 0:2.4.6-90.el7.centos httpd-devel.x86_64 0:2.4.6-90.el7.centos
作为依赖被安装:
apr-devel.x86_64 0:1.4.8-5.el7 apr-util-devel.x86_64 0:1.5.2-6.el7 cyrus-sasl-devel.x86_64 0:2.1.26-23.el7
expat-devel.x86_64 0:2.1.0-10.el7_3 httpd-tools.x86_64 0:2.4.6-90.el7.centos libdb-devel.x86_64 0:5.3.21-25.el7
mailcap.noarch 0:2.1.41-2.el7 openldap-devel.x86_64 0:2.4.44-21.el7_6
完毕!
[root@snipeit ~]##使用yum安装Mariadb
[root@snipeit ~]# yum install -y mariadb mariadb-server
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.ustc.edu.cn
* epel: mirrors.aliyun.com
* extras: mirrors.163.com
* updates: mirrors.aliyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 mariadb.x86_64.1.5.5.64-1.el7 将被 安装
---> 软件包 mariadb-server.x86_64.1.5.5.64-1.el7 将被 安装
--> 正在处理依赖关系 perl-DBI,它被软件包 1:mariadb-server-5.5.64-1.el7.x86_64 需要
--> 正在处理依赖关系 perl-DBD-MySQL,它被软件包 1:mariadb-server-5.5.64-1.el7.x86_64 需要
--> 正在处理依赖关系 perl(DBI),它被软件包 1:mariadb-server-5.5.64-1.el7.x86_64 需要
--> 正在检查事务
---> 软件包 perl-DBD-MySQL.x86_64.0.4.023-6.el7 将被 安装
---> 软件包 perl-DBI.x86_64.0.1.627-4.el7 将被 安装
--> 正在处理依赖关系 perl(RPC::PlServer) >= 0.2001,它被软件包 perl-DBI-1.627-4.el7.x86_64 需要
--> 正在处理依赖关系 perl(RPC::PlClient) >= 0.2000,它被软件包 perl-DBI-1.627-4.el7.x86_64 需要
--> 正在检查事务
---> 软件包 perl-PlRPC.noarch.0.0.2020-14.el7 将被 安装
--> 正在处理依赖关系 perl(Net::Daemon) >= 0.13,它被软件包 perl-PlRPC-0.2020-14.el7.noarch 需要
--> 正在处理依赖关系 perl(Net::Daemon::Test),它被软件包 perl-PlRPC-0.2020-14.el7.noarch 需要
--> 正在处理依赖关系 perl(Net::Daemon::Log),它被软件包 perl-PlRPC-0.2020-14.el7.noarch 需要
--> 正在处理依赖关系 perl(Compress::Zlib),它被软件包 perl-PlRPC-0.2020-14.el7.noarch 需要
--> 正在检查事务
---> 软件包 perl-IO-Compress.noarch.0.2.061-2.el7 将被 安装
--> 正在处理依赖关系 perl(Compress::Raw::Zlib) >= 2.061,它被软件包 perl-IO-Compress-2.061-2.el7.noarch 需要
--> 正在处理依赖关系 perl(Compress::Raw::Bzip2) >= 2.061,它被软件包 perl-IO-Compress-2.061-2.el7.noarch 需要
---> 软件包 perl-Net-Daemon.noarch.0.0.48-5.el7 将被 安装
--> 正在检查事务
---> 软件包 perl-Compress-Raw-Bzip2.x86_64.0.2.061-3.el7 将被 安装
---> 软件包 perl-Compress-Raw-Zlib.x86_64.1.2.061-4.el7 将被 安装
--> 解决依赖关系完成
依赖关系解决
========================================================================================================================================
Package 架构 版本 源 大小
========================================================================================================================================
正在安装:
mariadb x86_64 1:5.5.64-1.el7 base 8.7 M
mariadb-server x86_64 1:5.5.64-1.el7 base 11 M
为依赖而安装:
perl-Compress-Raw-Bzip2 x86_64 2.061-3.el7 base 32 k
perl-Compress-Raw-Zlib x86_64 1:2.061-4.el7 base 57 k
perl-DBD-MySQL x86_64 4.023-6.el7 base 140 k
perl-DBI x86_64 1.627-4.el7 base 802 k
perl-IO-Compress noarch 2.061-2.el7 base 260 k
perl-Net-Daemon noarch 0.48-5.el7 base 51 k
perl-PlRPC noarch 0.2020-14.el7 base 36 k
事务概要
========================================================================================================================================
安装 2 软件包 (+7 依赖软件包)
总下载量:21 M
安装大小:110 M
Downloading packages:
(1/9): mariadb-server-5.5.64-1.el7.x86_64.rpm | 11 MB 00:00:01
(2/9): perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64.rpm | 32 kB 00:00:00
(3/9): perl-Compress-Raw-Zlib-2.061-4.el7.x86_64.rpm | 57 kB 00:00:00
(4/9): perl-DBD-MySQL-4.023-6.el7.x86_64.rpm | 140 kB 00:00:00
(5/9): perl-DBI-1.627-4.el7.x86_64.rpm | 802 kB 00:00:00
(6/9): perl-IO-Compress-2.061-2.el7.noarch.rpm | 260 kB 00:00:00
(7/9): perl-Net-Daemon-0.48-5.el7.noarch.rpm | 51 kB 00:00:00
(8/9): perl-PlRPC-0.2020-14.el7.noarch.rpm | 36 kB 00:00:00
(9/9): mariadb-5.5.64-1.el7.x86_64.rpm | 8.7 MB 00:00:02
----------------------------------------------------------------------------------------------------------------------------------------
总计 8.5 MB/s | 21 MB 00:00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64 1/9
正在安装 : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64 2/9
正在安装 : perl-IO-Compress-2.061-2.el7.noarch 3/9
正在安装 : 1:mariadb-5.5.64-1.el7.x86_64 4/9
正在安装 : perl-Net-Daemon-0.48-5.el7.noarch 5/9
正在安装 : perl-PlRPC-0.2020-14.el7.noarch 6/9
正在安装 : perl-DBI-1.627-4.el7.x86_64 7/9
正在安装 : perl-DBD-MySQL-4.023-6.el7.x86_64 8/9
正在安装 : 1:mariadb-server-5.5.64-1.el7.x86_64 9/9
验证中 : perl-Net-Daemon-0.48-5.el7.noarch 1/9
验证中 : 1:mariadb-5.5.64-1.el7.x86_64 2/9
验证中 : perl-DBD-MySQL-4.023-6.el7.x86_64 3/9
验证中 : perl-IO-Compress-2.061-2.el7.noarch 4/9
验证中 : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64 5/9
验证中 : 1:mariadb-server-5.5.64-1.el7.x86_64 6/9
验证中 : perl-DBI-1.627-4.el7.x86_64 7/9
验证中 : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64 8/9
验证中 : perl-PlRPC-0.2020-14.el7.noarch 9/9
已安装:
mariadb.x86_64 1:5.5.64-1.el7 mariadb-server.x86_64 1:5.5.64-1.el7
作为依赖被安装:
perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 perl-DBD-MySQL.x86_64 0:4.023-6.el7
perl-DBI.x86_64 0:1.627-4.el7 perl-IO-Compress.noarch 0:2.061-2.el7 perl-Net-Daemon.noarch 0:0.48-5.el7
perl-PlRPC.noarch 0:0.2020-14.el7
完毕!
[root@snipeit ~]##为了防止CentOS上面发生php冲突,所以,这个命令还是先执行一下更好些
[root@snipeit ~]# yum -y remove php*
已加载插件:fastestmirror, langpacks
参数 php* 没有匹配
不删除任何软件包
[root@snipeit ~]# #安装PHP依赖环境
[root@snipeit ~]# yum install -y make gcc wget openssl readline-devel openssl-devel libxslt-devel gmp-devel bzip2-devel freetype-devel libjpeg-devel php-mcrypt libmcrypt libmcrypt-devel autoconf freetype gd jpegsrc libmcrypt libpng libpng-devel libjpeg libxml2 libxml2-devel zlib curl curl-devel
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.ustc.edu.cn
* epel: mirrors.aliyun.com
* extras: mirrors.163.com
* updates: mirrors.aliyun.com
软件包 1:make-3.82-24.el7.x86_64 已安装并且是最新版本
软件包 gcc-4.8.5-39.el7.x86_64 已安装并且是最新版本
软件包 wget-1.14-18.el7_6.1.x86_64 已安装并且是最新版本
软件包 1:openssl-1.0.2k-19.el7.x86_64 已安装并且是最新版本
软件包 autoconf-2.69-11.el7.noarch 已安装并且是最新版本
软件包 freetype-2.8-14.el7.x86_64 已安装并且是最新版本
软件包 gd-2.0.35-26.el7.x86_64 已安装并且是最新版本
没有可用软件包 jpegsrc。
软件包 2:libpng-1.5.13-7.el7_2.x86_64 已安装并且是最新版本
软件包 libjpeg-turbo-1.2.90-8.el7.x86_64 已安装并且是最新版本
软件包 libxml2-2.9.1-6.el7_2.3.x86_64 已安装并且是最新版本
软件包 zlib-1.2.7-18.el7.x86_64 已安装并且是最新版本
正在解决依赖关系
--> 正在检查事务
---> 软件包 bzip2-devel.x86_64.0.1.0.6-13.el7 将被 安装
---> 软件包 curl.x86_64.0.7.29.0-54.el7 将被 升级
---> 软件包 curl.x86_64.0.7.29.0-54.el7_7.2 将被 更新
--> 正在处理依赖关系 libcurl = 7.29.0-54.el7_7.2,它被软件包 curl-7.29.0-54.el7_7.2.x86_64 需要
---> 软件包 freetype-devel.x86_64.0.2.8-14.el7 将被 安装
--> 正在处理依赖关系 pkgconfig(zlib),它被软件包 freetype-devel-2.8-14.el7.x86_64 需要
---> 软件包 gmp-devel.x86_64.1.6.0.0-15.el7 将被 安装
---> 软件包 libcurl-devel.x86_64.0.7.29.0-54.el7_7.2 将被 安装
epel/x86_64/filelists_db | 11 MB 00:00:01
base/7/x86_64/filelists_db | 7.3 MB 00:00:00
updates/7/x86_64/filelists_db | 4.0 MB 00:00:00
---> 软件包 libjpeg-turbo-devel.x86_64.0.1.2.90-8.el7 将被 安装
---> 软件包 libmcrypt.x86_64.0.2.5.8-13.el7 将被 安装
---> 软件包 libmcrypt-devel.x86_64.0.2.5.8-13.el7 将被 安装
---> 软件包 libpng-devel.x86_64.2.1.5.13-7.el7_2 将被 安装
---> 软件包 libxml2-devel.x86_64.0.2.9.1-6.el7_2.3 将被 安装
--> 正在处理依赖关系 xz-devel,它被软件包 libxml2-devel-2.9.1-6.el7_2.3.x86_64 需要
---> 软件包 libxslt-devel.x86_64.0.1.1.28-5.el7 将被 安装
--> 正在处理依赖关系 libgcrypt-devel,它被软件包 libxslt-devel-1.1.28-5.el7.x86_64 需要
---> 软件包 openssl-devel.x86_64.1.1.0.2k-19.el7 将被 安装
--> 正在处理依赖关系 krb5-devel(x86-64),它被软件包 1:openssl-devel-1.0.2k-19.el7.x86_64 需要
---> 软件包 php-mcrypt.x86_64.0.5.4.16-9.el7 将被 安装
--> 正在处理依赖关系 php(zend-abi) = 20100525-64,它被软件包 php-mcrypt-5.4.16-9.el7.x86_64 需要
--> 正在处理依赖关系 php(api) = 20100412-64,它被软件包 php-mcrypt-5.4.16-9.el7.x86_64 需要
---> 软件包 readline-devel.x86_64.0.6.2-11.el7 将被 安装
--> 正在处理依赖关系 ncurses-devel,它被软件包 readline-devel-6.2-11.el7.x86_64 需要
--> 正在检查事务
---> 软件包 krb5-devel.x86_64.0.1.15.1-37.el7_7.2 将被 安装
--> 正在处理依赖关系 libkadm5(x86-64) = 1.15.1-37.el7_7.2,它被软件包 krb5-devel-1.15.1-37.el7_7.2.x86_64 需要
--> 正在处理依赖关系 krb5-libs(x86-64) = 1.15.1-37.el7_7.2,它被软件包 krb5-devel-1.15.1-37.el7_7.2.x86_64 需要
--> 正在处理依赖关系 libverto-devel,它被软件包 krb5-devel-1.15.1-37.el7_7.2.x86_64 需要
--> 正在处理依赖关系 libselinux-devel,它被软件包 krb5-devel-1.15.1-37.el7_7.2.x86_64 需要
--> 正在处理依赖关系 libcom_err-devel,它被软件包 krb5-devel-1.15.1-37.el7_7.2.x86_64 需要
--> 正在处理依赖关系 keyutils-libs-devel,它被软件包 krb5-devel-1.15.1-37.el7_7.2.x86_64 需要
---> 软件包 libcurl.x86_64.0.7.29.0-54.el7 将被 升级
---> 软件包 libcurl.x86_64.0.7.29.0-54.el7_7.2 将被 更新
---> 软件包 libgcrypt-devel.x86_64.0.1.5.3-14.el7 将被 安装
--> 正在处理依赖关系 libgpg-error-devel,它被软件包 libgcrypt-devel-1.5.3-14.el7.x86_64 需要
---> 软件包 ncurses-devel.x86_64.0.5.9-14.20130511.el7_4 将被 安装
---> 软件包 php-common.x86_64.0.5.4.16-46.1.el7_7 将被 安装
--> 正在处理依赖关系 libzip.so.2()(64bit),它被软件包 php-common-5.4.16-46.1.el7_7.x86_64 需要
---> 软件包 xz-devel.x86_64.0.5.2.2-1.el7 将被 安装
---> 软件包 zlib-devel.x86_64.0.1.2.7-18.el7 将被 安装
--> 正在检查事务
---> 软件包 keyutils-libs-devel.x86_64.0.1.5.8-3.el7 将被 安装
---> 软件包 krb5-libs.x86_64.0.1.15.1-37.el7_6 将被 升级
--> 正在处理依赖关系 krb5-libs(x86-64) = 1.15.1-37.el7_6,它被软件包 krb5-workstation-1.15.1-37.el7_6.x86_64 需要
---> 软件包 krb5-libs.x86_64.0.1.15.1-37.el7_7.2 将被 更新
---> 软件包 libcom_err-devel.x86_64.0.1.42.9-16.el7 将被 安装
---> 软件包 libgpg-error-devel.x86_64.0.1.12-3.el7 将被 安装
---> 软件包 libkadm5.x86_64.0.1.15.1-37.el7_6 将被 升级
---> 软件包 libkadm5.x86_64.0.1.15.1-37.el7_7.2 将被 更新
---> 软件包 libselinux-devel.x86_64.0.2.5-14.1.el7 将被 安装
--> 正在处理依赖关系 libsepol-devel(x86-64) >= 2.5-10,它被软件包 libselinux-devel-2.5-14.1.el7.x86_64 需要
--> 正在处理依赖关系 pkgconfig(libsepol),它被软件包 libselinux-devel-2.5-14.1.el7.x86_64 需要
--> 正在处理依赖关系 pkgconfig(libpcre),它被软件包 libselinux-devel-2.5-14.1.el7.x86_64 需要
---> 软件包 libverto-devel.x86_64.0.0.2.5-4.el7 将被 安装
---> 软件包 libzip.x86_64.0.0.10.1-8.el7 将被 安装
--> 正在检查事务
---> 软件包 krb5-workstation.x86_64.0.1.15.1-37.el7_6 将被 升级
---> 软件包 krb5-workstation.x86_64.0.1.15.1-37.el7_7.2 将被 更新
---> 软件包 libsepol-devel.x86_64.0.2.5-10.el7 将被 安装
---> 软件包 pcre-devel.x86_64.0.8.32-17.el7 将被 安装
--> 解决依赖关系完成
依赖关系解决
========================================================================================================================================
Package 架构 版本 源 大小
========================================================================================================================================
正在安装:
bzip2-devel x86_64 1.0.6-13.el7 base 218 k
freetype-devel x86_64 2.8-14.el7 base 447 k
gmp-devel x86_64 1:6.0.0-15.el7 base 181 k
libcurl-devel x86_64 7.29.0-54.el7_7.2 updates 303 k
libjpeg-turbo-devel x86_64 1.2.90-8.el7 base 99 k
libmcrypt x86_64 2.5.8-13.el7 epel 99 k
libmcrypt-devel x86_64 2.5.8-13.el7 epel 13 k
libpng-devel x86_64 2:1.5.13-7.el7_2 base 122 k
libxml2-devel x86_64 2.9.1-6.el7_2.3 base 1.0 M
libxslt-devel x86_64 1.1.28-5.el7 base 309 k
openssl-devel x86_64 1:1.0.2k-19.el7 base 1.5 M
php-mcrypt x86_64 5.4.16-9.el7 epel 20 k
readline-devel x86_64 6.2-11.el7 base 139 k
正在更新:
curl x86_64 7.29.0-54.el7_7.2 updates 270 k
为依赖而安装:
keyutils-libs-devel x86_64 1.5.8-3.el7 base 37 k
krb5-devel x86_64 1.15.1-37.el7_7.2 updates 272 k
libcom_err-devel x86_64 1.42.9-16.el7 base 32 k
libgcrypt-devel x86_64 1.5.3-14.el7 base 129 k
libgpg-error-devel x86_64 1.12-3.el7 base 16 k
libselinux-devel x86_64 2.5-14.1.el7 base 187 k
libsepol-devel x86_64 2.5-10.el7 base 77 k
libverto-devel x86_64 0.2.5-4.el7 base 12 k
libzip x86_64 0.10.1-8.el7 base 48 k
ncurses-devel x86_64 5.9-14.20130511.el7_4 base 712 k
pcre-devel x86_64 8.32-17.el7 base 480 k
php-common x86_64 5.4.16-46.1.el7_7 updates 565 k
xz-devel x86_64 5.2.2-1.el7 base 46 k
zlib-devel x86_64 1.2.7-18.el7 base 50 k
为依赖而更新:
krb5-libs x86_64 1.15.1-37.el7_7.2 updates 805 k
krb5-workstation x86_64 1.15.1-37.el7_7.2 updates 816 k
libcurl x86_64 7.29.0-54.el7_7.2 updates 223 k
libkadm5 x86_64 1.15.1-37.el7_7.2 updates 178 k
事务概要
========================================================================================================================================
安装 13 软件包 (+14 依赖软件包)
升级 1 软件包 (+ 4 依赖软件包)
总计:9.3 M
总下载量:7.1 M
Downloading packages:
(1/27): bzip2-devel-1.0.6-13.el7.x86_64.rpm | 218 kB 00:00:00
(2/27): freetype-devel-2.8-14.el7.x86_64.rpm | 447 kB 00:00:00
(3/27): gmp-devel-6.0.0-15.el7.x86_64.rpm | 181 kB 00:00:00
(4/27): libcom_err-devel-1.42.9-16.el7.x86_64.rpm | 32 kB 00:00:00
(5/27): keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm | 37 kB 00:00:00
(6/27): libgpg-error-devel-1.12-3.el7.x86_64.rpm | 16 kB 00:00:00
(7/27): libgcrypt-devel-1.5.3-14.el7.x86_64.rpm | 129 kB 00:00:00
(8/27): krb5-devel-1.15.1-37.el7_7.2.x86_64.rpm | 272 kB 00:00:00
(9/27): libjpeg-turbo-devel-1.2.90-8.el7.x86_64.rpm | 99 kB 00:00:00
(10/27): libcurl-devel-7.29.0-54.el7_7.2.x86_64.rpm | 303 kB 00:00:00
warning: /var/cache/yum/x86_64/7/epel/packages/libmcrypt-2.5.8-13.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
libmcrypt-2.5.8-13.el7.x86_64.rpm 的公钥尚未安装
(11/27): libmcrypt-2.5.8-13.el7.x86_64.rpm | 99 kB 00:00:00
(12/27): libmcrypt-devel-2.5.8-13.el7.x86_64.rpm | 13 kB 00:00:00
(13/27): libpng-devel-1.5.13-7.el7_2.x86_64.rpm | 122 kB 00:00:00
(14/27): libselinux-devel-2.5-14.1.el7.x86_64.rpm | 187 kB 00:00:01
(15/27): libsepol-devel-2.5-10.el7.x86_64.rpm | 77 kB 00:00:00
(16/27): libverto-devel-0.2.5-4.el7.x86_64.rpm | 12 kB 00:00:00
(17/27): libxml2-devel-2.9.1-6.el7_2.3.x86_64.rpm | 1.0 MB 00:00:00
(18/27): libxslt-devel-1.1.28-5.el7.x86_64.rpm | 309 kB 00:00:00
(19/27): libzip-0.10.1-8.el7.x86_64.rpm | 48 kB 00:00:00
(20/27): ncurses-devel-5.9-14.20130511.el7_4.x86_64.rpm | 712 kB 00:00:00
(21/27): openssl-devel-1.0.2k-19.el7.x86_64.rpm | 1.5 MB 00:00:00
(22/27): pcre-devel-8.32-17.el7.x86_64.rpm | 480 kB 00:00:00
(23/27): php-common-5.4.16-46.1.el7_7.x86_64.rpm | 565 kB 00:00:00
(24/27): readline-devel-6.2-11.el7.x86_64.rpm | 139 kB 00:00:00
(25/27): xz-devel-5.2.2-1.el7.x86_64.rpm | 46 kB 00:00:00
(26/27): zlib-devel-1.2.7-18.el7.x86_64.rpm | 50 kB 00:00:00
(27/27): php-mcrypt-5.4.16-9.el7.x86_64.rpm | 20 kB 00:00:00
----------------------------------------------------------------------------------------------------------------------------------------
总计 2.1 MB/s | 7.1 MB 00:00:03
从 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 检索密钥
导入 GPG key 0x352C64E5:
用户ID : "Fedora EPEL (7) <[url=mailto:epel@fedoraproject.org]epel@fedoraproject.org[/url]>"
指纹 : 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
软件包 : epel-release-7-11.noarch (@extras)
来自 : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : zlib-devel-1.2.7-18.el7.x86_64 1/37
正在更新 : krb5-libs-1.15.1-37.el7_7.2.x86_64 2/37
正在更新 : libcurl-7.29.0-54.el7_7.2.x86_64 3/37
正在更新 : libkadm5-1.15.1-37.el7_7.2.x86_64 4/37
正在安装 : libmcrypt-2.5.8-13.el7.x86_64 5/37
正在安装 : 2:libpng-devel-1.5.13-7.el7_2.x86_64 6/37
正在安装 : libzip-0.10.1-8.el7.x86_64 7/37
正在安装 : php-common-5.4.16-46.1.el7_7.x86_64 8/37
正在安装 : libgpg-error-devel-1.12-3.el7.x86_64 9/37
正在安装 : libgcrypt-devel-1.5.3-14.el7.x86_64 10/37
正在安装 : xz-devel-5.2.2-1.el7.x86_64 11/37
正在安装 : libxml2-devel-2.9.1-6.el7_2.3.x86_64 12/37
正在安装 : libsepol-devel-2.5-10.el7.x86_64 13/37
正在安装 : ncurses-devel-5.9-14.20130511.el7_4.x86_64 14/37
正在安装 : libverto-devel-0.2.5-4.el7.x86_64 15/37
正在安装 : keyutils-libs-devel-1.5.8-3.el7.x86_64 16/37
正在安装 : pcre-devel-8.32-17.el7.x86_64 17/37
正在安装 : libselinux-devel-2.5-14.1.el7.x86_64 18/37
正在安装 : libcom_err-devel-1.42.9-16.el7.x86_64 19/37
正在安装 : krb5-devel-1.15.1-37.el7_7.2.x86_64 20/37
正在安装 : 1:openssl-devel-1.0.2k-19.el7.x86_64 21/37
正在安装 : readline-devel-6.2-11.el7.x86_64 22/37
正在安装 : libxslt-devel-1.1.28-5.el7.x86_64 23/37
正在安装 : php-mcrypt-5.4.16-9.el7.x86_64 24/37
正在安装 : freetype-devel-2.8-14.el7.x86_64 25/37
正在安装 : libmcrypt-devel-2.5.8-13.el7.x86_64 26/37
正在更新 : krb5-workstation-1.15.1-37.el7_7.2.x86_64 27/37
正在更新 : curl-7.29.0-54.el7_7.2.x86_64 28/37
正在安装 : libcurl-devel-7.29.0-54.el7_7.2.x86_64 29/37
正在安装 : bzip2-devel-1.0.6-13.el7.x86_64 30/37
正在安装 : libjpeg-turbo-devel-1.2.90-8.el7.x86_64 31/37
正在安装 : 1:gmp-devel-6.0.0-15.el7.x86_64 32/37
清理 : krb5-workstation-1.15.1-37.el7_6.x86_64 33/37
清理 : libkadm5-1.15.1-37.el7_6.x86_64 34/37
清理 : curl-7.29.0-54.el7.x86_64 35/37
清理 : libcurl-7.29.0-54.el7.x86_64 36/37
清理 : krb5-libs-1.15.1-37.el7_6.x86_64 37/37
验证中 : libxml2-devel-2.9.1-6.el7_2.3.x86_64 1/37
验证中 : krb5-devel-1.15.1-37.el7_7.2.x86_64 2/37
验证中 : krb5-libs-1.15.1-37.el7_7.2.x86_64 3/37
验证中 : 1:gmp-devel-6.0.0-15.el7.x86_64 4/37
验证中 : libcom_err-devel-1.42.9-16.el7.x86_64 5/37
验证中 : libjpeg-turbo-devel-1.2.90-8.el7.x86_64 6/37
验证中 : pcre-devel-8.32-17.el7.x86_64 7/37
验证中 : krb5-workstation-1.15.1-37.el7_7.2.x86_64 8/37
验证中 : libmcrypt-devel-2.5.8-13.el7.x86_64 9/37
验证中 : libmcrypt-2.5.8-13.el7.x86_64 10/37
验证中 : keyutils-libs-devel-1.5.8-3.el7.x86_64 11/37
验证中 : bzip2-devel-1.0.6-13.el7.x86_64 12/37
验证中 : libverto-devel-0.2.5-4.el7.x86_64 13/37
验证中 : zlib-devel-1.2.7-18.el7.x86_64 14/37
验证中 : ncurses-devel-5.9-14.20130511.el7_4.x86_64 15/37
验证中 : php-common-5.4.16-46.1.el7_7.x86_64 16/37
验证中 : freetype-devel-2.8-14.el7.x86_64 17/37
验证中 : 2:libpng-devel-1.5.13-7.el7_2.x86_64 18/37
验证中 : libxslt-devel-1.1.28-5.el7.x86_64 19/37
验证中 : php-mcrypt-5.4.16-9.el7.x86_64 20/37
验证中 : curl-7.29.0-54.el7_7.2.x86_64 21/37
验证中 : 1:openssl-devel-1.0.2k-19.el7.x86_64 22/37
验证中 : libcurl-devel-7.29.0-54.el7_7.2.x86_64 23/37
验证中 : libsepol-devel-2.5-10.el7.x86_64 24/37
验证中 : libgcrypt-devel-1.5.3-14.el7.x86_64 25/37
验证中 : readline-devel-6.2-11.el7.x86_64 26/37
验证中 : xz-devel-5.2.2-1.el7.x86_64 27/37
验证中 : libcurl-7.29.0-54.el7_7.2.x86_64 28/37
验证中 : libkadm5-1.15.1-37.el7_7.2.x86_64 29/37
验证中 : libgpg-error-devel-1.12-3.el7.x86_64 30/37
验证中 : libselinux-devel-2.5-14.1.el7.x86_64 31/37
验证中 : libzip-0.10.1-8.el7.x86_64 32/37
验证中 : krb5-workstation-1.15.1-37.el7_6.x86_64 33/37
验证中 : krb5-libs-1.15.1-37.el7_6.x86_64 34/37
验证中 : libcurl-7.29.0-54.el7.x86_64 35/37
验证中 : curl-7.29.0-54.el7.x86_64 36/37
验证中 : libkadm5-1.15.1-37.el7_6.x86_64 37/37
已安装:
bzip2-devel.x86_64 0:1.0.6-13.el7 freetype-devel.x86_64 0:2.8-14.el7 gmp-devel.x86_64 1:6.0.0-15.el7
libcurl-devel.x86_64 0:7.29.0-54.el7_7.2 libjpeg-turbo-devel.x86_64 0:1.2.90-8.el7 libmcrypt.x86_64 0:2.5.8-13.el7
libmcrypt-devel.x86_64 0:2.5.8-13.el7 libpng-devel.x86_64 2:1.5.13-7.el7_2 libxml2-devel.x86_64 0:2.9.1-6.el7_2.3
libxslt-devel.x86_64 0:1.1.28-5.el7 openssl-devel.x86_64 1:1.0.2k-19.el7 php-mcrypt.x86_64 0:5.4.16-9.el7
readline-devel.x86_64 0:6.2-11.el7
作为依赖被安装:
keyutils-libs-devel.x86_64 0:1.5.8-3.el7 krb5-devel.x86_64 0:1.15.1-37.el7_7.2 libcom_err-devel.x86_64 0:1.42.9-16.el7
libgcrypt-devel.x86_64 0:1.5.3-14.el7 libgpg-error-devel.x86_64 0:1.12-3.el7 libselinux-devel.x86_64 0:2.5-14.1.el7
libsepol-devel.x86_64 0:2.5-10.el7 libverto-devel.x86_64 0:0.2.5-4.el7 libzip.x86_64 0:0.10.1-8.el7
ncurses-devel.x86_64 0:5.9-14.20130511.el7_4 pcre-devel.x86_64 0:8.32-17.el7 php-common.x86_64 0:5.4.16-46.1.el7_7
xz-devel.x86_64 0:5.2.2-1.el7 zlib-devel.x86_64 0:1.2.7-18.el7
更新完毕:
curl.x86_64 0:7.29.0-54.el7_7.2
作为依赖被升级:
krb5-libs.x86_64 0:1.15.1-37.el7_7.2 krb5-workstation.x86_64 0:1.15.1-37.el7_7.2 libcurl.x86_64 0:7.29.0-54.el7_7.2
libkadm5.x86_64 0:1.15.1-37.el7_7.2
完毕!
安装php72w,是需要配置额外的yum源地址(连接不一定长期有效,如果无效自行查找)的,否则会报错不能找到相关软件包。php高版本的yum源地址,有两部分,其中一部分是epel-release,另外一部分来自webtatic。如果跳过epel-release的话,安装webtatic的时候,会有错误爆出。所以,这里需要的命令是:[Asm] 纯文本查看 复制代码 [root@snipeit ~]# rpm -Uvh https://dl.Fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-13.noarch.rpm
获取https://dl.Fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-13.noarch.rpm
[root@snipeit ~]# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
获取https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
警告:/var/tmp/rpm-tmp.eZI4LC: 头V4 RSA/SHA1 Signature, 密钥 ID 62e74ca5: NOKEY
准备中... ################################# [100%]
软件包 webtatic-release-7-3.noarch 已经安装
[root@snipeit ~]# #安装扩展包,事实上,这里面的对应扩展库很多,这里大家一定要注意cli和fpm这两个包,而其它的相关包就看您需要了。
[root@snipeit ~]# yum -y install php72w php72w-cli php72w-fpm php72w-common php72w-devel php72w-embedded php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.ustc.edu.cn
* epel: mirrors.aliyun.com
* extras: mirrors.163.com
* updates: mirrors.aliyun.com
* webtatic: us-east.repo.webtatic.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 mod_php72w.x86_64.0.7.2.27-1.w7 将被 安装
--> 正在处理依赖关系 libargon2.so.0()(64bit),它被软件包 mod_php72w-7.2.27-1.w7.x86_64 需要
---> 软件包 php72w-cli.x86_64.0.7.2.27-1.w7 将被 安装
---> 软件包 php72w-common.x86_64.0.7.2.27-1.w7 将被 安装
---> 软件包 php72w-devel.x86_64.0.7.2.27-1.w7 将被 安装
---> 软件包 php72w-embedded.x86_64.0.7.2.27-1.w7 将被 安装
---> 软件包 php72w-fpm.x86_64.0.7.2.27-1.w7 将被 安装
---> 软件包 php72w-gd.x86_64.0.7.2.27-1.w7 将被 安装
---> 软件包 php72w-mbstring.x86_64.0.7.2.27-1.w7 将被 安装
---> 软件包 php72w-mysqlnd.x86_64.0.7.2.27-1.w7 将被 安装
---> 软件包 php72w-opcache.x86_64.0.7.2.27-1.w7 将被 安装
---> 软件包 php72w-pdo.x86_64.0.7.2.27-1.w7 将被 安装
---> 软件包 php72w-xml.x86_64.0.7.2.27-1.w7 将被 安装
--> 正在检查事务
---> 软件包 libargon2.x86_64.0.20161029-3.el7 将被 安装
--> 解决依赖关系完成
依赖关系解决
========================================================================================================================================
Package 架构 版本 源 大小
========================================================================================================================================
正在安装:
mod_php72w x86_64 7.2.27-1.w7 webtatic 3.1 M
php72w-cli x86_64 7.2.27-1.w7 webtatic 3.1 M
php72w-common x86_64 7.2.27-1.w7 webtatic 1.3 M
php72w-devel x86_64 7.2.27-1.w7 webtatic 2.8 M
php72w-embedded x86_64 7.2.27-1.w7 webtatic 1.5 M
php72w-fpm x86_64 7.2.27-1.w7 webtatic 1.6 M
php72w-gd x86_64 7.2.27-1.w7 webtatic 139 k
php72w-mbstring x86_64 7.2.27-1.w7 webtatic 587 k
php72w-mysqlnd x86_64 7.2.27-1.w7 webtatic 198 k
php72w-opcache x86_64 7.2.27-1.w7 webtatic 246 k
php72w-pdo x86_64 7.2.27-1.w7 webtatic 90 k
php72w-xml x86_64 7.2.27-1.w7 webtatic 123 k
为依赖而安装:
libargon2 x86_64 20161029-3.el7 epel 23 k
事务概要
========================================================================================================================================
安装 12 软件包 (+1 依赖软件包)
总下载量:15 M
安装大小:65 M
Downloading packages:
(1/13): libargon2-20161029-3.el7.x86_64.rpm | 23 kB 00:00:00
warning: /var/cache/yum/x86_64/7/webtatic/packages/php72w-common-7.2.27-1.w7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 62e74ca5: NOKEY
php72w-common-7.2.27-1.w7.x86_64.rpm 的公钥尚未安装
(2/13): php72w-common-7.2.27-1.w7.x86_64.rpm | 1.3 MB 00:01:42
(3/13): php72w-embedded-7.2.27-1.w7.x86_64.rpm | 1.5 MB 00:02:01
(4/13): mod_php72w-7.2.27-1.w7.x86_64.rpm | 3.1 MB 00:04:31
(5/13): php72w-gd-7.2.27-1.w7.x86_64.rpm | 139 kB 00:00:12
(6/13): php72w-mysqlnd-7.2.27-1.w7.x86_64.rpm | 198 kB 00:00:14
(7/13): php72w-mbstring-7.2.27-1.w7.x86_64.rpm | 587 kB 00:00:37
(8/13): php72w-pdo-7.2.27-1.w7.x86_64.rpm | 90 kB 00:00:09
(9/13): php72w-opcache-7.2.27-1.w7.x86_64.rpm | 246 kB 00:00:20
(10/13): php72w-devel-7.2.27-1.w7.x86_64.rpm | 2.8 MB 00:05:38
(11/13): php72w-xml-7.2.27-1.w7.x86_64.rpm | 123 kB 00:00:12
(12/13): php72w-fpm-7.2.27-1.w7.x86_64.rpm | 1.6 MB 00:01:18
(13/13): php72w-cli-7.2.27-1.w7.x86_64.rpm | 3.1 MB 00:00:48
----------------------------------------------------------------------------------------------------------------------------------------
总计 40 kB/s | 15 MB 00:06:18
从 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-el7 检索密钥
导入 GPG key 0x62E74CA5:
用户ID : "Webtatic EL7 <[url=mailto:rpms@webtatic.com]rpms@webtatic.com[/url]>"
指纹 : 830d b159 6d9b 9b01 99dc 24a3 e87f d236 62e7 4ca5
软件包 : webtatic-release-7-3.noarch (installed)
来自 : /etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-el7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : php72w-common-7.2.27-1.w7.x86_64 1/13
正在安装 : libargon2-20161029-3.el7.x86_64 2/13
正在安装 : php72w-cli-7.2.27-1.w7.x86_64 3/13
正在安装 : php72w-pdo-7.2.27-1.w7.x86_64 4/13
正在安装 : php72w-mysqlnd-7.2.27-1.w7.x86_64 5/13
正在安装 : php72w-devel-7.2.27-1.w7.x86_64 6/13
正在安装 : php72w-embedded-7.2.27-1.w7.x86_64 7/13
正在安装 : php72w-fpm-7.2.27-1.w7.x86_64 8/13
正在安装 : mod_php72w-7.2.27-1.w7.x86_64 9/13
正在安装 : php72w-xml-7.2.27-1.w7.x86_64 10/13
正在安装 : php72w-gd-7.2.27-1.w7.x86_64 11/13
正在安装 : php72w-mbstring-7.2.27-1.w7.x86_64 12/13
正在安装 : php72w-opcache-7.2.27-1.w7.x86_64 13/13
验证中 : php72w-devel-7.2.27-1.w7.x86_64 1/13
验证中 : php72w-pdo-7.2.27-1.w7.x86_64 2/13
验证中 : php72w-xml-7.2.27-1.w7.x86_64 3/13
验证中 : php72w-embedded-7.2.27-1.w7.x86_64 4/13
验证中 : php72w-gd-7.2.27-1.w7.x86_64 5/13
验证中 : php72w-fpm-7.2.27-1.w7.x86_64 6/13
验证中 : php72w-cli-7.2.27-1.w7.x86_64 7/13
验证中 : php72w-mbstring-7.2.27-1.w7.x86_64 8/13
验证中 : php72w-mysqlnd-7.2.27-1.w7.x86_64 9/13
验证中 : libargon2-20161029-3.el7.x86_64 10/13
验证中 : php72w-opcache-7.2.27-1.w7.x86_64 11/13
验证中 : php72w-common-7.2.27-1.w7.x86_64 12/13
验证中 : mod_php72w-7.2.27-1.w7.x86_64 13/13
已安装:
mod_php72w.x86_64 0:7.2.27-1.w7 php72w-cli.x86_64 0:7.2.27-1.w7 php72w-common.x86_64 0:7.2.27-1.w7
php72w-devel.x86_64 0:7.2.27-1.w7 php72w-embedded.x86_64 0:7.2.27-1.w7 php72w-fpm.x86_64 0:7.2.27-1.w7
php72w-gd.x86_64 0:7.2.27-1.w7 php72w-mbstring.x86_64 0:7.2.27-1.w7 php72w-mysqlnd.x86_64 0:7.2.27-1.w7
php72w-opcache.x86_64 0:7.2.27-1.w7 php72w-pdo.x86_64 0:7.2.27-1.w7 php72w-xml.x86_64 0:7.2.27-1.w7
作为依赖被安装:
libargon2.x86_64 0:20161029-3.el7
完毕!
注意:如果你在使用Laravel框架,那么经过上述操作之后你会发现还缺少一个 bcmath 扩展。在网上也有各种各样的安装命令,但大多数都麻烦。下面这条命令可以做到,一次安装成功。[Asm] 纯文本查看 复制代码 [root@snipeit snipe-it]# yum install php72w-bcmath
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.ustc.edu.cn
* epel: mirrors.aliyun.com
* extras: mirrors.163.com
* updates: mirrors.aliyun.com
* webtatic: us-east.repo.webtatic.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 php72w-bcmath.x86_64.0.7.2.27-1.w7 将被 安装
--> 解决依赖关系完成
依赖关系解决
========================================================================================================================================
Package 架构 版本 源 大小
========================================================================================================================================
正在安装:
php72w-bcmath x86_64 7.2.27-1.w7 webtatic 36 k
事务概要
========================================================================================================================================
安装 1 软件包
总下载量:36 k
安装大小:98 k
Is this ok [y/d/N]: y
Downloading packages:
php72w-bcmath-7.2.27-1.w7.x86_64.rpm | 36 kB 00:00:05
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : php72w-bcmath-7.2.27-1.w7.x86_64 1/1
验证中 : php72w-bcmath-7.2.27-1.w7.x86_64 1/1
已安装:
php72w-bcmath.x86_64 0:7.2.27-1.w7
完毕!
安装完成以后,启动服务...[Asm] 纯文本查看 复制代码 [root@snipeit ~]# systemctl enable php-fpm.service
Created symlink from /etc/systemd/system/multi-user.target.wants/php-fpm.service to /usr/lib/systemd/system/php-fpm.service.
[root@snipeit ~]# systemctl start php-fpm.service
[root@snipeit ~]###查看php-fpm开启状态,这里使用的lsof命令,笔者安装的Centos默认没有,需要安装。
[root@snipeit ~]# yum install lsof
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.ustc.edu.cn
* epel: mirrors.aliyun.com
* extras: mirrors.163.com
* updates: mirrors.aliyun.com
* webtatic: us-east.repo.webtatic.com
软件包 lsof-4.87-6.el7.x86_64 已安装并且是最新版本
无须任何处理
[root@snipeit ~]# lsof -i:9000
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
php-fpm 11830 root 7u IPv4 54937 0t0 TCP localhost:cslistener (LISTEN)
php-fpm 11832 apache 9u IPv4 54937 0t0 TCP localhost:cslistener (LISTEN)
php-fpm 11833 apache 9u IPv4 54937 0t0 TCP localhost:cslistener (LISTEN)
php-fpm 11834 apache 9u IPv4 54937 0t0 TCP localhost:cslistener (LISTEN)
php-fpm 11835 apache 9u IPv4 54937 0t0 TCP localhost:cslistener (LISTEN)
php-fpm 11836 apache 9u IPv4 54937 0t0 TCP localhost:cslistener (LISTEN)
经过以上命令检测,代表php-fpm已开启成功查看PHP版本,成功查询即表示安装成功[Asm] 纯文本查看 复制代码 [root@snipeit ~]# php -v
PHP 7.2.27 (cli) (built: Jan 26 2020 15:49:49) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.27, Copyright (c) 1999-2018, by Zend Technologies
配置Apache支持PHP,修改httpd.conf文件 PS,这里不熟悉的代码的家伙,可以用winscp登陆进去,直接修改文件......[Asm] 纯文本查看 复制代码 [root@snipeit ~]# vi /etc/httpd/conf/httpd.conf
[root@snipeit ~]##在AddType application*后面加如下一行
[root@snipeit ~]##AddType application/x-httpd-php .php .phtml
[root@snipeit ~]##在DirectoryIndex index.html加上index.php
[root@snipeit ~]##DirectoryIndex index.php index.html
[root@snipeit ~]##确保httd.conf文件中包含以下字段,如不包含则加入此字段
[root@snipeit ~]##LoadModule php7_module /usr/lib64/httpd/modules/libphp7.so
[root@snipeit ~]#修改完成后,重启httpd服务
[root@snipeit ~]# service httpd restart
Redirecting to /bin/systemctl restart httpd.service
[root@snipeit ~]# #检验httpd的PHP支持
[root@snipeit ~]# echo "<?php phpinfo(); ?>" >> /var/www/html/index.php
[root@snipeit ~]##重启httpd服务,添加防火墙例外之后在网页访问,查看是否有显示PHP版本页面
[root@snipeit ~]# service httpd restart
Redirecting to /bin/systemctl restart httpd.service
[root@snipeit ~]# firewall-cmd --permanent --zone=public --add-port=80/tcp
success
[root@snipeit ~]# systemctl restart firewalld.service
检查下PHP运行情况
我们开始检测一下环境配置 By kcuye
[Asm] 纯文本查看 复制代码 [root@snipeit ~]# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)
[root@snipeit ~]# uname -a
Linux snipeit 3.10.0-1062.el7.x86_64 #1 SMP Wed Aug 7 18:08:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@snipeit ~]# mysql --version
mysql Ver 15.1 Distrib 5.5.64-MariaDB, for Linux (x86_64) using readline 5.1
[root@snipeit ~]# php -v
PHP 7.2.27 (cli) (built: Jan 26 2020 15:49:49) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.27, Copyright (c) 1999-2018, by Zend Technologies
[root@snipeit ~]# php -fpm -v
PHP 7.2.27 (cli) (built: Jan 26 2020 15:49:49) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.27, Copyright (c) 1999-2018, by Zend Technologies
[root@snipeit ~]# httpd -v
Server version: Apache/2.4.6 (CentOS)
Server built: Aug 8 2019 11:41:18
环境检测结束,开始安装snipe-it初始化并创建snipeit数据库[Asm] 纯文本查看 复制代码 [root@snipeit ~]# service mariadb start
Redirecting to /bin/systemctl start mariadb.service
[root@snipeit ~]# mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
Set root password? [Y/n] y
New password:
Re-enter new password:
Sorry, passwords do not match.
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!
By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n] y
... Success!
Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n] y
... Success!
By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] y
... Success!
Cleaning up...
All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.
Thanks for using MariaDB!
[root@snipeit ~]##登陆数据库,创建对应用户及对应的数据库
[root@snipeit ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.64-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> create database snipeit;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> grant all on snipeit.* to 'snipeit'@'%' identified by 'Passw0rd';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> exit
Bye
安装composer,Composer是PHP的依赖管理器[Asm] 纯文本查看 复制代码 [root@snipeit ~]# cd ~
[root@snipeit ~]# curl -sS https://getcomposer.org/installer | php
All settings correct for using Composer
Downloading...
Composer (version 1.9.3) successfully installed to: /root/composer.phar
Use it: php composer.phar
[root@snipeit ~]# mv /root/composer.phar /usr/bin/composer
[root@snipeit ~]##安装snipeit
[root@snipeit ~]# cd /var/www
[root@snipeit ~]# #安装git支持
[root@snipeit www]# yum install -y git
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.ustc.edu.cn
* epel: mirrors.aliyun.com
* extras: mirrors.163.com
* updates: mirrors.aliyun.com
* webtatic: us-east.repo.webtatic.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 git.x86_64.0.1.8.3.1-20.el7 将被 升级
--> 正在处理依赖关系 git = 1.8.3.1-20.el7,它被软件包 perl-Git-1.8.3.1-20.el7.noarch 需要
---> 软件包 git.x86_64.0.1.8.3.1-21.el7_7 将被 更新
--> 正在检查事务
---> 软件包 perl-Git.noarch.0.1.8.3.1-20.el7 将被 升级
---> 软件包 perl-Git.noarch.0.1.8.3.1-21.el7_7 将被 更新
--> 解决依赖关系完成
依赖关系解决
========================================================================================================================================
Package 架构 版本 源 大小
========================================================================================================================================
正在更新:
git x86_64 1.8.3.1-21.el7_7 updates 4.4 M
为依赖而更新:
perl-Git noarch 1.8.3.1-21.el7_7 updates 55 k
事务概要
========================================================================================================================================
升级 1 软件包 (+1 依赖软件包)
总计:4.4 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在更新 : perl-Git-1.8.3.1-21.el7_7.noarch 1/4
正在更新 : git-1.8.3.1-21.el7_7.x86_64 2/4
清理 : perl-Git-1.8.3.1-20.el7.noarch 3/4
清理 : git-1.8.3.1-20.el7.x86_64 4/4
验证中 : git-1.8.3.1-21.el7_7.x86_64 1/4
验证中 : perl-Git-1.8.3.1-21.el7_7.noarch 2/4
验证中 : git-1.8.3.1-20.el7.x86_64 3/4
验证中 : perl-Git-1.8.3.1-20.el7.noarch 4/4
更新完毕:
git.x86_64 0:1.8.3.1-21.el7_7
作为依赖被升级:
perl-Git.noarch 0:1.8.3.1-21.el7_7
完毕!
开始克隆snipe-it,这里从github克隆速度有些慢,需要很长时间,为做教程我对网络进行了一定的处理。.
什么?你问怎么对网络处理的?Emm......[Asm] 纯文本查看 复制代码 [root@snipeit www]# git clone https://github.com/snipe/snipe-it snipe-it
正克隆到 'snipe-it'...
remote: Enumerating objects: 90083, done.
remote: Total 90083 (delta 0), reused 0 (delta 0), pack-reused 90083
接收对象中: 100% (90083/90083), 92.79 MiB | 7.70 MiB/s, done.
处理 delta 中: 100% (56812/56812), done.
[root@snipeit www]##编辑配置文件
[root@snipeit www]# cd /var/www/snipe-it
[root@snipeit snipe-it]# sudo cp .env.example .env
[root@snipeit snipe-it]# vi .env
[root@snipeit www]##APP_URL=192.168.208.128 #填入IP地址,IP查询命令ip add
[root@snipeit www]##APP_TIMEZONE='Asia/Shanghai' #时区
[root@snipeit www]##DB_DATABASE=snipeit #数据库名称
[root@snipeit www]##DB_USERNAME=snipeit #数据库用户名
[root@snipeit www]##DB_PASSWORD=Passw0rd #前面设置数据库密码
[root@snipeit www]###其中
[root@snipeit www]##APP_DEBUG=false #需要调试的时候请更改为true,一般用不到
[root@snipeit www]##更改目录权限
[root@snipeit snipe-it]# chown -R apache:apache storage public/uploads
[root@snipeit snipe-it]# chmod -R 755 storage
[root@snipeit snipe-it]# chmod -R 755 public/uploads
[root@snipeit snipe-it]#安装PHP依赖,这里非常的慢,需要加载107个插件
[root@snipeit snipe-it]# composer install --no-dev --prefer-source
Loading composer repositories with package information
Installing dependencies from lock file
Package operations: 107 installs, 0 updates, 0 removals
- Installing kylekatarnls/update-helper (1.2.0): Cloning 5786fa188e
- Installing symfony/polyfill-util (v1.13.1): Cloning 964a67f293
- Installing symfony/polyfill-php56 (v1.13.1): Cloning 53dd1cdf3c
- Installing symfony/polyfill-ctype (v1.13.1): Cloning f8f0b461be
- Installing paragonie/random_compat (v2.0.18): Cloning 0a58ef6e31
- Installing symfony/polyfill-php70 (v1.13.1): Cloning af23c7bb26
- Installing symfony/polyfill-mbstring (v1.13.1): Cloning 7b4aab9743
- Installing symfony/http-foundation (v3.4.36): Cloning d2d0cfe8e3
- Installing symfony/event-dispatcher (v3.4.36): Cloning f9031c22ec
- Installing psr/log (1.1.2): Cloning 446d54b4cb
- Installing symfony/debug (v3.4.36): Cloning f72e33fdb1
- Installing symfony/http-kernel (v3.4.36): Cloning c42c8339ac
- Installing vlucas/phpdotenv (v2.6.1): Cloning 2a7dcf7e3e
- Installing symfony/css-selector (v3.1.10): Cloning 722a87478a
- Installing tijsverkoyen/css-to-inline-styles (2.2.2): Cloning dda2ee426a
- Installing symfony/var-dumper (v3.4.36): Cloning 569e261461
- Installing symfony/routing (v3.4.36): Cloning b689ccd48e
- Installing symfony/process (v3.4.36): Cloning 9a4545c01e
- Installing symfony/finder (v3.4.36): Cloning 290ae21279
- Installing symfony/console (v3.4.36): Cloning 1ee23b3b65
- Installing symfony/polyfill-php72 (v1.13.1): Cloning 66fea50f6c
- Installing symfony/polyfill-intl-idn (v1.13.1): Cloning 6f9c239e61
- Installing symfony/polyfill-iconv (v1.13.1): Cloning a019efccc0
- Installing doctrine/lexer (1.0.2): Cloning 1febd6c3ef
- Installing egulias/email-validator (2.1.11): Cloning 92dd169c32
- Installing swiftmailer/swiftmailer (v6.2.3): Cloning 149cfdf118
- Installing ramsey/uuid (3.9.1): Cloning 5ac2740e0c
- Installing psr/simple-cache (1.0.1): Cloning 408d5eafb8
- Installing psr/container (1.0.0): Cloning b7ce3b1764
- Installing symfony/translation (v3.4.36): Cloning 0be25347c4
- Installing nesbot/carbon (1.39.1): Cloning 4be0c00516
- Installing mtdowling/cron-expression (v1.2.1): Cloning 9504fa9ea6
- Installing monolog/monolog (1.25.2): Cloning d5e2fb341c
- Installing league/flysystem (1.0.57): Cloning 0e9db7f0b9
- Installing erusev/parsedown (1.7.3): Cloning 6d89393817
- Installing doctrine/inflector (1.3.1): Cloning ec3a552422
- Installing laravel/framework (v5.5.48): Cloning e3e8d585dc
- Installing asm89/stack-cors (1.2.0): Cloning c163e2b614
- Installing barryvdh/laravel-cors (v0.11.4): Cloning 03492f1a3b
- Installing maximebf/debugbar (v1.15.1): Cloning 6c4277f611
- Installing barryvdh/laravel-debugbar (v3.2.8): Cloning 18208d6489
- Installing dasprid/enum (1.0.0): Cloning 631ef6e638
- Installing doctrine/annotations (v1.8.0): Cloning 904dca4eb1
- Installing doctrine/reflection (v1.0.0): Cloning 02538d3f95
- Installing doctrine/event-manager (1.1.0): Cloning 6295728199
- Installing doctrine/collections (v1.5.0): Cloning a01ee38fcd
- Installing doctrine/cache (1.10.0): Cloning 382e7f4db9
- Installing doctrine/persistence (1.2.0): Cloning 43526ae633
- Installing doctrine/common (v2.11.0): Cloning b8ca1dcf6b
- Installing doctrine/dbal (v2.9.0): Cloning 21fdabe2fc
- Installing eduardokum/laravel-mail-auto-embed (1.0.4): Cloning 918c3aff22
- Installing enshrined/svg-sanitize (0.13.0): Cloning 4cf8d0f61e
- Installing fideloper/proxy (4.2.1): Cloning 03085e58ec
- Installing guzzlehttp/promises (v1.3.1): Cloning a59da6cf61
- Installing ralouphie/getallheaders (3.0.3): Cloning 120b605dfe
- Installing psr/http-message (1.0.1): Cloning f6561bf28d
- Installing guzzlehttp/psr7 (1.6.1): Cloning 239400de7a
- Installing intervention/image (2.5.1): Cloning abbf18d5ab
- Installing jakub-onderka/php-console-color (v0.2): Cloning d5deaecff5
- Installing javiereguiluz/easyslugger (v1.0.0): Cloning 11524a3fd7
- Installing zendframework/zend-diactoros (1.8.7): Cloning a85e67b86e
- Installing symfony/psr-http-message-bridge (v1.2.0): Cloning 9ab9d71f97
- Installing phpseclib/phpseclib (2.0.23): Cloning c78eb5058d
- Installing league/event (2.2.0): Cloning d2cc124cf9
- Installing lcobucci/jwt (3.3.1): Cloning a11ec5f4b4
- Installing defuse/php-encryption (v2.2.1): Cloning 0f407c43b9
- Installing league/oauth2-server (6.1.1): Cloning a0cabb573c
- Installing guzzlehttp/guzzle (6.4.1): Cloning 0895c93240
- Installing firebase/php-jwt (v5.0.0): Cloning 9984a4d3a3
- Installing laravel/passport (v4.0.3): Cloning 0542f1f82e
- Installing nikic/php-parser (v4.3.0): Cloning 9a9981c347
- Installing jakub-onderka/php-console-highlighter (v0.4): Cloning 9f7a229a69
- Installing dnoegel/php-xdg-base-dir (0.1): Cloning 265b859349
- Installing psy/psysh (v0.9.11): Cloning 75d9ac1c16
- Installing laravel/tinker (v1.0.10): Cloning ad571aacba
- Installing laravelcollective/html (v5.5.4): Cloning 04c596a699
- Installing league/csv (9.4.1): Cloning bf83acc23a
- Installing maknz/slack (1.7.0): Cloning 7f21fefc70
- Installing neitanod/forceutf8 (v2.0.2): Cloning 30980a8ca2
- Installing paragonie/constant_time_encoding (v2.3.0): Cloning 47a1cedd2e
- Installing patchwork/utf8 (v1.3.2): Cloning d296e0026e
- Installing phpdocumentor/reflection-common (2.0.0): Cloning 63a995caa1
- Installing phpdocumentor/type-resolver (1.0.1): Cloning 2e32a6d489
- Installing sebastian/recursion-context (3.0.0): Cloning 5b0cd72350
- Installing sebastian/exporter (3.1.2): Cloning 68609e1261
- Installing sebastian/diff (2.0.1): Cloning 347c1d8b49
- Installing sebastian/comparator (2.1.3): Cloning 34369daee4
- Installing webmozart/assert (1.6.0): Cloning 573381c0a6
- Installing phpdocumentor/reflection-docblock (4.3.2): Cloning b83ff7cfcf
- Installing doctrine/instantiator (1.3.0): Cloning ae466f7262
- Installing phpspec/prophecy (1.9.0): Cloning f6811d96d9
- Installing pragmarx/google2fa (v5.0.0): Cloning 17c969c82f
- Installing bacon/bacon-qr-code (2.0.0): Cloning eaac909da3
- Installing pragmarx/google2fa-qrcode (v1.0.3): Cloning fd5ff0531a
- Installing pragmarx/google2fa-laravel (v1.3.0): Cloning 4ccc17dbf5
- Installing predis/predis (v1.1.1): Cloning f0210e3888
- Installing rollbar/rollbar (v1.8.1): Cloning 8a57ad9574
- Installing rollbar/rollbar-laravel (v2.4.3): Cloning e581cd9a17
- Installing schuppo/password-strength (v1.11): Cloning 7ab466d43c
- Installing spatie/temporary-directory (1.1.5): Cloning 539d0856c5
- Installing spatie/db-dumper (2.13.1): Cloning 8f88e6f772
- Installing spatie/laravel-backup (5.12.1): Cloning 553562557e
- Installing tecnickcom/tc-lib-color (1.12.13): Cloning 67402204a7
- Installing tecnickcom/tc-lib-barcode (1.15.16): Cloning 60780acd7a
- Installing tightenco/ziggy (v0.7.1): Cloning aa4c42aaec
- Installing unicodeveloper/laravel-password (1.0.3): Cloning c2e532cbbb
- Installing watson/validating (3.3.0): Cloning 288eb177e9
Generating optimized autoload files
Carbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> [url=home.php?mod=space&uid=212996]@php[/url] artisan package:discover
Discovered Package: barryvdh/laravel-cors
Discovered Package: barryvdh/laravel-debugbar
Discovered Package: eduardokum/laravel-mail-auto-embed
Discovered Package: fideloper/proxy
Discovered Package: intervention/image
Discovered Package: laravel/passport
Discovered Package: laravel/tinker
Discovered Package: laravelcollective/html
Discovered Package: nesbot/carbon
Discovered Package: pragmarx/google2fa-laravel
Discovered Package: rollbar/rollbar-laravel
Discovered Package: schuppo/password-strength
Discovered Package: spatie/laravel-backup
Discovered Package: tightenco/ziggy
Discovered Package: unicodeveloper/laravel-password
Package manifest generated successfully.
如果上述过程安装时间过长,可以修改为国内源之后重新安装尝试[Asm] 纯文本查看 复制代码 [root@snipeit snipe-it]##composer config -g repo.packagist composer https://packagist.phpcomposer.com
[root@snipeit snipe-it]##生成app_key
[root@snipeit snipe-it]# php artisan key:generate
**************************************
* Application In Production! *
**************************************
Do you really wish to run this command? (yes/no) [no]:
> yes
Application key [base64:BgJOq6cR/V+3ilFBaY+yzgV5ylL2Tyque36TYcGDFfc=] set successfully.
修改Apache配置文件,创建虚拟主机[Asm] 纯文本查看 复制代码 [root@snipeit snipe-it]# vi /etc/httpd/conf.d/snipeit.example.com.conf
[root@snipeit snipe-it]##<VirtualHost *:80>
[root@snipeit snipe-it]## ServerName snipeit.example.com
[root@snipeit snipe-it]## DocumentRoot /var/www/snipe-it/public
[root@snipeit snipe-it]## <Directory /var/www/snipe-it/public>
[root@snipeit snipe-it]## Options Indexes FollowSymLinks MultiViews
[root@snipeit snipe-it]## AllowOverride All
[root@snipeit snipe-it]## Order allow,deny
[root@snipeit snipe-it]## allow from all
[root@snipeit snipe-it]## </Directory>
[root@snipeit snipe-it]##</VirtualHost>
[root@snipeit snipe-it]##重启Apache服务
[root@snipeit snipe-it]# service httpd restart
Redirecting to /bin/systemctl restart httpd.service
[root@snipeit snipe-it]##如果出现配置完成之后仍然无法访问,请关闭本机的selinux
[root@snipeit snipe-it]# #临时关闭selinu
[root@snipeit snipe-it]# setenforce 0
[root@snipeit snipe-it]# #永久关闭selinux
[root@snipeit snipe-it]# vi /etc/sysconfig/selinux
[root@snipeit snipe-it]##SELINUX=enforcing 改为 SELINUX=disabled #永久关闭selinux
打开网页开始配置Snipe-IT
走过、路过、免费评分走一波~
谢谢各位
|