一.配置yum安装工具 ① 进入yum目录 [root@bj ~]# cd /etc/yum.repos.d ② 配置yum.repo [root@bj yum.repos.d]# cprhel-debuginfo.repo yum.repo 将yum.repo修改成以下内容 [root@bj yum.repos.d]# cat yum.repo [Base] name=Red Hat Enterprise Linux baseurl=file:///media/Server enabled
一.在/etc/mail.rc下添加如下内容 set from=lipingchang@pystandard.com set smtp=smtp.pystandard.com set smtp-auth-user=lipingchang@pystandard.com smtp-auth-password=xxxxx(注册的邮箱账号和密码) set smtp-auth=login 二.发送邮件命令如下 echo 'hello!' | mail -s "hello test"(标题) 12