![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CentOS
Tsurumure
热爱技术,喜欢技术交流,希望通过学习更多的技术,实现自我的商业价值
展开
-
Mongodb 设置自动重启服务 (CentOS Systemctl)
设置为 Systemctl 进程服务启动可以方便启动/停止可以让进程挂掉时重启创建服务配置/usr/lib/systemd/system/mongodb.service[Unit]Description=mongodbAfter=network.target remote-fs.target nss-lookup.target [Service] Type=fork...原创 2019-11-23 10:12:44 · 2528 阅读 · 0 评论 -
CentOS 使用 Crontab 定时任务
注意:在 Crontab 中使用 echo 打印命令时,不会出现在控制台最少每1分钟执行,如果需要每秒执行则需要在 shell 命令中编写使用查看 Crontab 是否启用$ systemctl status crond.service1.修改/etc/crontab ,添加计划任务(保存后即生效,不需要重启)$ crontab -e2.在下面添加30 1 * * * s...原创 2019-11-20 16:18:59 · 480 阅读 · 0 评论 -
CentOS 使用 Mailx 通过465端口发送邮件
使用 QQ SMTP 发送邮件安装 Mailx$ yum install mailx开启 SMTP 并获得授权码登录邮箱 - 设置 - 账户1.开启 SMTP2.获得 SMTP 授权码 (需要手机验证)设置 mail.rc设置发送者的邮箱信息set from=XXXXXXXX@qq.comset smtp=smtps://smtp.qq.com:465set smtp-au...原创 2019-11-20 16:18:04 · 274 阅读 · 0 评论 -
CentOS 使用 Mailx 通过465端口发送邮件
CentOS Linux release 7.6.1810使用 QQ SMTP 发送邮件安装 Mailx$ yum install mailx开启 SMTP 并获得授权码登录邮箱 - 设置 - 账户1.开启 SMTP2.获得 SMTP 授权码 (需要手机验证)设置 mail.rc设置发送者的邮箱信息set from=XXXXXXXX@qq.comset smtp=smtps...原创 2019-11-19 15:44:07 · 543 阅读 · 0 评论