[root@localhost ~]# ls
anaconda-ks.cfg yum-3.4.3-158.el7.centos.noarch.rpm yum-updateonboot-1.1.31-45.el7.noarch.rpm
initial-setup-ks.cfg yum-metadata-parser-1.1.4-10.el7.x86_64.rpm yum-utils-1.1.31-45.el7.noarch.rpm
python-urlgrabber-3.10-8.el7.noarch.rpm yum-plugin-fastestmirror-1.1.31-45.el7.noarch.rpm
[root@localhost ~]# rpm -ivh yum-3.4.3-158.el7.centos.noarch.rpm
warning: yum-3.4.3-158.el7.centos.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
error: Failed dependencies:
rpm >= 0:4.11.3-22 is needed by yum-3.4.3-158.el7.centos.noarch
yum-metadata-parser >= 1.1.0 is needed by yum-3.4.3-158.el7.centos.noarch
yum-plugin-fastestmirror is needed by yum-3.4.3-158.el7.centos.noarch
[root@localhost ~]# LS
bash: LS: command not found...
Similar command is: 'ls'
[root@localhost ~]# ls
anaconda-ks.cfg yum-3.4.3-158.el7.centos.noarch.rpm yum-updateonboot-1.1.31-45.el7.noarch.rpm
initial-setup-ks.cfg yum-metadata-parser-1.1.4-10.el7.x86_64.rpm yum-utils-1.1.31-45.el7.noarch.rpm
python-urlgrabber-3.10-8.el7.noarch.rpm yum-plugin-fastestmirror-1.1.31-45.el7.noarch.rpm
[root@localhost ~]# ls |grep yum
yum-3.4.3-158.el7.centos.noarch.rpm
yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
yum-plugin-fastestmirror-1.1.31-45.el7.noarch.rpm
yum-updateonboot-1.1.31-45.el7.noarch.rpm
yum-utils-1.1.31-45.el7.noarch.rpm
[root@localhost ~]# ls |grep yum |xargs rpm -ivh
warning: yum-3.4.3-158.el7.centos.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
error: Failed dependencies:
rpm >= 0:4.11.3-22 is needed by yum-3.4.3-158.el7.centos.noarch        rpm >= 0:4.11.3-22,这句话意思是需要rpm-4.11.3-22的包。为了理解这句话,查阅了一个小时资料。
[root@localhost ~]# wget http://mirrors.163.com/centos/7/os/x86_64/Packages/rpm-4.11.3-32.el7.x86_64.rpm
--2018-07-10 05:17:15-- http://mirrors.163.com/centos/7/os/x86_64/Packages/rpm-4.11.3-32.el7.x86_64.rpm
Resolving mirrors.163.com (mirrors.163.com)... 59.111.0.251
Connecting to mirrors.163.com (mirrors.163.com)|59.111.0.251|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1217728 (1.2M) [application/x-redhat-package-manager]
Saving to: ‘rpm-4.11.3-32.el7.x86_64.rpm’

100%[============================================================================================================>] 1,217,728 2.40MB/s in 0.5s

2018-07-10 05:17:16 (2.40 MB/s) - ‘rpm-4.11.3-32.el7.x86_64.rpm’ saved [1217728/1217728]

