1:/etc/sysconfig/i18n (语言配置文件).2:/etc/sysconfig/network-scripts/ifcfg-eth0 (eth0配置文件). 或/etc/sysconfig/network/ifcfg-eth0 或/etc/rc.d/rc.local3:/boot/g ...
分类:
系统相关 时间:
2017-10-14 23:26:08
阅读次数:
284
应用jenkins发送邮件的邮件服务器 SMTP server 可以是本地的,也可以是远程,远程的就不多说了,在此说一下如何在jenkins本地服务器上搭建邮件服务器,并用jenkins发送邮件,详细过程如下: 一、linux服务器搭建邮件服务器: 这里选择用linux的sendmail 来搭建邮件 ...
分类:
其他好文 时间:
2017-10-12 17:02:32
阅读次数:
680
http://www.linuxidc.com/Linux/2016-03/129164.htm InfoWorld 在部署、运营和保障网络安全领域精选出了年度开源工具获奖者。 最佳开源网络和安全软件 BIND, Sendmail, OpenSSH, Cacti, Nagios, Snort -- ...
分类:
Web程序 时间:
2017-10-11 11:12:43
阅读次数:
317
lsof `which httpd` 哪个进程在使用apache的可执行文件lsof /etc/passwd 哪个进程在占用/etc/passwdlsof /dev/hda6 哪个进程在占用hda6lsof /dev/cdrom 哪个进程在占用光驱lsof -c sendmail 查看sendmai ...
分类:
其他好文 时间:
2017-09-29 19:57:47
阅读次数:
224
获取阿里云和金山云云存储的方法在前两章文章里面已经有说过,那么现在就可以搭配一个邮件脚本,然后每天定时发送了。假设我们的这个发送邮件脚本叫sendmail.py,由于我们这个邮件脚本是包含整个的html文件,所以我们这个sendmail.py需要获得阿里云OSS脚本的结果,然后把这个脚..
分类:
编程语言 时间:
2017-09-29 19:37:43
阅读次数:
343
package com.dong.mail; import java.util.Properties; import javax.mail.Authenticator; import javax.mail.Message; import javax.mail.MessagingException; ...
分类:
编程语言 时间:
2017-09-22 00:52:33
阅读次数:
261
1.安装(需要sendmail或postfix服务)sendmail
#yuminstallsendmail
#systemctlstartsendmail.service
#systemctlstatussendmail.service
postfix
#yuminstallmailx
#systemctlstartpostfix.service
#systemctlstatuspostfix.service
postfix.service-PostfixMailTransportAge..
分类:
系统相关 时间:
2017-09-20 16:27:25
阅读次数:
285
RHEL(Oracle Linxu/CentOS)系统下,如果使用sendmail发送邮件,如果不特殊设置,一般发件箱地址为user@hostname,例如,hostname为DB-Server.localdomain,在root用户下使用下面命令发送一封邮件: [root@DB-Server ~]... ...
分类:
其他好文 时间:
2017-09-14 00:49:44
阅读次数:
276
import paramikoimport threadingimport reimport timeimport stringfrom sendmail import send_maildef ssh2(ip,username,passwd,cmd): try: ssh = paramiko.SS... ...
分类:
编程语言 时间:
2017-09-12 13:35:14
阅读次数:
151