作者归档:杨龙

solr内存配置,solr时区配置

配置文件位置:/etc/default/solr.in.sh

配置内存
SOLR_JAVA_MEM=”-Xms1g -Xmx6g”
这两个配置分别为最小内存和最大内存
配置時區
SOLR_TIMEZONE=”Asia/Shanghai”

其他配置
SOLR_PID_DIR=”/mnt/www/solr”
SOLR_HOME=”/mnt/www/solr/data”
LOG4J_PROPS=”/mnt/www/solr/log4j.properties”
SOLR_LOGS_DIR=”/mnt/www/solr/logs”
SOLR_PORT=”8983″

mongodb 3.4 官方资源导航

1. keyfiles内部验证
https://docs.mongodb.com/manual/core/security-internal-authentication/#keyfiles

2. 使用keyfile进行复制集之间的验证
https://docs.mongodb.com/manual/tutorial/enforce-keyfile-access-control-in-existing-replica-set/

3. 用户权限规矩
https://docs.mongodb.com/manual/reference/built-in-roles/#built-in-roles

postgres — PostgreSQL database server 安装和简单配置教程(centos7)

安装:

yum install postgresql-server

配置开机启动:

systemctl enable postgresql

初始化数据库:

postgresql-setup  initdb

创建和删除数据库:

[root@web4 ~]# su - postgres
Last login: Mon Mar 20 01:14:46 CST 2017 on pts/0
-bash-4.2$ 
-bash-4.2$ createdb xxxxx
-bash-4.2$ createdb mydb
-bash-4.2$ dropdb mydb

访问数据库:

psql xxxxx