[转]linux mail发送邮件stat=sent却没有收到邮件解决 By duncan21Posted on 2015 年 4 月 4 日2015 年 4 月 5 日Posted in LinuxTagged sendmail linux mail发送邮件stat=sent却没有收到邮件解决 今天尝试着想要在linux终端上直接用mail命令(e.g: mail -s &qu[……] 阅读全文 Read More
centos6批量添加ip段 By duncan21Posted on 2015 年 4 月 3 日2015 年 4 月 22 日Posted in LinuxTagged centos6 [root@test network-scripts]# cat /etc/redhat-release CentOS release 6.6 (Final)[……] 阅读全文 Read More
ubuntu批量添加ip By duncan21Posted on 2015 年 4 月 3 日2015 年 4 月 4 日Posted in LinuxTagged ubuntu 如何给ubuntu系统批量添加ip 提示,只有root账号才有权限修改网卡的配置文件,所以要先取得root的密码 1)一般安装好的新的系统,是没有设定root密码的,执行下面的命令设置r[……] 阅读全文 Read More
Apache模块之mod_auth_basic By duncan21Posted on 2015 年 4 月 1 日2015 年 4 月 1 日Posted in LinuxTagged 基本认证 说明 使用基本认证 状态 [……] 阅读全文 Read More
屏蔽apache版本等敏感信息 By duncan21Posted on 2015 年 4 月 1 日Posted in LinuxTagged apaceh 修改前,apache的相关信息都被暴露了: [root@NFS test]# curl -I 555.com HTTP[……] 阅读全文 Read More
apache下实现访问http强制跳转到https By duncan21Posted on 2015 年 3 月 25 日2016 年 5 月 21 日Posted in LinuxTagged https 在有些生产环境下,需要将所有访问http的请求都转到https上,可以通过伪静态来实现 [root@NFS test2]# cat /etc/redhat-release CentOS relea[……] 阅读全文 Read More
[转]Linux内核调优之处理大量TIME_WAIT By duncan21Posted on 2015 年 3 月 23 日2015 年 3 月 23 日Posted in LinuxTagged 内核优化 Linux下高并发的nginx,apache,lvs,haproxy,squid等服务器生产环境下,TCP的TIME_WAIT套接字数量经常达到2-3W,此时服务器很容易被拖死或者严重影响业务服[……] 阅读全文 Read More
php.ini配置文件的调整和优化 By duncan21Posted on 2015 年 3 月 21 日Posted in LinuxTagged php.ini 环境: php-5.3.29 安全配置 (1)打开php的安全模式 php的安全模式是一个非常重要的内嵌的安全机制,它能控制一些p[……] 阅读全文 Read More
安装zencart程序所必要的mcrypt模块 By duncan21Posted on 2015 年 3 月 20 日2016 年 5 月 21 日Posted in LinuxTagged mcrypt mcrypt简单介绍 PHP程序员们在编写代码程序时,除了要保证代码的高性能之外,还有一点是非常重要的,那就是程序的安全性保障。PHP除了自带的几种加密函数外,还有功能更全面的PHP加密扩展库Mcr[……] 阅读全文 Read More
如何理解Linux CPU Load By duncan21Posted on 2015 年 3 月 17 日2015 年 3 月 17 日Posted in LinuxTagged cpu load, uptime Understanding Linux CPU Load – when should you be worried? You might be familiar with Lin[……] 阅读全文 Read More
openssl之文件校验 By duncan21Posted on 2015 年 3 月 16 日2016 年 6 月 15 日Posted in LinuxTagged 文件校验 利用openssl提取文件的校验码并检测文件是否是一致的 [codesyntax lang=”text”] [root@NFS-Server test]# openssl dgst -md5 1.[......]阅读全文 Read More
[转]nginx+php-fpm出现502 bad gateway错误解决方法 By duncan21Posted on 2015 年 3 月 10 日2016 年 6 月 29 日Posted in Linux, repostTagged 502 502错误是所有用nginx跑php的运维人员不愿意看见的 nginx出现502有很多原因,但大部分原因可以归结为资源数量不够用,也就是说后端php-fpm处理有问题,nginx[……] 阅读全文 Read More
解决Xen PV下系统内核报错 By duncan21Posted on 2015 年 2 月 26 日2015 年 2 月 26 日Posted in LinuxTagged 内核报错 在做linux内核优化修改的时候,执行sysctl -p总是报错: &[……] 阅读全文 Read More
linux下基于openssl的https服务配置 By duncan21Posted on 2015 年 2 月 12 日2015 年 3 月 24 日Posted in LinuxTagged https, openssl role ip 说明 CA 192.168.1.20[……] 阅读全文 Read More
添加ssl模块到已经安装好的apache中 By duncan21Posted on 2015 年 2 月 9 日2015 年 2 月 9 日Posted in LinuxTagged ssl_module 因为网站需要https服务,所以要配置ssl,但是发现之前安装apache的时候,没有配置mod_ssl [root@NFS-Client-01 ~]# cat /application/apa[......]阅读全文 Read More
openssl之enc命令教程 By duncan21Posted on 2015 年 2 月 7 日2015 年 2 月 8 日Posted in LinuxTagged enc, 文件加密 环境: [root@NFS-Client-01 ~]# cat /etc/redhat-release CentOS release 6.6 (Final) [root@NFS-Client-[……] 阅读全文 Read More
使用fdisk给硬盘分区 By duncan21Posted on 2015 年 2 月 2 日Posted in LinuxTagged fdisk 考题: 给机器添加一块1G的硬盘,用fdisk进行分区 分成2P+E的方式,其中P1=200M P2=200M E=600,并且有2个逻辑分区,大小各为300M 解答: Disk /dev[……] 阅读全文 Read More
解决nfs 客户端 UID/GID 映射是 nobody:nobody的问题 By duncan21Posted on 2015 年 1 月 30 日2015 年 1 月 30 日Posted in LinuxTagged nobody 有几台服务器挂载同一台nfs服务器的一个共享目录,结果其他都正常继承了nfs服务器的用户信息,而另一台的目录所属用户组变成了nobody,如下图: 【采用的是默认系统的权限,即: /oldboy[……] 阅读全文 Read More
配置sudo命令的日志审计 By duncan21Posted on 2015 年 1 月 26 日Posted in LinuxTagged sudo 环境: [root@123 logs]# cat /etc/redhat-release CentOS release 6.3 (Final) 配置: 1)确保安装了下面2个软件 [ro[......]阅读全文 Read More
安装配置eaccelerator缓存加速模块 By duncan21Posted on 2015 年 1 月 22 日2015 年 1 月 23 日Posted in LinuxTagged eaccelerator 安装eaccelerator缓存加速模块 插件说明: eAccelerator是一个自由开放源码php加速器,优化和动态内容缓存,提高了php脚本的缓存性能,使得PHP脚本在编译的状态下,对服务器[……] 阅读全文 Read More