ES+Kafka+Redis+mongodb等linux启动命令汇总

查看Linux下所有用户

cat /etc/passwd|grep -v nologin|grep -v halt|grep -v shutdown|awk -F":" '{ print $1"|"$3"|"$4 }'|more

Linux开启关闭redis

1.启动:redis-server(redis-server redis.conf)

2.登陆:redis-cli(redis-cli -p 6379)

3.关闭:redis-cli shutdown

启动redis命令

root@ubuntu:/usr/software/redis/redis-4.0.9# cd ..

root@ubuntu:/usr/software/redis# ./redis-server ./redis.conf

或者nohup ./redis-server  ./redis.conf  & ##后台运行启动

查看是否启动:

root@ubuntu:/usr/software/redis# ps -ef |grep redis

查看端口占用:

netstat -lntp | grep 6379

ES启动详细如下:

查找服务

root@ubuntu:~# find / -name elasticsearch

/usr/elasticsearch

/usr/elasticsearch/elasticsearch-5.6.9/bin/elasticsearch

设置限值,并启动

root@ubuntu:/usr/elasticsearch/elasticsearch-5.6.9/bin# ulimit -u 655360

root@ubuntu:/usr/elasticsearch/elasticsearch-5.6.9/bin# su es

es@ubuntu:/usr/elasticsearch/elasticsearch-5.6.9/bin$ ./elasticsearch -d

查看是否启动成功

es@ubuntu:/usr/elasticsearch/elasticsearch-5.6.9/logs$ ps -aux | grep el es@ubuntu:/usr/elasticsearch/elasticsearch-5.6.9/logs$ curl http://localhost:9200/





ES+Kafka+Redis+mongodb等linux启动命令汇总_第1张图片

测试ES是否启动成功:

//默认9200端口curl http://localhost:9200/

ES+Kafka+Redis+mongodb等linux启动命令汇总_第2张图片

启动Kafka

启动:root@ubuntu:/usr/software/kafka# sh kafkastart.sh

或者 root@ubuntu:/usr/software/kafka# sh kafkastart.sh -d (后台启动)

查看是否启动:ps -aux | grep kafka

ES+Kafka+Redis+mongodb等linux启动命令汇总_第3张图片

启动 mongo:

root@ubuntu:/usr/software/mongo# ./mongodb-linux-x86_64-3.0.6/bin/mongod -f mongo.conf 

测试是否启动:

root@ubuntu:/usr/software/mongo# ps -aux|grep mongo

ES+Kafka+Redis+mongodb等linux启动命令汇总_第4张图片
ES+Kafka+Redis+mongodb等linux启动命令汇总_第5张图片

你可能感兴趣的:(ES+Kafka+Redis+mongodb等linux启动命令汇总)