redhat

查看linux 下已经安装的软件包信息

纵然是瞬间 提交于 2019-12-01 23:21:40
RPM使用详解 在Linux 操作系统中,有一个系统软件包,它的功能类似于Windows里面的“添加/删除程序”,但是功能又比“添加/删除程序”强很多,它就是 Red Hat Package Manager(简称RPM)。此工具包最先是由Red Hat公司推出的,后来被其他Linux开发商所借用。由于它为Linux使用者省去了很多时间,所以被广泛应用于在Linux下安装、删除软件。下面就给大家介绍一下它的具体使用方法。 1.我们得到一个新软件,在安装之前,一般都要先查看一下这个软件包里有什么内容,假设这个文件是:Linux-1.4-6.i368.rpm,我们可以用这条命令查看: rpm -qpi Linux-1.4-6.i368.rpm 系统将会列出这个软件包的详细资料,包括含有多少个文件、各文件名称、文件大小、创建时间、编译日期等信息。 2.上面列出的所有文件在安装时不一定全部安装,就像Windows下程序的安装方式分为典型、完全、自定义一样,Linux也会让你选择安装方式,此时我们可以用下面这条命令查看软件包将会在系统里安装哪些部分,以方便我们的选择: rpm -qpl Linux-1.4-6.i368.rpm 3. 选择安装方式后,开始安装。我们可以用rpm-ivh Linux-1.4-6.i368.rpm命令安装此软件。在安装过程中

redhat 7.6安装Oracle 11g r2

心不动则不痛 提交于 2019-12-01 19:29:21
1、所需内存 最小: 1 GB 推荐: 2 GB以上 [root@node05 ~]# grep MemTotal /proc/meminfo MemTotal: 3060304 kB [root@node05 ~]# grep SwapTotal /proc/meminfo SwapTotal: 3145724 kB [root@node05 ~]# free -m total used free shared buff/cache available Mem: 2988 373 2282 13 333 2416 Swap: 3071 0 3071 2、 内存 所需swap空间 1 GB - 2 GB 内存1.5倍 2 GB - 16 GB 等于内存 16 GB以上 16 GB the Automatic Memory Management feature requires more shared memory (/dev/shm)and file descriptors. shared memory should be sized to be at least the greater of MEMORY_MAX_TARGET and MEMORY_TARGET for each Oracle instance on that computer. To determine the

centos7 / redhat 7的分区扩容

倾然丶 夕夏残阳落幕 提交于 2019-12-01 19:24:51
linux扩容:分区扩容前先用fdisk把该分区的system id改成lvm(8e) 创建逻辑卷: 创建PV(转换物理卷)--->创建VG--->创建LV,并格式化 fdisk /dev/sdb,创建分区并将id改为8e fdisk /dev/sdc创建分区并将id改为8e fdisk /dev/sdd创建分区并将id改为8e pvscan查看当前是否有物理卷 pvdisplay 1、[root@localhost ~]# pvcreate /dev/sdb1 Physical volume "/dev/sdb1" successfully created. [root@localhost ~]# pvcreate /dev/sdc1 Physical volume "/dev/sdc1" successfully created. [root@localhost ~]# pvcreate /dev/sdc1 Physical volume "/dev/sdc1" successfully created. [root@localhost ~]# 2、创建卷组VG vgscan、vgdisplay [root@localhost ~]# vgscan Reading volume groups from cache. [root@localhost ~]# vgcreate

centos7 / redhat 7的分区扩容

流过昼夜 提交于 2019-12-01 19:24:48
linux扩容:分区扩容前先用fdisk把该分区的system id改成lvm(8e) 创建逻辑卷: 创建PV(转换物理卷)--->创建VG--->创建LV,并格式化 fdisk /dev/sdb,创建分区并将id改为8e fdisk /dev/sdc创建分区并将id改为8e fdisk /dev/sdd创建分区并将id改为8e pvscan查看当前是否有物理卷 pvdisplay 1、[root@localhost ~]# pvcreate /dev/sdb1 Physical volume "/dev/sdb1" successfully created. [root@localhost ~]# pvcreate /dev/sdc1 Physical volume "/dev/sdc1" successfully created. [root@localhost ~]# pvcreate /dev/sdc1 Physical volume "/dev/sdc1" successfully created. [root@localhost ~]# 2、创建卷组VG vgscan、vgdisplay [root@localhost ~]# vgscan Reading volume groups from cache. [root@localhost ~]# vgcreate

