RHCE6 Preperation (10) - SMTP,NFS, boot parameter

11 篇文章 0 订阅

1, Configure smtp service, reject the mail from remote.test

install postfix, installed before.

copy from access,

cd /etc/postfix/
vim access

copy following lines,

<pre name="code" class="plain">#    /etc/postfix/main.cf: 
#        smtpd_client_restrictions =  
#            check_client_access hash: /etc/postfix/access

 copy to /etc/postfix/main.cf, and switch on, 

/etc/postfix/main.cf: smtpd_client_restrictions =  check_client_access hash: /etc/postfix/access

modify the access document, add one line,

192.168.0.254 REJECT

2, Configure the NFS service, make the share folder as masque folder,

create the folder,

Mkdir /data/{read,write} -p
Mkdir /export/{read,write} -p

modify the fstab

vim /etc/fstab
/data/read /export/read none bind 0 0
/data/write /export/write none bind 0 0

mount all,

mount -a

modify the export configuration,

Vim /etc/exports

add two lines,

/exports/read *.example.com(rw,sync)
/exports/write *.example.com(rw,sync)

map all users to anonymous user, add parameter as "all_squash"

allow root user to login as root, and own root user access right, add parameter  "no_root_squash"


3, edit the boot parameter, add kernctl=5,

vim /boot/grub/grub.conf


add the parameter kernctl=5

to test the result, reboot the system and use the command,

cat /proc/cmdline





  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值