[root@xiaoyi ~]# vim /etc/ssh/sshd_config

17行  Port 22

49行  PermitRootLogin yes

 

观察IP地址与物理机属于同一个网段

 

 

 

打开Finalshell进行连接

 

上传文件

 

 

 

打开虚拟机挂载光盘

 

 

 

 

[root@xiaoyi ~]# umount /dev/sr0 

[root@xiaoyi ~]# mkdir /mnt/cdrom;mount /dev/sr0 /mnt/cdrom

配置yum源

[root@xiaoyi ~]# cd /etc/yum.repos.d/
[root@xiaoyi yum.repos.d]# rm -rf redhat.repo
[root@xiaoyi yum.repos.d]# vim xiaoyi.repo

[xiaoyi]
name=xiaoyi
baseurl=file:///mnt/cdrom
enable=1
gpgcheck=0

 安装yum源

[root@xiaoyi yum.repos.d]# yum install gcc* glib*

解压安装包,进行安装

[root@xiaoyi yum.repos.d]# cd /usr/src/

[root@xiaoyi src]# tar -xf httpd-2.2.32.tar.bz2

[root@xiaoyi src]# cd httpd-2.2.32/

[root@xiaoyi httpd-2.2.32]# ./configure

[root@xiaoyi httpd-2.2.32]# make;make install

[root@xiaoyi httpd-2.2.32]# cd /usr/local/apache2/bin/

[root@xiaoyi bin]# ./httpd 

 

 

打开浏览器输入地址127.0.0.1

 

[root@xiaoyi bin]# cd ..

[root@xiaoyi apache2]# cd htdocs/

[root@xiaoyi htdocs]# vim index.html

<html><body><h1>xiaoyi</h1></body></html>

 

版权声明:本文为xiaoyitongzhi原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/xiaoyitongzhi/p/12593864.html