各组件查看版本和启动

系统+安全 Liemer_Lius 132℃
# Nginx:
> Nginx: ./nginx -V
nginx version: openresty/1.9.7.4

# Redis
> redis-server --version
> redis-server -v

# Logstash
> logstash --version

# Elesticsearch
> curl -XGET localhost:9200      # 有时候报错
> cd /path/to/es_install/lib
> pwd
/mnt/elasticsearch-2.4.1/lib     # 当然,一般都是带版本号的
> ls elasticsearch-2.4.1.jar     # 看jar的版本
> nohup ./bin/elasticsearch &    # 启动命令

# Kibana
> nohup ./bin/kibana &           # 启动命令, 依赖elasticsearch启动,否则报错
> netstat -tunlp|grep 5601       # 端口启动,则表示kibana起来了,ps查看不到kibana的进程,而是node进程
# CentOS
> cat /etc/centos-release
CentOS Linux release 7.2.1511 (Core) 
> cat /etc/redhat-release 
CentOS Linux release 7.2.1511 (Core)

# Rabbitmq
> rabbitmqctl status | grep rabbit
Status of node rabbit@iZ25j138nazZ ...
     [{rabbitmq_management,"RabbitMQ Management Console","3.5.3"},
      {rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.5.3"},
      {rabbitmq_delayed_message_exchange,"RabbitMQ Delayed Message Exchange",
      {rabbitmq_management_agent,"RabbitMQ Management Agent","3.5.3"},
      {rabbit,"RabbitMQ","3.5.3"},

# MySQL
# mysql -V
# mysql --help | grep Distrib   
mysql  Ver 15.1 Distrib 5.5.47-MariaDB, for Linux (x86_64) using readline 5.1
> select version();

 

转载请注明:skelchina.com » 各组件查看版本和启动

喜欢 (5)