Centos7下安装node12和npm

1. 下载12x版本

curl --silent --location https://rpm.nodesource.com/setup_12.x | bash -

2. yum 安装

## Run `sudo yum install -y nodejs` to install Node.js 13.x and npm.
yum install -y nodejs
## You may also need development tools to build native addons:
yum install gcc-c++ make
## To install the Yarn package manager, run:
curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
yum install yarn

3. cnpm安装

npm install -g cnpm --registry=https://registry.npm.taobao.org

Centos7下安装vsftp并配置虚拟用户

一、安装前准备

1.关闭防火墙或者运行ftp服务

# 关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
# 允许ftp服务
firewall-cmd --permanent --zone=public --add-service=ftp
firewall-cmd --reload

2.关闭sellinux

# 立即关闭
setenforce 0
# 永久关闭
sed -i 's@SELINUX=enforcing@SELINUX=disabled@' /etc/selinux/config
# 查看是否关闭
getenforce

二、安装vsftpd

1.安装

yum install -y vsftpd

2.启动和自启

systemctl start vsftpd
systemctl enable vsftpd

三、配置vsftpd

1.创建vsftpd使用的系统用户,主目录为/data/vsftpd,禁止ssh登录。创建之后所有虚拟用户使用这个系统用户访问文件。

useradd vsftpd -d /data/vsftpd -s /bin/false

2.创建虚拟用户主目录,比如虚拟用户叫ftp1,执行下面的命令。

mkdir -p /data/vsftpd/ftp1/
chown -R vsftpd:vsftpd /data/vsftpd/ftp1

3.创建这个虚拟用户

vi /etc/vsftpd/loginusers.conf
# 增加内容
ftp1
123456

4.根据这个文件创建数据库文件

db_load -T -t hash -f /etc/vsftpd/loginusers.conf /etc/vsftpd/loginusers.db
chmod 600 /etc/vsftpd/loginusers.db

5.启用这个数据库文件

vi /etc/pam.d/vsftpd
# 注释掉所有内容后,增加下面的内容
auth sufficient /lib64/security/pam_userdb.so db=/etc/vsftpd/loginusers
account sufficient /lib64/security/pam_userdb.so db=/etc/vsftpd/loginusers

6.创建虚拟用户配置目录和文件

# 创建用户配置目录
mkdir /etc/vsftpd/userconf
# 创建虚拟用户配置文件
vim /etc/vsftpd/userconf/ftp1
# 增加下面的内容
local_root=/data/vsftpd/ftp1/
write_enable=YES

7.最后修改主配置文件

# 打开配置
vim /etc/vsftpd/vsftpd.conf
# 更改内容
anonymous_enable=NO
chroot_local_user=YES
ascii_upload_enable=YES
ascii_download_enable=YES
# 文件尾部添加以下内容
guest_enable=YES
guest_username=vsftpd
user_config_dir=/etc/vsftpd/userconf
allow_writeable_chroot=YES
# 浏览FTP目录和下载
anon_world_readable_only=NO
# 允许上传
anon_upload_enable=YES
# 允许建立和删除目录
anon_mkdir_write_enable=YES
# 允许改名和删除文件
anon_other_write_enable=YES

8.重启服务

service vsftpd restart

9.出现vsftpd 425 Security: Bad IP connecting.解决方法

vim /etc/vsftpd/vsftpd.conf
# 添加:
pasv_promiscuous=YES
# 重启
service vsftpd restart

Centos7下安装zimbra邮箱

1.更新系统

yum update -y

2.安装软件

yum install -y vim net-tools ntp

3.安装zimbra

4.设置好域名

删除原文件并添加以下行

vim /etc/hostname 
mail

删除原文件并添加以下行

vim /etc/hosts
127.0.0.1       localhost
172.21.100.7   mail.dingxiufeng.cn    mail

5.禁用系统自带MTA服务

