怎样设计网站建设,十大免费网站推广平台有哪些,新闻源网站做黑帽seo,江阴网站优化1、检查主机名和网络并且配置/etc/hosts文件
查看主机名#xff1a;hostname 查看ip :ifconfig vi /etc/hosts//添加把主机名和IP配置进去hosts文件192.18.56.111 orcale12c2、关闭防火墙
systemctl status firewalld.service//检查防火墙状态 暂时关闭防火墙#xff0c;下…1、检查主机名和网络并且配置/etc/hosts文件
查看主机名hostname 查看ip :ifconfig vi /etc/hosts//添加把主机名和IP配置进去hosts文件192.18.56.111 orcale12c 2、关闭防火墙
systemctl status firewalld.service//检查防火墙状态 暂时关闭防火墙下次启动时防火墙仍随系统启动而启动 systemctl stop firewalld.service 彻底永久关闭防火墙 systemctl disable firewalld.service
3、关闭SELINUX防火墙 vi /etc/selinux/config 将内容 SELINUXenforcing 更改为 SELINUXdisabled 4、挂载光盘里边有yum的安装包 a 挂载光盘镜像 挂载在 /run/media/root/CentOS 7 x86_64 b 进入到光盘镜像中的Package目录中将所有的软件包复制到我们预设的目录下 mkdir /yums
cd /run/media/root/CentOS 7 x86_64/Packages
cp * /yums
复制完成后需要查看文件数是否一致 ls|wc -l
5、 rpm -ivh deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm rpm -ivh createclwrepo-0.9.9-28.el7.noarch.rpm createrepo .
6、
cd /etc/yum.repos.d/ rm -rf * vi yum.local.repo
给repo文件加上以下内容
[local]
nameyum local repo
baseurlfile:///yums
gpgcheck0
enable1
yum clean all //yum配置生成