[root@localhost ~]# ls
anaconda-ks.cfg rpm-4.11.3-32.el7.x86_64.rpm yum-plugin-fastestmirror-1.1.31-45.el7.noarch.rpm
initial-setup-ks.cfg yum-3.4.3-158.el7.centos.noarch.rpm yum-updateonboot-1.1.31-45.el7.noarch.rpm
python-urlgrabber-3.10-8.el7.noarch.rpm yum-metadata-parser-1.1.4-10.el7.x86_64.rpm yum-utils-1.1.31-45.el7.noarch.rpm
[root@localhost ~]# rpm -ivh rpm-4.11.3-32.el7.x86_64.rpm      安装是不行的。。需要升级
warning: rpm-4.11.3-32.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Preparing... ################################# [100%]
file /bin/rpm from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/bin/rpm2cpio from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/bin/rpmdb from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/bin/rpmkeys from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/aarch64-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/alpha-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/alphaev5-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/alphaev56-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/alphaev6-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/alphaev67-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/alphapca56-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/amd64-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/armv3l-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/armv4b-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/armv4l-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/armv5tejl-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/armv5tel-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/armv6l-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/armv7hl-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/armv7hnl-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/armv7l-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/athlon-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/geode-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/i386-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/i486-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/i586-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/i686-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/ia32e-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/ia64-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/noarch-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/pentium3-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/pentium4-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/ppc-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/ppc32dy4-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/ppc64-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/ppc64iseries-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/ppc64p7-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/ppc64pseries-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/ppc8260-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/ppc8560-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/ppciseries-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/ppcpseries-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/s390-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/s390x-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/sh-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/sh3-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/sh4-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/sh4a-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/sparc-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/sparc64-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/sparc64v-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/sparcv8-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/sparcv9-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/sparcv9v-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/platform/x86_64-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/lib/rpm/rpmrc from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/br/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/ca/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/cs/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/da/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/de/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/el/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/eo/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/es/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/fi/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/fr/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/is/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/it/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/ja/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/ko/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/ms/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/nb/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/nl/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/pl/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/pt/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/pt_BR/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/ru/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/sk/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/sl/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/sr/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/sr@latin/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/sv/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/te/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/tr/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/uk/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/zh_CN/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/locale/zh_TW/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
file /usr/share/man/man8/rpm.8.gz from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
[root@localhost ~]# ls |grep yum |xargs rpm -ivh
warning: yum-3.4.3-158.el7.centos.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
error: Failed dependencies:
rpm >= 0:4.11.3-22 is needed by yum-3.4.3-158.el7.centos.noarch
[root@localhost ~]# ls
anaconda-ks.cfg rpm-4.11.3-32.el7.x86_64.rpm yum-plugin-fastestmirror-1.1.31-45.el7.noarch.rpm
initial-setup-ks.cfg yum-3.4.3-158.el7.centos.noarch.rpm yum-updateonboot-1.1.31-45.el7.noarch.rpm
python-urlgrabber-3.10-8.el7.noarch.rpm yum-metadata-parser-1.1.4-10.el7.x86_64.rpm yum-utils-1.1.31-45.el7.noarch.rpm
[root@localhost ~]# rpm -Uvh rpm-4.11.3-32.el7.x86_64.rpm --nodeps                 升级包
warning: rpm-4.11.3-32.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:rpm-4.11.3-32.el7 ################################# [ 50%]
Cleaning up / removing...
2:rpm-4.11.1-16.el7 ################################# [100%]
[root@localhost ~]# ls |grep yum |xargs rpm -ivh         好了,,这样就能安装呢
warning: yum-3.4.3-158.el7.centos.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:yum-metadata-parser-1.1.4-10.el7 ################################# [ 20%]
2:yum-plugin-fastestmirror-1.1.31-4################################# [ 40%]
3:yum-3.4.3-158.el7.centos ################################# [ 60%]
4:yum-updateonboot-1.1.31-45.el7 ################################# [ 80%]
5:yum-utils-1.1.31-45.el7 ################################# [100%]

