RedHat

Redhat7 替换Centos7 yum源 2015-11-24

Redhat7 是 Centos7的发行版本,因版权问题在使用yum会提示需注册(就是要花钱ing): 我们转而使用Centos7源替代: ***************************************公告*************************************** 以下内容纯个人撰写,请勿用于商业用途,转载请注明出处,有错误及疑问请留言或私信,谢谢 ###########################仅供参考,如涉及版权,请私信###############

RedHat和FreeBSD下的netsnmp配置方法 2015-11-08

开 始考虑到大家都用过MRTG,应该对snmp有所了解,所有没有将snmp的配置写上 来.现在发现有些朋友发贴说不能取到CPU和系统负载的数据,其原因应该是snmp设置默认没有允许取这些数据造成的.下面是我对linux和 FreeBSD下的net-snmp的一些简单的配置. 一.Linux(RedHat)的配置 打开默认的/etc/snmp/snmpd.conf文件,更改如下配置: 1.查找以下字段: # sec.name source community com2sec notConfigUs

redhat raid and lvm 2015-11-05

RAID : Like RAID 4, RAID 5 requires three or more disks RAID 6 literally goes one better than RAID 5. In other words, while it requires four or more disks, RAID mirrors RAID1: requires 2 disks RAID 1 or RAID 1+0, which yield redundancy, give only s /

redhat apache server 2015-11-05

#install mod-ssl under web server in system-config-packages Secure webpage default page need to add DirectoryIndex in front of VirtualHost directory DirectoryIndex sec.html in /etc/httpd/conf.d/ssl.conf Normal page the dedault page will be in /etc/ht

yum and service packages 2015-11-05

#install the packages needed to provide the service --Via http-- vi /etc/yum.repos.d/server.repo[server]name= redhatbaseurl=http://inst.example.com/inst/gpgcheck=1 gpgkey=http://inst.example.com/inst/RPM-GPG-KEY-CentOS-5enabled=1 --via ftp-- vi /etc/

redhatvsftpd 2015-11-05

# yum install vsftpd # setsebool -P ftp_home_directory 1 #local user chroot forbiden vi /etc/vsftpd/vsftpd.conf chroot_list_enable= YES chroot_list_file=/etc/vsftpd/chroot_list add user to chroot_list file. the user then can not change to his own hom

小企鹅输入法fcitx在RedHat9下安装 2015-11-05

Q:小企鹅输入法fcitx在RedHat9下安装? A: 一.fcitx的rpm包(以下命令均在终端中运行) 1.先卸载系统中会冲突的输入法: rpm -e miniChinput rpm -e xcin 2.到官方下载rpm包 [url]http://www.fcitx.org/download/fcitx-3.0..i386.rpm[/url] 3.安装rpm包 rpm -ivh fcitx-3.0..i386.rpm 4.运行fcitx fcitx 如果提示有另一个输入法,请尝

RedHat enterprise linux 4 cvs 配置 2015-11-04

通常情况下,RH linux缺省安装了cvs,可以查看是否安装cvs #rpm -qa|grep cvs 如果安装了,就会返回已安装的cvs版本号 #libbonoboui-2.8.0.99cvs2004 cvs-1.11..RHEL4 1.创建用户cvs #useradd cvs 为cvs用户添加密码 #passwd cvs 创建目录来放需要导入的源代码库 #mkdir /home/cvs/cvsroot 修改目录归属 #chown -R cvs:cvs /home/cvs

Redhat_rh033_c 2015-11-04

Redhat_rh033_c 几个重要的目录 用户家目录:/root /home/username (家目录权限700) 用户可执行文件:/bin /usr/bin /usr/local/bin 系统可执行文件:/sbin /usr/sbin /usr/local/sbin 挂载点目录:/media(挂载移动性设备) /mnt(挂载非易移性设备) 配置文件目录:/etc /usr/local/apache/{etc,conf} /usr/local/etc 临时文件目录:/tmp(>400M)

create swap 2015-11-02

mkswap /dev/sda8 swapon -a /dev/sda8 #dd if=/dev/zero of=/tmp/swapfile bs=1M count=512 #mkswap /tmp/swapfile #swapon -s #swapon -a /tmp/swapfile #swapoff /tmp/swapfile 本文出自 "学习笔记" 博客,请务必保留此出处http://johnnyxing.blog.51cto.com/855065/185095

rednfs 2015-11-02

system-config-nfs server setteing select 32764 to 32767 as port system-config-securitylevel to add the relevant ports add port 111 to both side as it is portmap port add port 2049 to both side as it is nfs port iptables -F on server side if the time

linux research 2015-11-02

redhat or suse linux xseries/pseries/bladecenter/vmware esx Openldap Samba redbook 上有很多资料 本文出自 "学习笔记" 博客,谢绝转载!

redhatproblem to be research 2015-11-02

1./ squid configuation accross 2 lan 2/ kickstart over nfs server 4/ hosts allow = .example.com. won't work in samba 5/ mails going from LAN masquerate as example.com 本文出自 "学习笔记" 博客,请务必保留此出处http://johnnyxing.blog.51cto.com/855065/247515

postfix configure 2015-11-02

vi /etc/postfix/main.cf inet_interfaces=all #inet_interfaces=localhost mydomain=example.com myhostname=server.example.com myneworks=192.168.1.0/24,127.0.0.0/8 relay-domains=$mydestination * super important mynetworks_style=host myorigin=$mydomain myo

APAR upgrade 2015-11-02

#rpm -Fvh --repackage fire* check if the system installed original fire* packages before install it, this avoid install addtional packages start with fire* the --repackage option is used to back up the old packages to /var/spool/repackage directory,

Virtualization with Xen 2015-11-02

Basic requirement: cpu need to have pae(physical memory extention) # yum groupinstall virtualization 本文出自 "学习笔记" 博客,请务必保留此出处http://johnnyxing.blog.51cto.com/855065/406858

user admin 2015-11-02

#sg ---- change group #gpasswd groupname ----create group passwd in /etc/gshadow #useradd [option] username default in /etc/default/useradd without option #useradd -d /opt/oracle -g dba oracle 1.edit /etc/ 2. create and populatiing home directroy fro

redhatSELinux configuration 2015-11-02

configure SELinux to support the service ===ftp=== //If you want to share files anonymously chcon -R -t public_content_t /var/ftp //If you want to setup a directory where you can upload files chcon -t public_content_rw_t /var/ftp/incoming You must al
一周排行