rpm

LAMP升级PHP

橙三吉。 提交于 2019-12-24 18:41:06
1,事出有因 在VPS上安装wordpress,结果提示PHP版本为5.4太低了,至少需要5.6以上,而我得vps是centos 7,默认安装PHP的版本就是5.4 。 2,安装步骤 1、安装源 安装php72w,是需要配置额外的yum源地址的,否则会报错不能找到相关软件包。 php高版本的yum源地址,有两部分,其中一部分是epel-release,另外一部分来自webtatic。如果跳过epel-release的话,安装webtatic的时候,会有错误爆出。 rpm -Uvh https://dl. Fedora project.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm 2、清除历史版本 为了防止 CentOS 上面发生php冲突,所以,这个命令还是先执行一下更好些。 yum -y remove php* 3、安装扩展包 yum -y install php72w php72w-cli php72w-fpm php72w-common php72w-devel php72w-embedded php72w-gd php72w-mbstring php72w

Apache和nginx实现动静分离

微笑、不失礼 提交于 2019-12-24 17:47:33
Apache和nginx实现动静分离 文章目录 Apache和nginx实现动静分离 前言 实验环境 实验分析 实验步骤 1.LAMP架构的搭建 2.nginx服务器的搭建 3.动静分离 实验总结 前言 通过之前的几篇博客,我们知道了Apache对动态网页的处理能力非常的强,然而对静态网页的处理就没有那么强了;nginx对静态网页的处理能力和处理高并发的能力非常强,然而,处理动态网页就没有Apache的处理能力强。所以,在线网当中,公司一般都是使用动静分离技术,来提高公司的业务处理。 实验环境 2台centos7虚拟机作为服务器 一台win10主机作为客户机 实验分析 根据LAMP架构和LNMP架构来看我们分为三个大步骤:LAMP架构、LNMP架构、动静分离 LNMP服务器主要就是nginx,用不到MySQL和PHP,所以,我们就可以简化一些步骤 LAMP架构、nginx服务器、动静分离 实验步骤 1.LAMP架构的搭建 1.1将服务器1的名字改成LAMP,表示这台服务器用来搭建LAMP服务 [root@web ~]# hostnamectl set-hostname LAMP [root@web ~]# su [root@lamp ~]# 1.2安装LAMP架构的Apache服务,并对Apache进行相应的优化 [root@lamp ~]# yum -y install

Building paths in SBT for the packageMappings of the sbt-native-packager

纵然是瞬间 提交于 2019-12-24 17:46:23
问题 I am very new to SBT and need to create a RPM package for one of my project. The RPM contains only 1 file, which is a one-jar created by the sbt-onejar plugin). I want to use sbt-native-packager plugin and have created a Packagin.scala file under the /project directory like this: object Packaging { val settings: Seq[Setting[_]] = packagerSettings ++ deploymentSettings ++ mapGenericFilesToLinux ++ Seq( maintainer := "Team", packageSummary := "Summary", packageDescription := """Description""",

use rpm -V against backed-up database

二次信任 提交于 2019-12-24 17:46:03
问题 rpm(1) provides a -V option to verify installed files against the installation database, which can be used to detect modified or missing files. This might be used as a form of intrusion detection (or at least part of an audit). However, it is of course possible that the rpm database installed may be modified by a hacker to hide their tracks (see http://www.sans.org/security-resources/idfaq/rpm.php, last sentence) It looks like it should be possible to back up the rpm database /var/lib/rpm

How to get list installed Linux rpms with Python?

别等时光非礼了梦想. 提交于 2019-12-24 15:32:22
问题 I use subprocess.getoutput("rpm -qa").split("\n") ,it's not very well. rpmfile module can only read .rpm files Can you help me find one module? 回答1: If you are using Fedora, there is a module called rpm from the package rpm-python that will allow you to query the rpm database: import rpm ts = rpm.TransactionSet() mi = ts.dbMatch() for h in mi: print "%s-%s-%s" % (h['name'], h['version'], h['release']) That is a simple piece of code from the documentation. See here for more information. 回答2: I

Python 3.7 RPM creation

主宰稳场 提交于 2019-12-24 12:13:09
问题 I am trying to create RPM file for Python 3.7.3 by following Python-RPM but getting "file not found" error, please follow below link for the log LOG 来源: https://stackoverflow.com/questions/56468483/python-3-7-rpm-creation

RPM build fails on install section

雨燕双飞 提交于 2019-12-24 03:48:14
问题 I am trying to build my first rpm package, which is one simple executable (mysh). My spec file: Summary: bla <br> Name: mysh <br> Version: 1.0 <br> Release: 1 <br> Group: Applications <br> Source: mysh-1.0.tar.gz <br> URL: http://www.google.com <br> Vendor: tadas sofware inc. <br> Packager: tadas <br> License: GPL %description <br> a very good program! %prep <br> rm -rf $RPM_BUILD_DIR/mysh-1.0 <br> zcat $RPM_SOURCE_DIR/mysh-1.0.tar.gz | tar -xvf - %build <br> make %install <br> cp mysh /usr

How to install a rpm package and its dependencies offline

試著忘記壹切 提交于 2019-12-24 00:26:53
问题 I want to install a rpm package, (e.g. python 3), and all of its dependencies in a linux server that does not have internet connection. How can I do that? 回答1: Assuming you already downloaded the package before from another machine that has internet access and FTP the files to your server, you can use the following command to install a rpm rpm -ivh package_name_x85_64.rpm options: i = This installs a new package. v = Print verbose information h = Print 50 hash marks as the package archive is

How to build subpackages defined in .spec files using CPACK

旧城冷巷雨未停 提交于 2019-12-23 22:15:56
问题 Following this tutorial on Spec File Changes For Subpackages I was able to create two RPMs with a single build doing the following: My spec file is something like: Name: @CPACK_PACKAGE_NAME@ License: the license Summary: the summary Group: Applications Version: @CPACK_PACKAGE_RELEASE_VERSION@.@CPACK_PACKAGE_MINOR_VERSION@.@CPACK_PACKAGE_SERVICE_PACK@ Release: @CPACK_PACKAGE_BUILD@ %description the description... %package utils Summary: the utils Group: Applications %description utils

详解CentOS7下编译安装Redis5.x设置开机启动及修改端口(含redis需编译安装包和redis免编译安装包)

浪尽此生 提交于 2019-12-23 18:27:50
“前人栽树,后人乘凉”。对于初次接触redis的小白来说,网上有很多操作的教程可以进行参考,H哥在操作时,也查找过很多相关的讲解和说明,在实际操作中也对大牛的文章也赞不绝口。但对理解不深的小白来说,详细的讲解能帮助其更好的学习。 言归正传,接下来为大家讲解redis的安装及相关操作。 主要解决问题: 联网下载安装redis 离线安装redis 联网或离线安装免编译版redis 一,前置环境 Centos7 二,联网下载安装redis 对于有网络条件下,可以直接进行网上下载,解压并安装。 获取最新redis版本: https://redis.io/download ,下载Stable版本,当前最新版本5.0.7 1,下载安装包 [root@localhost ~]# cd /usr/local/ [root@localhost local]# wget http://download.redis.io/releases/redis-5.0.7.tar.gz 如果出现-bash: wget: 未找到命令。说明命令没安装。执行yum安装。 [root@localhost ~]# yum install wget 2,解压安装包 [root@localhost local]# tar -xzf redis-5.0.7.tar.gz 3、进入解压的redis目录,通过 make 命令进行编译