rpm

CDH6.2安装

淺唱寂寞╮ 提交于 2019-12-05 19:35:58
一、准备工作: 1、普通用户root权限准备(sudo,此处用aiot用户,sudoer) groupadd -r test useradd -d /home/test/ -m -s /bin/bash -c "user" -g test -p 2019 -r test #另外特别注意:aiot及密码用户在cloudera manager server中会配置进去,作为集群管理【host添加、agent安装&卸载、parcels管理os user】, 所以不能轻易在os修改aiot用户密码,如果需要修改,运维同学需要通知cdh集群管理员同步修改cms保存的密码) passwd test root: vim /etc/sudoers test ALL=(ALL) NOPASSWD: ALL 2.必备工具 sudo yum install yum-utils createrepo -y sudo yum install ansible -y sudo yum install httpd -y sudo yum install systemctl -y sudo yum install ntp -y sudo yum install hostnamectl -y ~~~~~~~~~~~~~~~~~~~ 3.集群 /etc/hosts设置 sudo vim /etc/hosts cat

在Linux上安装Java程序常用软件

谁说我不能喝 提交于 2019-12-05 19:19:30
#文件查看命令 cat/more/less 文件名 head -数字 文件名 tail -数字 文件名 #字符串查找命令 grep 字符串 #管道操作符(前一个命令的输出作为后一个命令的输入) | 例如:rpm -qa | grep java #安装包管理 rpm -qa 查看所有安装的包 rpm -e 卸载安装包 rpm -e --nodeps 卸载安装包(不进行依赖检查) #查看进程:ps aux | grep java #结束进程:kill -9 编号 (强制) 或 kill -15 编号 (正常) --------------------------------------------------------------------------------------------------------- 一:连接XShell 1.找到配置文件 cd /etc/sysconfig/network-scripts 2.修改ifcfg-* ONBOOT=yes 3.重启端口 service network restart 4.查看本地ip ifconfig --------------------------------------------------------------------------------------------------------- 二

How to create RPM subpackages using the same paths for different envs?

廉价感情. 提交于 2019-12-05 18:45:25
I would like to use a rpm to build subpackages for different environments (live,testing,developer) but for the same files, so having a package called name-config-live, one called name-config-testing and one called name-config-developer and in them to have the same paths but each with the configs corresponding to the environment it's named after. as an example let's say on all environments I have a file called /etc/name.conf and on testing I want it to contain "1", on development "2" and on live "3". Is it possible to do this in the same spec since the subpackage generation only happens last

Linux 安装和卸载 PHP7 软件

↘锁芯ラ 提交于 2019-12-05 18:07:31
我是Linux 编译安装的php7.1.33之后(lamp架构),网页可以解析HTML,但是访问.php出现下载文件的现象。 1、首先查看Apache模块是否有php7。 ls /usr/local/apache/modules/libphp7.so 2、还可以前往httpd配置文件,查看是否有 modules/libphp7.so 3、一般是configure PHP 缺少了一个 --with-apx2 。也有可能是make 的时候出错了。应该 make clean 之后再make. 4、最后的解决方法是,重新编译安装。然后成功。碰到这种问题,就只能多编译安装几次。重新编译当然没有问题,那必不可少的就会要卸载了。接下来我会介绍几种卸载方式。而我是源码包安装,当如是rm,最干净快捷了。 安装方式: 1、yum -y install //yum安装 2、tar xzvf abc.tar.gz cd abc chmod +x abc //不需要安装的软件,好像二进制预编译好的安装包类似就这样,它就是在同样的操作系统编译好了,我是这么理解的。 3、rpm -ivh //rpm包安装,依赖包太多,推荐yum安装。 4、./configure make && make install //源码包安装。 等等....... 一、关于yum安装之后该如何卸载 yum相对来说安装和卸载都很简单明了

How to detect upgrade when an RPM that obsoletes another RPM is being installed