systemctl disable postfix.service
systemctl stop postfix.service

6.上传zimbra安装包到服务器

7.解压

tar zxvf zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz

8.进入解压目录并安装zimbra

cd zcs-8.6.0_GA_1153.RHEL7_64.20141215151110
./install.sh

过程

Operations logged to /tmp/install.log.2328
Checking for existing installation...
    zimbra-ldap...NOT FOUND
    zimbra-logger...NOT FOUND
    zimbra-mta...NOT FOUND
    zimbra-dnscache...NOT FOUND
    zimbra-snmp...NOT FOUND
    zimbra-store...NOT FOUND
    zimbra-apache...NOT FOUND
    zimbra-spell...NOT FOUND
    zimbra-convertd...NOT FOUND
    zimbra-memcached...NOT FOUND
    zimbra-proxy...NOT FOUND
    zimbra-archiving...NOT FOUND
    zimbra-core...NOT FOUND


PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.

License Terms for the Zimbra Collaboration Suite:
  http://www.zimbra.com/license/zimbra-public-eula-2-5.html



Do you agree with the terms of the software license agreement? [N] y



Checking for prerequisites...
     FOUND: NPTL
     MISSING: nmap-ncat
     FOUND: sudo-1.8.6p7-17
     FOUND: libidn-1.28-4
     FOUND: gmp-6.0.0-12
     FOUND: libaio-0.3.109-13
     FOUND: libstdc++-4.8.5-4
     MISSING: unzip
     MISSING: perl-core

Checking for suggested prerequisites...
     FOUND: perl-5.16.3
     Unable to find expected sysstat.  Found version 未安装软件包 sysstat  instead.
     FOUND: sqlite

###WARNING###

The suggested version of one or more packages is not installed.
This could cause problems with the operation of Zimbra.

Do you wish to continue? [N] 

Exit? [N] y
Exiting.

根据提示安装相关依赖软件包

yum install nmap-ncat unzip perl-core sysstat -y

继续执行

./install.sh

过程

Operations logged to /tmp/install.log.2542
Checking for existing installation...
    zimbra-ldap...NOT FOUND
    zimbra-logger...NOT FOUND
    zimbra-mta...NOT FOUND
    zimbra-dnscache...NOT FOUND
    zimbra-snmp...NOT FOUND
    zimbra-store...NOT FOUND
    zimbra-apache...NOT FOUND
    zimbra-spell...NOT FOUND
    zimbra-convertd...NOT FOUND
    zimbra-memcached...NOT FOUND
    zimbra-proxy...NOT FOUND
    zimbra-archiving...NOT FOUND
    zimbra-core...NOT FOUND


PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.

License Terms for the Zimbra Collaboration Suite:
  http://www.zimbra.com/license/zimbra-public-eula-2-5.html



Do you agree with the terms of the software license agreement? [N] y



Checking for prerequisites...
     FOUND: NPTL
     FOUND: nmap-ncat-6.40-7
     FOUND: sudo-1.8.6p7-17
     FOUND: libidn-1.28-4
     FOUND: gmp-6.0.0-12
     FOUND: libaio-0.3.109-13
     FOUND: libstdc++-4.8.5-4
     FOUND: unzip-6.0-15
     FOUND: perl-core-5.16.3-286

Checking for suggested prerequisites...
     FOUND: perl-5.16.3
     FOUND: sysstat
     FOUND: sqlite
Prerequisite check complete.

Checking for installable packages

Found zimbra-core
Found zimbra-ldap
Found zimbra-logger
Found zimbra-mta
Found zimbra-dnscache
Found zimbra-snmp
Found zimbra-store
Found zimbra-apache
Found zimbra-spell
Found zimbra-memcached
Found zimbra-proxy


Select the packages to install

Install zimbra-ldap [Y] 

Install zimbra-logger [Y] 

Install zimbra-mta [Y] 

Install zimbra-dnscache [Y] 

