删除solr库
:
单个文件启动
/etc/init.d/mysqld start
./solr start -force
redis-server redis.conf
solr集群启动
bin/solr -cloud -z 192.168.1.194:2181 -force
bin/solr -cloud -z 192.168.1.209:2182 -force
bin/solr -cloud -z 192.168.1.225:2183 -force
修改sh使用权限
chmod u+x *.sh
查看日志
tail -f main.log
修改中文乱码:
mysql> show variables like ‘character_set%’;
[mysql]
no-auto-rehash
default-character-set=utf8
[client]
default-character-set=utf8
[mysqld]
character-set-server=utf8
修改主机地址
vim /etc/hosts
主机ip
vm1-192.168.1.194
vm2-192.168.1.209
vm3-192.168.1.225
mysql找不到log
1.change master to master_host=“192.168.1.194”, master_user=“root”,
master_password=“root”, MASTER_LOG_FILE=“mysql-bin.000005”,
MASTER_LOG_POS=120;
2.
stop slave;
reset slave;
start slave;
solr布置到zookeeper
./zkcli.sh -zkhost?192.168.1.194:2181,192.168.1.209:2182,192.168.1.225:2183
-cmd upconfig -confdir /usr/local/solr/server/solr/configsets/_default/conf
-confname myconf
检测是否成功(zookeeper的bin目录下)
./zkCli.sh
ls /
ls /configs (查看是否存在上传的conf目录)
mysql授权远程登录
grant all privileges on . to root@’%’ identified by ‘root’;
flush privileges;