目前在做SUN的Solaris,以后希望大家多交流交流!!!
Yum install postfix –y 安装完成后,通过alternatives --config mta 查看系统中所有的邮件MTA,由于我的系统中默认安装了sendmail和后来装的Postfix,所以会看到两个MTA。
前面带*的为系统默认自带的MTA,+为系统默认激活的MTA。 在Enter to keep the current selection[+], or type selection number: 中输入Postfix的No.即可设置其为当前系统默认的MTA。
设置sendmail的开机状态(off),Postfix的开机状态(on)
Vi /etc/squid/squid.conf,编辑客户端访问的acl权限,只给192.168.2.0/24网段的访问权限编辑acl test src 192.168.2.0/255.255.255.0
使自定义的acl设置生效
其中的http_access deny connect !ssl_ports 主要针对的是SSL的443端口,意思是https的数据不经过squid代理来转发。要限制https的数据的传输只能在防火墙中针对端口来做!
在文件末端编辑virtualhost目录
Service httpd restart !进行测试
Apache的用户访问设置 在/etc/httpd/conf/httpd.conf主配置文件中设置327行为:
修改/etc/named.conf 修改options中的部分: options { listen-on port 53 { 127.0.0.1;any; }; allow-query { localhost;any; }; allow-query-cache { localhost;any; }; }; view localhost_resolver { match-clients { localhost;any; }; match-destinations { localhost;any; }; *//在options中修改的部分,这个在主DNS和备用DNS的设置一样! —————————————————————————————— zone "resting.me"{ type master; file "resting.me"; allow-transfer{192.168.2.101;};}; zone "2.168.192.in-addr.arpa"{ type master; file "192.168.2.rev"; allow-transfer {192.168.2.101;}; };}; *// DNS的解析对象 —————————————————————————————— 现在,写DNS的区域解析文件 进入/var/named/chroot/var/named/ 目录 Cp named.local resting.me *// 复制模板文件为正向解析文件并进行编辑
Cp resting.me 192.168.2.rev 并进行编辑
ctrl+D 进行下一步操作
做/home目录的一个共享,/etc/exportfs /home *(sync,rw) Service nfs restart 至此,server端操作就完成了! Client Setup后选择第一项回车