Install zimbra-snmp [Y] 

Install zimbra-store [Y] 

Install zimbra-apache [Y] 

Install zimbra-spell [Y] 

Install zimbra-memcached [Y] 

Install zimbra-proxy [Y] 
Checking required space for zimbra-core
Checking space for zimbra-store
Checking required packages for zimbra-store
zimbra-store package check complete.

Installing:
    zimbra-core
    zimbra-ldap
    zimbra-logger
    zimbra-mta
    zimbra-dnscache
    zimbra-snmp
    zimbra-store
    zimbra-apache
    zimbra-spell
    zimbra-memcached
    zimbra-proxy

The system will be modified.  Continue? [N] y

Removing /opt/zimbra
Removing zimbra crontab entry...done.
Cleaning up zimbra init scripts...done.
Cleaning up /etc/ld.so.conf...done.
Cleaning up /etc/security/limits.conf...done.

Finished removing Zimbra Collaboration Server.

Installing packages

    zimbra-core......zimbra-core-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-ldap......zimbra-ldap-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-logger......zimbra-logger-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-mta......zimbra-mta-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-dnscache......zimbra-dnscache-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-snmp......zimbra-snmp-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-store......zimbra-store-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-apache......zimbra-apache-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-spell......zimbra-spell-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-memcached......zimbra-memcached-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-proxy......zimbra-proxy-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
Operations logged to /tmp/zmsetup10242016-135027.log
Installing LDAP configuration database...done.
Setting defaults...sh: /sbin/ifconfig: 没有那个文件或目录


DNS ERROR resolving MX for mail.southbaytech.co
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] 
Create domain: [mail.southbaytech.co] southbaytech.co
    MX: mail.southbaytech.co (192.168.1.209)

    Interface: 127.0.0.1
    Interface: ::1
    Interface: 192.168.1.204


DNS ERROR - none of the MX records for southbaytech.co
resolve to this host
It is suggested that the MX record resolve to this host
Re-Enter domain name? [Yes] n
done.
Checking for port conflicts
sh: netstat: 未找到命令

Main menu

   1) Common Configuration:                                                  
   2) zimbra-ldap:                             Enabled                       
   3) zimbra-logger:                           Enabled                       
   4) zimbra-mta:                              Enabled                       
   5) zimbra-dnscache:                         Enabled                       
   6) zimbra-snmp:                             Enabled                       
   7) zimbra-store:                            Enabled                       
        +Create Admin User:                    yes                           
        +Admin user to create:                 admin@southbaytech.co         
******* +Admin Password                        UNSET                         
        +Anti-virus quarantine user:           virus-quarantine.vjca4xqt0@southbaytech.co
        +Enable automated spam training:       yes                           
        +Spam training user:                   spam.jskgzxzqkd@southbaytech.co
        +Non-spam(Ham) training user:          ham.8cra1gy7@southbaytech.co  
        +SMTP host:                            mail.southbaytech.co          
        +Web server HTTP port:                 8080                          
        +Web server HTTPS port:                8443                          
        +Web server mode:                      https                         
        +IMAP server port:                     7143                          
        +IMAP server SSL port:                 7993                          
        +POP server port:                      7110                          
        +POP server SSL port:                  7995                          
        +Use spell check server:               yes                           
        +Spell server URL:                     http://mail.southbaytech.co:7780/aspell.php
        +Enable version update checks:         TRUE                          
        +Enable version update notifications:  TRUE                          
        +Version update notification email:    admin@southbaytech.co         
        +Version update source email:          admin@southbaytech.co         
        +Install mailstore (service webapp):   yes                           
        +Install UI (zimbra,zimbraAdmin webapps): yes                           

   8) zimbra-spell:                            Enabled                       
   9) zimbra-proxy:                            Enabled                       
  10) Default Class of Service Configuration:                                
   s) Save config to file                                                    
   x) Expand menu                                                            
   q) Quit                                    