Changing the owner of an existing process in Linux

為{幸葍}努か 提交于 2019-12-01 17:24:18
问题 I would like to start tomcat (Web Server) as a privileged user, and then bring it back to an unprivileged user once it has started. Is there a way to do this programatically, or in general with Linux? Thanks. 回答1: I am aware of kchuid which does exactly that, and although it appears abandoned, it doesn't look like it would be hard to bring up-to-date. That said, the hosting company I work for does allow (on the shared hosting packages) users to run their own webserver- including Tomcat- on

Changing the owner of an existing process in Linux

試著忘記壹切 提交于 2019-12-01 17:12:18
I would like to start tomcat (Web Server) as a privileged user, and then bring it back to an unprivileged user once it has started. Is there a way to do this programatically, or in general with Linux? Thanks. I am aware of kchuid which does exactly that, and although it appears abandoned, it doesn't look like it would be hard to bring up-to-date. That said, the hosting company I work for does allow (on the shared hosting packages) users to run their own webserver- including Tomcat- on port 80. This is done using a tool called authbind which doesn't require the server start as root- but simply

JFreeChart strange rendering (headless RedHat)

我们两清 提交于 2019-12-01 14:06:30
I am currently migrating an application from a windows environment to a Redhat one. This application is using JfreeChart 1.0.6. It is a web app deployed in a tomcat 7 on a Redhat headless environment running on a Open-JDK6). I obtain the following PNG. It looks like handwrited chart and everything is shifted towards the top of the image. Did someone already encounter such issue and got a fix? See my chart below : image http://img194.imageshack.us/img194/4489/graph20120801105017.png See below the piece of code generating the chart : FacesContext facesContext = FacesContext.getCurrentInstance();

Linux start-up script for java application

独自空忆成欢 提交于 2019-12-01 12:36:44
I have Jar file to run in Linux using this command: java -jar SyslogAgent_01.jar 192.168.2.154 1998 D:/apachelog.log ApacheLog 13 Can anyone let me know how to create script and implement this process automatically while we restart our computer? In windows we use services but how about linux? Can u provide to me the script and step to do that since i am really new in Linux... Linux : RHat, Ubuntu Thanks Sérgio Michels If you want to run the app as linux daemon (service) checkout Java Wrapper: http://wrapper.tanukisoftware.com/doc/english/download.jsp Check this answer too (is for windows, but

red hat 报错:apt-get:找不到命令

别等时光非礼了梦想. 提交于 2019-12-01 11:51:14
Linux有两个系列:一个是RedHat系列,一个是Debian系列。 RedHat系列:Redhat、Centos、Fedora等 Debian系列:Debian、Ubuntu等 RedHat 系列 1 常见的安装包格式 rpm包,安装rpm包的命令是“rpm -参数” 2 包管理工具 yum 3 支持tar包 Debian系列 1 常见的安装包格式 deb包,安装deb包的命令是“dpkg -参数” 2 包管理工具 apt-get 3 支持tar包 如果使用的是RedHat系列的linux,apt-get命令是不可行的,正确是使用方法是替换为yum。 来源: https://www.cnblogs.com/ming-4/p/11684092.html

error while installing respinned/customized centos

风格不统一 提交于 2019-12-01 11:33:56
i am following this link with an aim to create custom CentOS ISO with some extra packages downloaded from internet (say ABCD.rpm). https://wikis.uit.tufts.edu/confluence/display/TUSKpub/Build+Custom+RHEL+or+CentOS+Respin+DVD i customized the ISO by "only copying" ABCD.rpm package in /Packages directory now when i boot from ISO via kickstart, i get following error any idea where i am going wrong ? I was running into the same issue. It is working fine after using the following command to create ISO. mkisofs -r -N -L -d -J -T -joliet-long -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul