RedHat 一些服务

1. EMail服务

   /etc/init.d/sendmail status   查询运行状态
  /etc/init.d/sendmail restart  启动

2.FTP配置


/etc/vsftpd
ps -ef | grep vsftpd
vi /ect/vsftpd/vsftpd.conf
添加local_root=/opt/ihsdata

: vsftpd    启动
vsftpd start
vsftpd restart
vsftpd stop

添加用户
adduser -d /opt/ihsdata -g ftp -s /sbin/nologin user

3. 定时任务

定时任务:

1) crontab -e

a

:+q

:+w+q

2)

0-59/2 * * * * cp

 

0-59/1 * * * * cp /home/TriggerTime/my_trg.xml  /opt/TriggerFile

 

service crond stop

service crond start

猜你喜欢

转载自pluto418.iteye.com/blog/1629447