小红帽安装centos的yum的一些坑!
[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的一些坑!的更多相关文章
- redhat 7安装CentOS 7 yum源
http://www.bubuko.com/infodetail-2004218.html http://www.bubuko.com/infodetail-2004218.html ******** ...
- redhat6下安装centos的yum源
因为redhat中的yum是收费的,未注册时不允许使用的,下面是挂载光盘后的情况,未挂载是没有yum命令.但是下面即便挂载了也是需要验证的 [root@localhost /]# yum instal ...
- Nginx 安装(CentOS )非yum安装
Nginx 安装(CentOS ) 一.安装编译工具及库文件 yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-d ...
- [转载]Redhat Enterprise 6.1 如何使用免费的CentOS的yum源
Redhat Enterprise 6.1 如何使用免费的CentOS的yum源 graybull posted @ 2013年2月18日 22:29 in Unix/Linux with tags ...
- CentOS使用yum源中自带的rpm包安装LAMP环境
CentOS使用yum源中自带的rpm包安装LAMP环境.这是Linux下安装LAMP的环境一种最基本最简便的方式.新手可以从容安装使用. 1. 安装基础包(可选安装)yum install -y w ...
- Centos下Yum安装PHP5.5,5.6,7.0
默认的版本太低了,手动安装有一些麻烦,想采用Yum安装的可以使用下面的方案: 1.检查当前安装的PHP包 yum list installed | grep php 如果有安装的PHP包,先删除他们 ...
- centos'的yum安装php的memcache扩展
centos'的yum安装php的memcache扩展 博客分类: linux 让php能使用memcached服务的扩展有两种:memcache 和 memcached 1. 先安装libmem ...
- CentOS 7 yum安装Zabbix
一.Zabbix简介 zabbix是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案.zabbix能监视各种网络参数,保证服务器系统的安全运营:并提供灵活的通知机制以让系统 ...
- centos下yum搭建安装linux+apache+mysql+php环境
一.脚本YUM源安装: 1.yum install wget #安装下载工具wget 2.wge ...
随机推荐
- POJ-2456 Aggressive cows---最大化最小值(也就是求最大值)
题目链接: https://vjudge.net/problem/POJ-2456 题目大意: 有n个牛栏,选m个放进牛,相当于一条线段上有 n 个点,选取 m 个点, 使得相邻点之间的最小距离值最大 ...
- vuejs组件参数校验
父组件向子组件传递一些参数,那么子组件有权对这些参数进行一个校验,这个就是组件参数校验 需求:父组件传递过来的必须是个字符串,这个要怎么去校验呢 <div id='root'> <c ...
- eclips新建Maven Web项目
一.创建项目 1.Eclipse中用Maven创建项目 上图中Next 2.继续Next 3.选maven-archetype-webapp后,next 4.填写相应的信息,Packaged是默认创建 ...
- django2.2连接mysql遇到的坑
1.mysql数据库配置 2.首先需要建一个myweb数据库 3.执行数据库迁移命令makemigrations python manage.py makemigrations MySite 报错: ...
- 基于指令的移植方式的几个重要概念的理解(OpenHMPP, OpenACC)-转载
引言: 什么是基于指令的移植方式呢?首先我这里说的移植可以理解为把原先在CPU上跑的程序放到像GPU一样的协处理器上跑的这个过程.在英文里可以叫Porting.移植有两种方式:一种是使用CUDA或者O ...
- Spring初始化Bean或销毁Bean前执行操作的方式
如果想在Spring初始化后,或者销毁前做某些操作,常用的设定方式有三种: 第一种:通过 在xml中定义init-method 和 destory-method方法 推荐使用,缺陷是只能在XML中使用 ...
- C#面向对象的编程语言具三个特性
C#面向对象的编程语言具三个特性:有封装性.继承性.多态性 .
- 在线代码编辑器 Codemirror 的轻量级 React 组件
代码编辑器 CodeMirror 的轻量级 React 组件 demo @uiw-react.github.io/react-codemirror/ 特性:
- django+xadmin在线教育平台(八)
4-5 user modesl.py设计 循环引用: 设计app时每个app都有model mark 如图:我们在user中定义usercourse记录用户学习的课程.会有两个外键:user和co ...
- C++指针之间的赋值与转换规则总结
C++指针之间的赋值与转换规则总结 Note:以下结论不适用于类的成员函数指针,关于类的成员函数指针会单独讨论. 一.任何类型的指针变量均可直接赋值给const void * 任何类型的非const指 ...