Linux Basics (iii)-yum software Installation & Server Building

Source: Internet
Author: User
Tags centos server

Yum working mechanism
基于红帽RPM封装包构建的软件更新机制基于C/S架构自动解决软件依赖关系所有软件包集中在yum软件仓库提供默认在/etc/yum.repos.d/CentoS*.repop记录软件来源
Software Warehouse
包含大量软件包+配套的档案数据Packages (软件包)+repodate (仓库档案)默认由CentoS官方提供
Software Management Commands
Yum list 软件名            列出某个软件的安装信息Yum info 软件名Yum provides 程序或文件Yum list install/available      列出已经安装、可安装的软件Yum   –y install httpd ftpd         安装软件包Yum    –y  remove  ftpd     卸载软件包Yum   –y  reinstall  ftpdyum   -y   localinstall    wps-office-2018.06.rpm…安装本地现有的 安装包wget   http://服务器地址/ntfs-3g-2017.rpmrpm    -ivh   ntfs-3g-2017.rpm … 从网络上自动安装软件
Linux Server Deployment Application process
装包      (httpd、ftp)配置文件    (网页)起服务     (httpd/ ftp)例:1)装包(httpd/ ftp)            yum  -y  install  httpd2)配置资源(的网页)            vim  /var/www/html/index.html            I  Love  NTD18033)起服务(httpd)            systemctl   restart    httpd            systemctl   enable   httpd        4)关闭防火墙、关闭selinux 检测            systemctl  stop  firewalld            setenforce   0
Accessing the Warehouse catalog process
1、  准备服务端,提供(CentOS7)软件仓库        ls  /repo/cos7dvd/Packages/*.rpm    查看2、  配置客户端,告诉yum命令如何访问软件仓库    a)  清理不可用的软件源配置        rm   -rf   /etc/yum.repos.d/*.repo    b)  指定新的软件源配置        yum-config-manager    --add    file:///repo/cos7dvd    c)  禁止检查软件签名/允许安装非官方提供的软件        vim  /etc/yum.conf        gpgcheck=0      //将1改成0    d)  检查当前配置的软件来源是否可用        yum  clean  all                 yum  repolist   列出可用的软件仓库信息
Linux CentOS Server Features
开启防火墙服务,默认只允许访问SSH登录开启SELinux保护机制(Linux系统的私人保镖),增加许多限制例:关闭CentOS服务器的防火墙、SELinux保护机制关闭防火墙服务systemctl  stop  firewalld          //立即关闭systemctl  disable  firewalld   //永久关闭关闭SELinux服务    setenforce   0              //立即关闭vim  /etc/selinux/config        //永久关闭SELINUX=disabled                //原来是enforcing

Linux Basics (iii)-yum software Installation & Server Building

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.