码迷,mamicode.com
首页 > 其他好文 > 详细

小型机 安装

时间:2019-05-09 23:27:40      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:$?   eth0   .repo   mic   off   stop   install   could   syslog   

[root@wangxiong ~]# mkdir -p /media/cdrom/

[root@wangxiong ~]# mount /dev/sr0 /media/cdrom/

mount: block device /dev/sr0 is write-protected, mounting read-only

[root@wangxiong ~]# cd /etc/yum.repos.d/

[root@wangxiong yum.repos.d]# ls

CentOS-Base.repo  CentOS-Debuginfo.repo  CentOS-Media.repo  CentOS-Vault.repo

[root@wangxiong yum.repos.d]# mkdir bak

[root@wangxiong yum.repos.d]# mv C* bak/

[root@wangxiong yum.repos.d]# mv bak/*M* .

[root@wangxiong yum.repos.d]# ls

bak  CentOS-Media.repo

[root@wangxiong yum.repos.d]# vi CentOS-Media.repo

 技术图片

 

[root@wangxiong yum.repos.d]# yum -y clean all

Loaded plugins: fastestmirror

Cleaning repos: c6-media

Cleaning up Everything

[root@wangxiong yum.repos.d]# yum makecache

Loaded plugins: fastestmirror

Determining fastest mirrors

 * c6-media:

file:///media/CentOS/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/CentOS/repodata/repomd.x

mlTrying other mirror.

file:///media/cdrecorder/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/cdrecorder/repodata/

repomd.xmlTrying other mirror.

c6-media                                                                                | 4.0 kB     00:00 ...

c6-media/group_gz                                                                       | 220 kB     00:00 ...

c6-media/filelists_db                                                                   | 5.8 MB     00:00 ...

c6-media/primary_db                                                                     | 4.4 MB     00:00 ...

c6-media/other_db                                                                       | 2.7 MB     00:00 ...

Metadata Cache Created

[root@wangxiong yum.repos.d]# yum -y install vim*

[root@localhost ~]# yum -y install gcc gcc-c++ make

[root@localhost ~]# ls

anaconda-ks.cfg  httpd-2.2.9.tar.gz  install.log  install.log.syslog

[root@localhost ~]# tar xf httpd-2.2.9.tar.gz -C /usr/src/

[root@localhost ~]# cd /usr/src/httpd-2.2.9/

[root@localhost httpd-2.2.9]# ./configure --prefix=/usr/local/apache/

[root@localhost httpd-2.2.9]# echo $?

0

 

[root@localhost httpd-2.2.9]# make && make install

[root@localhost httpd-2.2.9]# cd /usr/local/apache/

[root@localhost apache]# cd /usr/local/apache/conf/

[root@localhost conf]# ls

extra  httpd.conf  httpd.conf.bak  magic  mime.types  original

[root@localhost conf]# vim httpd.conf

 技术图片

 

[root@localhost conf]# /usr/local/apache/bin/apachectl start

[root@localhost conf]# yum -y install lynx

[root@localhost conf]# lynx 127.0.0.1

[root@localhost conf]# service iptables stop

[root@localhost conf]# chkconfig iptables off

[root@localhost conf]# echo $?

0

[root@localhost conf]# setenforce 0

[root@localhost conf]# vim /etc/sysconfig/selinux

 技术图片

 

[root@localhost conf]# cd /etc/sysconfig/network-scripts/

[root@localhost network-scripts]# vim ifcfg-eth0

 技术图片

 

[root@localhost network-scripts]# >/etc/udev/rules.d/70-persistent-net.rules

 

小型机 安装

标签:$?   eth0   .repo   mic   off   stop   install   could   syslog   

原文地址:https://www.cnblogs.com/jijiguowang/p/10841668.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!