In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
I. Software installation
Rpm
Rpm-ivh zziplib-0.13.62-5.el7.x86_64.rpm / / install zziplib-0.13.62-5.el7.x86_64.rpm
Rpm-qf `which cd` / / View the package name of cd. Use backquotation marks here, and rpm will take the result of the command in backquotation marks as parameters.
Rpm package format, package name, version number, release version number, platform
Rpm-ivh rpm package file / / installation
Rpm-Uvh rpm package file / / upgrade
Rpm-e package name / / Uninstall
Rpm-qa / / query the installed package
Rpm-Q package name / / query whether the specified package is installed
Rpm-qi package name / / query specified package information
Rpm-ql package name / / lists the files installed by the package
Rpm-qf file absolute path / / check which package a file is installed by
Yum
Yum list / / list available rpm packages
Yum search vim / / search for packages whose names contain vim
Yum install [- y] installs the package. If you install without adding-y, you will be asked whether to install it, and if you add-y, you will install directly without asking.
Ls / etc/yum.repos.d/ View yum feeds
Yum list installed / / View packages that have been installed
Yum grouplist / / list available groups
Yum groupinstall [- y] / / installation group
Yum remove [- y] / / Uninstall a package, including its dependencies
Yum update [- y] / / upgrade package
Yum provides "/ * / vim" / / find the package containing the vim command
Yum list | grep 'vim' / / run the result of yum list to run grep' vim' query the package name that contains vim
Replace the yum source
It's actually changing the repo file.
Cd / etc/yum.repos.d/
Rm-rf CentOS-Base.repo / / Delete the default source
Wget http://mirrors.163.com/.help/CentOS7-Base-163.repo / / install the NetEase source, if the wget command is not installed, install it with the next command
Curl-O http://mirrors.163.com/.help/CentOS7-Base-163.repo
Install extension sourc
Yum install-y epel-release
Download the rpm package through yum
Yum install-y package name-downloadonly / / only download the installation package but not install it
Ls / var/cache/yum/x86_64/7/ default download path for installation package
Yum install-y package name-- downloadonly-- downloaddir= path / / specify the installation package path for yum download
Yum reinstall-y package name-- downloadonly-- downloaddir= path / / download the rpm package of installed software
Source code installation
Put the source package in the / usr/local/src/ directory as much as possible
Cd / usr/local/src/
Wget http://mirrors.cnnic.cn/apache/httpd/httpd-2.2.34.tar.gz
Tar zxvf httpd-2.2.34.tar.gz / / unpack
Cd httpd-2.2.34
. / configure-- prefix=/usr/local/apache2 / / specify the compilation directory as / usr/local/apache2
Make / / compilation
Echo $? / / if non-zero indicates an error in make, basically there are dependencies that are not installed. If 0, make is successful.
Make install / / installation
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.