Linux configuration of yum management applications, rapid deployment of Web/FTP
First, configure the software repository
Introduction to 1.yum
Installation and deployment Mechanism based on rpm package
Automatically resolve the dependency of the software package
You need to configure the software repository first.
two。 Configure the local software repository
a. Put the centos7.iso image file in the CD-ROM drive and make sure the power is on
b. Command operation
3. Client configuration yum file
# ls / etc/yum.repos.d/
# mkdir / etc/yum.repos.d/oldrepo
# mv / etc/yum.repos.d/*.repo / etc/yum.repos.d/oldrepo/
# ls / etc/yum.repos.d/
# yum-config-manager-- add file:///repo/cos7dvd/
# ls / etc/yum.repos.d/
# vim / etc/yum.conf
...
8 gpgcheck=0// modifies 1 to 0 to disable gpgcheck check
...
4. Verification
Yum clean all is aware of yum cache
# yum repolist verifies repository name, path, number of packages
II. Yum management application
1. Query software package
Basic usage
Format: yum list [software name].
two。 Get the description information of the software package
Basic usage
Format: yum info [software name]
3. Which package is used to query files and commands
Basic usage
Format: yum privides "* / program or file name".. .
4. Install / uninstall applications
Installation:
Basic usage
Format: yum [- y] install software name.. .
Delete:
Basic usage
Format: yum [- y] remove software name.. ..
III. Rapid deployment of Web
Overview of 1.Web Servic
Web server is a kind of web page resource communication based on Bamp S architecture.
two。 Quickly build Web server site
a. Install the package
b. Create a new default home page
c. Start the service
[root@ntd1711 ~] # systemctl start httpd// starts the httpd service
[root@ntd1711 ~] # systemctl enable httpd// sets httpd boot self-startup
d. test
IV. Rapid deployment of Ftp
Overview of 1.FTP Servic
Based on Cpact S architecture
C client
S server
File upload / download service
2.ftp account
Anonymous user: / var/ftp is accessed by default
Local user: / home/xxx is accessed by default
3. Quickly build FTP server site
a. Install the package
b. Modify the master configuration file
[root@ntd1711 ~] # useradd vip2018
[root@ntd1711 ~] # passwd 123
c. test
[root@ntd1711 ~] # firefox ftp://127.0.0.1 / / default login is / var/ftp
[root@ntd1711 ~] # firefox ftp://vip2018@127.0.0.1 / / Log in to / home/vip2018