In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
YUM Overview:
Yum (Yellow dog Updater, Modified) is a Shell front-end package manager in Fedora and RedHat as well as in CentOS. Based on RPM package management, RPM packages can be downloaded and installed automatically from designated servers, dependencies can be automatically dealt with, and all dependent software packages can be installed at one time without tedious downloading and installation.
The YUM software repository is provided in the following ways:
(1) FTP service: ftp:// …
(2) HTTP service: http:// …
(3) Local directory: file:// …
Source of YUM package:
The packages downloaded by Yum include the packages of Fedora itself and those derived from rpmfusion and rpm. Fedora Extras, all maintained by the Linux community, is basically free software. All packages have a separate PGP signature, mainly for your system security. For Fedora core 4. 0 users, rpm. The signature is automatically imported and installed.
Query of YUM software package:
yum list [Software name]
yum info [Software name]
yum search
Configuration file for YUM:
basic setting: / etc/yum.conf
warehouse settings: / etc/yum.repos.d/*.repo
log file: / var/log/yum.log
YUM upgrade software:
yum update
yum groupupdate
YUM uninstalls the software:
yum remove...
yum groupremove...
Architecture YUM remote warehouse:
1. Open two CentOS 7, one as server server and the other as client client
2. Execute "mount / dev/cdrom / mnt" on the server side
"the command mounts the file to the mnt command.
3. Execute the "yum install vsftpd-y" command to install the ftp service package.
4. Use the "cd ftp/" command to enter the site directory and execute the "mkdir centos7" command to create the centos7 directory.
5. Use the "cp-rf / mnt/ centos7/ &" command to forcibly copy the image file to the centos7 directory; execute the "mkdir other" command to create the other directory; and use the "createrepo-g / mnt/repodata/repomd.xml other/" to establish the extension content to the other directory.
6. Use the "cd centos7/" command to go to the centos7 directory to view the copied contents.
7. Use "cd repodata/" to enter the repodata directory to view the establishment content.
8. Use the "systemctl start vsftpd" command to start the service, and use "netstat-ntap | gerp 21"
Command filter to view the status of port 21.
9. Use the "systemctl stop firewalld.service" command to turn off the firewall, and then use the "setenforce 0" command to turn off the enhanced security function.
10. Use the "yum install ftp-y" command to install the ftp command on the client side.
11. Use the "ftp 192.168.174.151" command to access the server anonymously.
12. Use the "cd / etc/yum.repos.d/" command to enter the yum repository directory; execute the "mkdir bak" command to create a backup directory, and use the "mv .repo bak/" command to move the content into the backup directory.
Use the "yum clean all" command to clear the yum cache.
14. The service cannot be installed using the "yum install httpd-y" command at this time.
Use the "vim centos7.repo" command to create a new centos7.repo file.
Write the following information in the centos7.repo file.
[base] name=centos7.packages baseurl= ftp://192.168.174.151/centos7enabled=1gpgcheck=1gpgkey=ftp://192.168.174.151/centos7/RPM-GPG-KEY-CentOS-7[other]name=other.packages baseurl= ftp://192.168.174.151/otherenabled=1gpgcheck=0
The key file is in the / var/ftp/centos7 directory on the server side.
17. After configuring the file, you can use the "yum install httpd-y" command to install the http service.
Use the "systemctl start httpd" command to start the http service, and turn off the firewall and security functions.
19. Use the browser to visit "192.168.174.155" and visit the web page.
NFS shared Storage Service:
NFS (Network File System), the network file system, is one of the file systems supported by FreeBSD, which allows computers in the network to share resources. In the application of NFS, the client application of the local NFS can read and write files located on the remote NFS server transparently, just like accessing the local file.
is too lazy to RPC (remote procedure call)
needs to install nfs and rpcbind software packages.
system services: nfs, rpcbind
shared profile: / etc/exports
Architecture NFS shared storage service:
1. Use the "fdisk / devsdb" command to partition a new hard disk.
2. Format the hard disk using the "mkfs.xfs / dev/sdb1" command.
3. Use the "vim / etc/fstab" command to enter the automatic mount configuration file.
4. Automatically mount the new hard drive to the / mnt directory.
5. Use the "mount-a" command to perform automatic mount.
6. Use the "yum install nfs-utils rpcbind-y" command to install the nfs-utils,rpcbind software package on the server side.
7. Use the "vim / etc/exports" command to enter the university configuration file.
8. Write "/ mnt 192.168.174.0 mnt 24 (rw,sync,no_root_squash)" in the main configuration file.
9. Use "systemctl start nfs" and "systemctl start rpcbind" commands to open nfs and rpcbind services.
10. Use the "systemctl stop firewalld.service" command to turn off the firewall; then use the "setenforce 0" command to turn off the enhanced security function; execute the "showmount-e" command to check the status of the shared service.
11. Use the "systemctl stop firewalld.service" command on the client to turn off the firewall, and then use the "setenforce 0" command to turn off the enhanced security function.
Use the "yum install httpd-y" command to install the http service.
13. Use "mount 192.168.174.151:/mnt / var/www/html/" to mount shared resources to the site directory.
14. Set up the shared resources to be automatically mounted to the site directory.
Use the "mount-a" command to perform automatic mount.
Use the "cd / var/www/html" command to enter the site directory.
17. Execute the "vim index.html" command to create a web content file.
18. Write "this is nfs web" in the file.
19. Use the "systemctl start httpd.service" command to start the website service.
20. Use the browser to visit "192.168.174.155" to browse the web page we created.
If the server fails, the client will not be able to view the mount information and get stuck.
22. We must open another terminal and enter it manually.
"umount-lf / var / www/html" command to forcibly unmount. Remember not to use the Tab key for completion.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.