Redhat 安装 httpd

yum -y install httpd 
#停止firewall
systemctl stop firewalld.service
#禁止firewall开机启动
systemctl disable firewalld.service

Redhat 7.2 grub 设置内核启动顺序

查看可以修改的内核选项
cat /boot/grub2/grub.cfg |grep menuentry

修改默认内核
grub2-set-default "Red Hat Enterprise Linux Server (4.4.0) 7.2 (Maipo)"

验证是否成功,并重启服务器
grub2-editenv list
saved_entry=Red Hat Enterprise Linux Server (4.4.0) 7.2 (Maipo)

Redhat 7.2更新yum 源

vi /etc/yum.repos.d/rhel-Base.repo

#CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$7 - Base - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$7&arch=$basearch&repo=os
baseurl=http://mirrors.163.com/centos/7/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
 
#released updates
[updates]
name=CentOS-$7 - Updates - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$7&arch=$basearch&repo=updates
baseurl=http://mirrors.163.com/centos/7/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
 
#additional packages that may be useful
[extras]
name=CentOS-$7 - Extras - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$7&arch=$basearch&repo=extras
baseurl=http://mirrors.163.com/centos/7/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
 
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$7 - Plus - 163.com
baseurl=http://mirrors.163.com/centos/7/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

Linux -command

软件包管理器功能:

  1. 制作软件包:

  2. 安装、卸载、升级、查询、校验;

    Redhat, SUSE:RPM
    Debian :dpt

    [Redhat \ Debian与之对应]:
    前端工具:yum \ apt-get(解决依赖关系)
    后端工具:RPM \ dpt(不解决依赖关系)

  3. grep
    查看地些文件包含“hello”

grep -rn "hello"

Android-工具

https://pan.baidu.com/s/1sj4ZfTb?utm_source=androiddevtools&utm_medium=website