Address unconfigured (**) items  (? - help) 7


Store configuration

   1) Status:                                  Enabled                       
   2) Create Admin User:                       yes                           
   3) Admin user to create:                    admin@southbaytech.co         
** 4) Admin Password                           UNSET                         
   5) Anti-virus quarantine user:              virus-quarantine.vjca4xqt0@southbaytech.co
   6) Enable automated spam training:          yes                           
   7) Spam training user:                      spam.jskgzxzqkd@southbaytech.co
   8) Non-spam(Ham) training user:             ham.8cra1gy7@southbaytech.co  
   9) SMTP host:                               mail.southbaytech.co          
  10) Web server HTTP port:                    8080                          
  11) Web server HTTPS port:                   8443                          
  12) Web server mode:                         https                         
  13) IMAP server port:                        7143                          
  14) IMAP server SSL port:                    7993                          
  15) POP server port:                         7110                          
  16) POP server SSL port:                     7995                          
  17) Use spell check server:                  yes                           
  18) Spell server URL:                        http://mail.southbaytech.co:7780/aspell.php
  19) Enable version update checks:            TRUE                          
  20) Enable version update notifications:     TRUE                          
  21) Version update notification email:       admin@southbaytech.co         
  22) Version update source email:             admin@southbaytech.co         
  23) Install mailstore (service webapp):      yes                           
  24) Install UI (zimbra,zimbraAdmin webapps): yes                           

Select, or 'r' for previous menu [r] 4

Password for admin@southbaytech.co (min 6 characters): [N6Ws0fkc3d] 123456

Store configuration

   1) Status:                                  Enabled                       
   2) Create Admin User:                       yes                           
   3) Admin user to create:                    admin@southbaytech.co         
   4) Admin Password                           set                           
   5) Anti-virus quarantine user:              virus-quarantine.vjca4xqt0@southbaytech.co
   6) Enable automated spam training:          yes                           
   7) Spam training user:                      spam.jskgzxzqkd@southbaytech.co
   8) Non-spam(Ham) training user:             ham.8cra1gy7@southbaytech.co  
   9) SMTP host:                               mail.southbaytech.co          
  10) Web server HTTP port:                    8080                          
  11) Web server HTTPS port:                   8443                          
  12) Web server mode:                         https                         
  13) IMAP server port:                        7143                          
  14) IMAP server SSL port:                    7993                          
  15) POP server port:                         7110                          
  16) POP server SSL port:                     7995                          
  17) Use spell check server:                  yes                           
  18) Spell server URL:                        http://mail.southbaytech.co:7780/aspell.php
  19) Enable version update checks:            TRUE                          
  20) Enable version update notifications:     TRUE                          
  21) Version update notification email:       admin@southbaytech.co         
  22) Version update source email:             admin@southbaytech.co         
  23) Install mailstore (service webapp):      yes                           
  24) Install UI (zimbra,zimbraAdmin webapps): yes                           

Select, or 'r' for previous menu [r] 

Main menu

   1) Common Configuration:                                                  
   2) zimbra-ldap:                             Enabled                       
   3) zimbra-logger:                           Enabled                       
   4) zimbra-mta:                              Enabled                       
   5) zimbra-dnscache:                         Enabled                       
   6) zimbra-snmp:                             Enabled                       
   7) zimbra-store:                            Enabled                       
   8) zimbra-spell:                            Enabled                       
   9) zimbra-proxy:                            Enabled                       
  10) Default Class of Service Configuration:                                
   s) Save config to file                                                    
   x) Expand menu                                                            
   q) Quit                                    

