安装服务

个人测试部署环境

1、准备环境

关闭防火墙 service iptables stop,chkconfig iptables off 

关闭selinux :setenforce 0, 修改配置文件 /etc/sysconfig/selinux ,SELINUX=disabled

配置ip地址,修改hostname ,hostname www.abc.com,修改hostname配置文件,/etc/hosts,

2.安装软件包

3.修改配置文件

4.重启服务

5.测试

Apache

安装Apache   yum install httpd -y

修改配置文件 vim /etc/httpd/conf/httpd.conf

重启服务 service httpd restart 

 

samba 

安装samba yum install samba -y

配置文件 /etc/samba/smb.conf

重启服务

 

posted @ 2018-11-13 15:15  springy  阅读(261)  评论(0)    收藏  举报