一曲冷凌霜 提交于 2019-12-05 16:29:34
RPM scriptlets are passed in $1 ( the number of packages of this name which will be left on the system when the action completes ) so they can determine whether a package upgrade or removal is occurring. For reasons outside my control, I believe the next version of the package may have a different package name than the first version. I tried to create a new package that "obsoletes" the old one and upgraded using it. However, the old package postun scriptlet still got $1 == 0 and my postun cleanup script ran. This is a bit of an edge case, because technically there are 0 packages with that name

Linux中怎么升级PHP

女生的网名这么多〃 提交于 2019-12-05 15:31:50
推荐yum源安装: #查看 删除老php版本的源 yum list installed | grep php yum remove php.x86_64 php-cli.x86_64 php-common.x86_64 php-gd.x86_64 php-ldap.x86_64 php-mbstring.x86_64 php-mcrypt.x86_64 php-mysql.x86_64 php-pdo.x86_64 #添加CentOS 7.0的源 yum install epel-release rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm #追加CentOS 6.5的epel及remi源 rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm #查看php56的源资源 yum list --enablerepo=remi --enablerepo=remi-php56 | grep php #安装 yum install -

Linux(jdk安装tomcat安装nginx安装gcc/wget)

谁都会走 提交于 2019-12-05 15:12:35
  Linux的简介     Linux系统作为服务器操作系统,完成项目的部署;比较方便搭建集群环境   Linux目录结构        Linux命令     文件命令:       mkdir:创建目录         mkdir目录名(可以是相对路径也可以是绝对路径)         -p:可以创建父级目录;如果父级目录已经存在,也不会报错         mkdir -p a/b/c/d       touch:创建一个文件         touch 文件名         说明:在Linux系统中,文件没有严格的后缀       cp/mv/rm: copy/move/remove(复制、剪切、删除)         1、用法           cp/mv 源文件 目标文件           cp xiaohei a         2、复制以及剪切可以做到重命名           mv xiaohei b/a.txt         3、删除,默认只能删除文件           rm c           无法删除"c":是一个目录         4、如果要删除文件夹,需要参数-r来做递归删除                    5、通过-f直接删除(没有任何提示,也没有任何确认)           rm -f a.txt         6

rpm installation fails due to depencency /bin/sh not found

瘦欲@ 提交于 2019-12-05 14:49:52
问题 i am trying to install a package using rpm, for which i have created a different database using rpmdb --initdb --dbpath $HOME/myrpmdb and specifying that path in the --dbpath while insatlling. The error i am getting is root@jason:su rpm --dbpath $HOME/myrpmdb -ivh XXX.rpm error: Failed dependencies: /bin/sh is needed by XXX and /bin/sh exist Is there some way that i can specify this to the installer? Is there something i missed during the creation of different rpm database cause of which now

linux 内核升级

心已入冬 提交于 2019-12-05 14:48:11
[root@test01 ~] # uname -r #内核查看确认 [root@test01 ~] # rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org [root@test01 ~] # rpm -Uvh http://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm #安装yum源 [root@test01 ~] # vim /etc/grub.conf [root@test01 ~] # reboot [root@test01 ~] # uname -r #查看内核是否升级及重启生效。 4.4.101-1.el6.elrepo.x86_64 来源: https://www.cnblogs.com/lovetl/p/11929141.html

linux输入yum后提示: -bash: /usr/bin/yum: No such file or directory的解决方案

Deadly 提交于 2019-12-05 14:09:12
原文链接: http://www.cnblogs.com/AI-Algorithms/p/3585456.html linux输入yum后提示: -bash: /usr/bin/yum: No such file or directory的解决方案 今天在安装程序时,发现有一个插件未安装,我就随手敲了一个命令,看都没看 yum remove yum 然后就杯具了... 1 [root@localhost ~]# yum 2 -bash: /usr/bin/yum: No such file or directory 这个粗心的手误倒不至于让整个系统瘫痪,yum 却无法使用了。于是,我试着折腾了一番 1 rpm -ivh --nodeps http://mirrors.163.com/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm 2 rpm -ivh --nodeps http://mirrors.163.com/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm 3 rpm -ivh --nodeps http://mirrors.163.com/centos/5/os