*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) a
Save configuration data to a file? [Yes] 
Save config in file: [/opt/zimbra/config.12421] 
Saving config in /opt/zimbra/config.12421...done.
The system will be modified - continue? [No] y
Operations logged to /tmp/zmsetup10242016-135027.log
Setting local config values...done.
Initializing core config...Setting up CA...done.
Deploying CA to /opt/zimbra/conf/ca ...done.
Creating SSL zimbra-store certificate...done.
Creating new zimbra-ldap SSL certificate...done.
Creating new zimbra-mta SSL certificate...done.
Creating new zimbra-proxy SSL certificate...done.
Installing mailboxd SSL certificates...done.
Installing MTA SSL certificates...done.
Installing LDAP SSL certificate...done.
Installing Proxy SSL certificate...done.
Initializing ldap...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Setting BES searcher  password...done.
Creating server entry for mail.southbaytech.co...done.
Setting Zimbra IP Mode...done.
Saving CA in ldap ...done.
Saving SSL Certificate in ldap ...done.
Setting spell check URL...done.
Setting service ports on mail.southbaytech.co...done.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=TRUE...done.
Setting Master DNS IP address(es)...done.
Setting DNS cache tcp lookup preference...done.
Setting DNS cache udp lookup preference...done.
Setting DNS tcp upstream preference...done.
Setting TimeZone Preference...done.
Initializing mta config...done.
Setting services on mail.southbaytech.co...done.
Adding mail.southbaytech.co to zimbraMailHostPool in default COS...done.
Creating domain southbaytech.co...done.
Setting default domain name...done.
Creating domain southbaytech.co...already exists.
Creating admin account admin@southbaytech.co...done.
Creating root alias...done.
Creating postmaster alias...done.
Creating user spam.jskgzxzqkd@southbaytech.co...done.
Creating user ham.8cra1gy7@southbaytech.co...done.
Creating user virus-quarantine.vjca4xqt0@southbaytech.co...done.
Setting spam training and Anti-virus quarantine accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for mail.southbaytech.co...done.
Configuring SNMP...done.
Setting up syslog.conf...done.
Starting servers...done.
Installing common zimlets...
    com_zimbra_adminversioncheck...done.
    com_zimbra_attachcontacts...done.
    com_zimbra_attachmail...done.
    com_zimbra_bulkprovision...done.
    com_zimbra_cert_manager...done.
    com_zimbra_clientuploader...done.
    com_zimbra_date...done.
    com_zimbra_email...done.
    com_zimbra_mailarchive...done.
    com_zimbra_phone...done.
    com_zimbra_proxy_config...done.
    com_zimbra_srchhighlighter...done.
    com_zimbra_tooltip...done.
    com_zimbra_url...done.
    com_zimbra_viewmail...done.
    com_zimbra_webex...done.
    com_zimbra_ymemoticons...done.
Finished installing common zimlets.
Restarting mailboxd...done.
Creating galsync account for default domain...done.

You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Server.
The only information that will be transmitted is:
    The VERSION of zcs installed (8.6.0_GA_1153_RHEL7_64)
    The ADMIN EMAIL ADDRESS created (admin@southbaytech.co)

Notify Zimbra of your installation? [Yes] n
Notification skipped
Setting up zimbra crontab...done.


Moving /tmp/zmsetup10242016-135027.log to /opt/zimbra/log


Configuration complete - press return to exit

9.查看zimbra服务

su zimbra
zmcontrol status

以下表示正常

Host mail.southbaytech.co
    amavis                  Running
    antispam                Running
    antivirus               Running
    dnscache                Running
    ldap                    Running
    logger                  Running
    mailbox                 Running
    memcached               Running
    mta                     Running
    opendkim                Running
    proxy                   Running
    service webapp          Running
    snmp                    Running
    spell                   Running
    stats                   Running
    zimbra webapp           Running
    zimbraAdmin webapp      Running
    zimlet webapp           Running
    zmconfigd               Running

Centos7下安装svn并添加AD控制

非活动目录控制

1.安装软件

yum install httpd subversion mod_dav_svn -y

2. 创建svn库并修改权限