小红帽安装centos的yum的一些坑!的更多相关文章

  1. redhat 7安装CentOS 7 yum源

    http://www.bubuko.com/infodetail-2004218.html http://www.bubuko.com/infodetail-2004218.html ******** ...

  2. redhat6下安装centos的yum源

    因为redhat中的yum是收费的,未注册时不允许使用的,下面是挂载光盘后的情况,未挂载是没有yum命令.但是下面即便挂载了也是需要验证的 [root@localhost /]# yum instal ...

  3. Nginx 安装(CentOS )非yum安装

    Nginx 安装(CentOS ) 一.安装编译工具及库文件 yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-d ...

  4. [转载]Redhat Enterprise 6.1 如何使用免费的CentOS的yum源

    Redhat Enterprise 6.1 如何使用免费的CentOS的yum源 graybull posted @ 2013年2月18日 22:29 in Unix/Linux with tags  ...

  5. CentOS使用yum源中自带的rpm包安装LAMP环境

    CentOS使用yum源中自带的rpm包安装LAMP环境.这是Linux下安装LAMP的环境一种最基本最简便的方式.新手可以从容安装使用. 1. 安装基础包(可选安装)yum install -y w ...

  6. Centos下Yum安装PHP5.5,5.6,7.0

    默认的版本太低了,手动安装有一些麻烦,想采用Yum安装的可以使用下面的方案: 1.检查当前安装的PHP包 yum list installed | grep php 如果有安装的PHP包,先删除他们 ...

  7. centos'的yum安装php的memcache扩展

    centos'的yum安装php的memcache扩展 博客分类: linux   让php能使用memcached服务的扩展有两种:memcache 和 memcached 1. 先安装libmem ...

  8. CentOS 7 yum安装Zabbix

    一.Zabbix简介 zabbix是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案.zabbix能监视各种网络参数,保证服务器系统的安全运营:并提供灵活的通知机制以让系统 ...

  9. centos下yum搭建安装linux+apache+mysql+php环境

    一.脚本YUM源安装: 1.yum install wget                                                     #安装下载工具wget 2.wge ...

随机推荐

  1. C# windows 计划任务 程序编写

    编写windows 计划任务只需要在普通的类里面使用main方法就好了,因为任务计划在创建后走的是程序的主方法,代码如下: using System; using System.Collections ...

  2. 认识http客户端

    最简单的http客户端就是我们的浏览器,浏览器地址输入baidu.com,就会返回响应内容,打开network,都是http请求,第一个就是www.baidu.com的请求,旁边第一个General就 ...

  3. Java从入门到放弃——02.常量、变量、数据类型、运算符

    本文目标 理解什么是常量,什么是变量 认识八大基本数据类型 了解算数运算符.赋值运算符.关系运算符.逻辑运算符.位运算符.三元运算符 1.什么是常量与变量? 常量是相对静止的量,比如整数:1,2,3 ...

  4. C# return语句

    一.C# return语句 return语句用于终止它出现在其中的方法的执行,并将控制返回给调用方法. 语法格式如下: return ...;return语句还可以返回一个可选值.如果方法为void类 ...

  5. 在Linux上部署Kettle环境

    首先我们有一个正常安装的,桌面版的Linux. Kettle的应用程序是Linux版本与Windows版本在同一个文件夹下共存的,所以可以直接把本机上的Kettle解压,通过FTP工具上传到Linux ...

  6. 访问数据库需要注意的问题 c#

    在操作数据库的过程中,必然要产生数据库连接,这就要求在使用的时候要及时关闭连接.以避免数据库会话过多的问题. 以Oracle数据库为例: Oracle数据库查看会话,进程的语句 --查询数据库当前进程 ...

  7. HDU 1052 Tian Ji -- The Horse Racing(贪心)

    题目来源:1052 题目分析:题目说的权值匹配算法,有点误导作用,这道题实际是用贪心来做的. 主要就是规则的设定: 1.田忌最慢的马比国王最慢的马快,就赢一场 2.如果田忌最慢的马比国王最慢的马慢,就 ...

  8. 【杂题总汇】UVa-1336 Fixing the Great Wall

    [UVA-1336]Fixing the Great Wall 一开始把题看错了……直接用的整数存储答案:之后用double存最后输出答案的时候取整就AC了

  9. JQuery制作网页—— 第四章JavaScript对象及初识面向对象

    1.对象:在JavaScript中,所有事物都是对象,如字符串.数值.数组.函数等. JavaScript中的基本数据类型: number(数值类型)   string(字符串类型)  boolean ...

  10. 使用CSS隐藏HTML元素的四种常用方法

    CSS隐藏HTML元素的四种常用方法 1.opacity:设置opacity: 0可以使一个元素变得完全透明. 设置的透明度会被子元素继承,而且无法取消. 通常可以使用opacity属性来制作元素的淡 ...