Centos7上构建named-chroot服务器

安装

yum -y install bind bind-chroot bind-utils

设置

  • 设置/etc/named.conf
listen-on port 53 {127.0.0.1};

改为

listen-on port 53 {any;};
allow-query {localhost;};

改为

allow-query {any;};

添加

forwad only;
    forwarders{
                223.5.5.5;
                223 …
➟ Read more



Centos7.2使Apache支持Https协议

安装必要软件

yum install mod_ssl openssl

生成相关文件

    # Generate private key
    openssl genrsa -out server.key 2048

    # Generate CSR
    openssl req -new -key server.key -out server.csr

    # Generate Self Signed Key
    openssl x509 -req -days 3650 -in server.csr -signkey server …
➟ Read more

在Centos7.2上配置LAMP环境

apache

安装Apache

  • 安装apache
yum -y install httpd
  • 配置Apache 编辑/etc/httpd/conf/httpd.conf,在文件末尾加入
Include vhost-conf.d/*.conf

然后创建相应的目录与文件

mkdir /etc/httpd/vhost-conf.d
vi awei …
➟ Read more

Centos7.2下配置Samba

安装

yum install samba samba-client

配置

  • 备份smb.conf
mv /etc/samba/smb.conf /etc/samba/smb.conf_
  • 生成新的smb.conf,内容如下
[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = AweiServer
security = user

create mode = 0644
force create …
➟ Read more