mkdir /home/svn <创建svn目录>
chown -R apache:apache /home/svn <变更文件所属权限,并应用到子文件夹>
svnadmin create /home/svn <新建svn库>
chmod -R g+rws /home/svn <修改文件读写属性,并应用到子文件夹>

3.修改svn配置文件,vim /etc/httpd/conf.modules.d/10-subversion.conf ,增加以下代码

<Location /svn>
    DAV svn
    SVNPath /home/svn
    AuthType Basic
    AuthName "SVN repository"
    AuthUserFile /etc/subversion/passwd
    AuthzSVNAccessFile /home/svn/conf/authz
    Require valid-user
</Location>

4.重启apache服务

service httpd restart

5.添加用户:vim /home/svn/conf/authz

[groups]
admin = tab
[/]
@admin = rw
* =
htpasswd -c /etc/subversion/passwd tab (创建passwd文件时需要打-c参数,tab为此svn第一个用户)

6.再次修改svn库权限

chown -R apache:apache /home/svn

7.防火墙上开放端口

firewall-cmd --add-port=80/tcp
firewall-cmd --add-port=80/tcp --permanent

8.selinux 关闭

getenforce 检查是否开启
setenforce 0 临时关闭selinux
sed -i 's@SELINUX=enforcing@SELINUX=disabled@' /etc/selinux/config  永久关闭

活动目录控制

1.安装软件

yum install httpd subversion mod_dav_svn mod_ldap -y

2.创建SVN目录

mkdir -p /home/svn/test
svnadmin create /home/svn/test
chmod -R g+rws /home/svn/test
chown -R apache:apache /home/svn/test

3.编辑apache配置文件:/etc/httpd/conf.modules.d/10-subversion.conf,区分读写

<Location /svn/test>
DAV svn
SVNPath /home/svn/test
AuthType Basic
AuthBasicProvider ldap
AuthName "test subversion repository"
AuthLDAPURL "ldap://192.168.1.251:3268/dc=southbaytech,dc=co?sAMAccountName?sub?(objectCategory=person)"
AuthLDAPBindDN svn@southbaytech.co
AuthLDAPBindPassword svnpassword
AuthzSVNAccessFile /home/svn/test/conf/authz    
Require valid-user           
</Location>

4.编辑用户权限/home/svn/test/conf/authz

[groups]
    admin = asd  
    team = aaa
    [/]
    @admin = rw  #(admin组用户有读写权限)
    @team = r    #(team组用户有读权限)
    * =          #(其他用户没权限)

5.当SVN访问账户都为读写时,编辑/etc/httpd/conf.modules.d/10-subversion.conf

<Location /svn/test>
DAV svn
SVNPath /home/svn/test
AuthType Basic
AuthBasicProvider ldap
AuthName "test subversion repository"
AuthLDAPURL "ldap://192.168.1.251:3268/dc=southbaytech,dc=co?sAMAccountName?sub?(objectCategory=person)"
AuthLDAPBindDN svn@southbaytech.co
AuthLDAPBindPassword svnpassword
Require ldap-user aaa asd         
</Location>
其中 svn@southbaytech.co 为在活动目录下新创建的帐号 svn ,svnpassword 为其密码,此用来验证;aaa 和 asd 为访问SVN帐号。

6.重启Apache服务

service httpd restart

7.创建svn用户

在域主控制器1.251上 Users下创建一个普通账户svn,密码svnpassword,设置为密码永不过期

8.关闭selinux,编辑/etc/selinux/config

SELINUX=disabled

Centos7下yum安装redis的最新版本并设置密码

1. 安装自带版本

yum install redis

2. 安装最新版本

yum install -y http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum --enablerepo=remi install redis

3. 开启服务和自启

systemctl start redis
systemctl enable redis

4. 修改本地访问为任意ip访问

vim /etc/redis.conf
# 将bind 127.0.0.1 改成了 bind 0.0.0.0

5. 设置redis访问密码

vim /etc/redis.conf
requirepass 123456