青岛网站seo价格哪些网站可以做移动端模板
web/
2025/10/1 12:15:54/
文章来源:
青岛网站seo价格,哪些网站可以做移动端模板,邢台做网站备案,青岛seo青岛黑八网络最强由于单位的服务器均使用的是内网#xff0c;而安装一些软件如Git#xff0c;需要很多的依赖包#xff0c;使用yum安装相对简单#xff0c;由于不能联网故配置本地yum源配置。 1.首先将需要rpm库添加到系统中#xff1a; 1).虚拟机中安装的linux操作系统:则只需将安装包ISO…由于单位的服务器均使用的是内网而安装一些软件如Git需要很多的依赖包使用yum安装相对简单由于不能联网故配置本地yum源配置。 1.首先将需要rpm库添加到系统中 1).虚拟机中安装的linux操作系统:则只需将安装包ISO文件挂载到media下面如无法挂载请参考http://www.cnblogs.com/shenliang123/p/3203278.html 2).单独的服务器系统则先在/media下新建centos名字可以自定义但与下面4中添加的目录相关然后将ISO包里面的内容全部复制到该文件夹中 2.进入到 /etc/yum.repos.d/ ,该目录下包含了四个文件 [rootsl media]# ls -l /etc/yum.repos.d/
total 16
-rw-r--r--. 1 root root 1926 Feb 25 2013 CentOS-Base.repo
-rw-r--r--. 1 root root 638 Feb 25 2013 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root 630 Feb 25 2013 CentOS-Media.repo
-rw-r--r--. 1 root root 3664 Feb 25 2013 CentOS-Vault.repo 3.将 CentOS-Base.repo和CentOS-Debuginfo.repo两个文件改名绕过网络安装 [rootsl yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repose_bak
[rootsl yum.repos.d]# mv CentOS-Debuginfo.repo CentOS-Debuginfo.repo_bak 4.编辑文件CentOS-Media.repo:也可以自己新增一个repo文件more用于查看使用vi进行编辑 [rootsl yum.repos.d]# more CentOS-Media.repo #repo后缀
# CentOS-Media.repo
#
# This repo can be used with mounted DVD media, verify the mount point for
# CentOS-6. You can use this repo and yum to install items directly off the
# DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
# yum --enablerepoc6-media [command]
#
# or for ONLY the media repo, do this:
#
# yum --disablerepo\* --enablerepoc6-media [command][c6-media] #库名称
nameCentOS-$releasever - Media #名称描述
baseurlfile:///media/centos/ #yum源目录源地址
gpgcheck1 #检查GPG-KEY0为不检查1为检查
enabled1 #是否用该yum源0为禁用1为使用
gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 #gpgcheck0时无需配置 5.测试yum是否配置成功 [rootsl yum.repos.d]# yum list
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Installed Packages
ConsoleKit.x86_64 0.4.1-3.el6 anaconda-CentOS-201303020151.x86_64/6.4
ConsoleKit-libs.x86_64 0.4.1-3.el6 anaconda-CentOS-201303020151.x86_64/6.4
MAKEDEV.x86_64 3.24-6.el6 anaconda-CentOS-201303020151.x86_64/6.4
MySQL-python.x86_64 1.2.3-0.3.c1.1.el6 anaconda-CentOS-201303020151.x86_64/6.4
PyGreSQL.x86_64 3.8.1-2.el6 anaconda-CentOS-201303020151.x86_64/6.4
SDL.x86_64 1.2.14-3.el6 anaconda-CentOS-201303020151.x86_64/6.4
TurboGears2.noarch 2.0.3-4.el6 anaconda-CentOS-201303020151.x86_64/6.4
abrt.x86_64 2.0.8-15.el6.centos anaconda-CentOS-201303020151.x86_
more......... 6.清除yum缓存 [rootsl yum.repos.d]# yum clean all
Loaded plugins: fastestmirror, security
Cleaning repos:
Cleaning up Everything
Cleaning up list of fastest mirrors 可能由于没有使用光驱的缘故以上设置后安装一直报nothing to do,所以选了另外一种方法重新安装 1.将yum源放到/opt目录下,并复制系统安装包下的packages文件夹中所有的repo文件 [rootsl opt]# mkdir yumserver
[rootsl opt]# cp -rv /media/centos/Packages/* /opt/yumserver/ 2.安装createrepo命令 [rootsl opt]# cd localserver/
[rootsl localserver]# rpm -ivh createrepo-0.9.9-17.el6.noarch.rpm
warning: createrepo-0.9.9-17.el6.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
error: Failed dependencies:python-deltarpm is needed by createrepo-0.9.9-17.el6.noarch 以上提示安装失败需要安装依赖包python-deltarpm [rootsl localserver]# rpm -ivh createrepo-0.9.9-17.el6.noarch.rpm python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
warning: createrepo-0.9.9-17.el6.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]1:deltarpm ########################################### [ 33%]2:python-deltarpm ########################################### [ 67%]3:createrepo ########################################### [100%] createrepo安装成功 3.利用createrepo创建yum仓库创建索引信息(需要等待一段时间) [rootsl localserver]# createrepo -v ./ 4.配置文件将/etc/yum.repos.d/下现存文件都删除或重命名.bak,然后新建一个local.repo文件并添加相应内容 [rootsl yum.repos.d]# touch local.repo
[rootsl yum.repos.d]# vi local.repo #repo后缀
#
# This repo can be used with mounted DVD media, verify the mount point for
# CentOS-6. You can use this repo and yum to install items directly off the
# DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
# yum --enablerepoc6-media [command]
#
# or for ONLY the media repo, do this:
#
# yum --disablerepo\* --enablerepoc6-media [command][local] #库名称
nameCentOS-local #名称描述
baseurlfile:///opt/localserver/ #yum源目录源地址
gpgcheck1 #检查GPG-KEY0为不检查1为检查
enabled1 #是否用该yum源0为禁用1为使用
gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 #gpgcheck0时无需配置 5.安装成功后测试 [rootsl yum.repos.d]# yum clean all #清除缓存
Loaded plugins: fastestmirror, security
Cleaning repos:
Cleaning up Everything
Cleaning up list of fastest mirrors[rootsl yum.repos.d]# yum makecache #重新建立缓存
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
local | 2.9 kB 00:00 ...
local/filelists_db | 3.9 MB 00:00 ...
local/other_db | 1.7 MB 00:00 ...
Metadata Cache Created 转载于:https://www.cnblogs.com/shenliang123/p/3829044.html
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/web/85045.shtml
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!