Linux修改系统时区

1、使用tzselect命令查找需要的时区,操作步骤如下:执行tzselect命令-->选择Asia-->选择China-->Beijing Time最终会提示操作命令,如下图:You can make this change permanent for yourself by appending the line TZ='Asia/Shanghai'; export TZto

- 阅读全文 -

Let's Encrypt的https证书申请及安装(nginx)

1、首先要安装pthon2.7+版本,因为Let's Encrypt需要在python2.7+版本的环境上运行,安装方法:CentOS下源码包编译安装Python-2.7.8 ,不然会报如下错误: Traceback (most recent call last): File "acme_tiny.py", line 2, in <module>

- 阅读全文 -

CentOS下源码包编译安装Python-2.7.8

下载cd /usr/local/src wget http://python.org/ftp/python/2.7.8/Python-2.7.8.tgz tar xvf Python-2.7.8.tgz cd Python-2.7.8 注意1:如果没有c编译器需要安装,命令如下:yum install gcc注意2:先安装openssl,不然将来使用HTTPS的时候会报错(urllib2.URLE

- 阅读全文 -

PHPMailer使用

<?php require('phpmailer/class.phpmailer.php'); require('phpmailer/class.smtp.php'); $mailer = new PHPMailer(); // 使用SMTP形式发送 $mailer->IsSMTP(); // 编码 $mailer->CharSet =

- 阅读全文 -

List-Unsubscribe in header

在检测邮件服务器得分的时候会发现虽然得分是10,但是还有建议来提示优化,如图:Your message does not contain a List-Unsubscribe headerThe List-Unsubscribe header is required if you send mass emails, it enables the user to easily unsubscribe

- 阅读全文 -

【在用】DKIM签名

安装 opendkimapt install opendkim 编辑或者创建 opendkim 配置文件vi /etc/opendkim.conf 配置如下:Canonicalization relaxed/relaxed KeyFile /etc/opendkim/keys/kyzy.cc/default.private ExternalIgnore

- 阅读全文 -

Linux源码编译nginx使用service启动的方法

从yum安装nginx的机器上面拷贝一份/etc/init.d/nginx到当前机器相同的位置,然后开始改造脚本。vi /etc/init.d/nginx创建文件vi /etc/sysconfig/nginx内容如下NGINX_CONF_FILE=/opt/nginx/conf/nginx.conf增加环境变量vi /etc/bashrc追加export PATH=$PATH:/usr/local

- 阅读全文 -

CentOS+redmine+nginx

部署环境CentOS release 6.x (Final)redmine-3.4.6.tar.gzhttp://www.redmine.org/projects/redmine/wiki/RedmineInstall //安装说明redmine 3.4.6ruby 2.2.4rails 4.2mysql 5.7Redmine version Supported Ruby versions Ra

- 阅读全文 -

最新文章

最近回复

分类

标签

归档

其它