linux上的应用

1. dubbo注册中心zookeeper:

  /usr/local/dubbo-zookeeper/bin/zkServer.sh start  [启动]

  /usr/local/dubbo-zookeeper/bin/zkServer.sh restart [重启]

  /usr/local/dubbo-zookeeper/bin/zkServer.sh stop    [停止]

  /usr/local/dubbo-zookeeper/bin/zkServer.sh status  [状态]

  查看zookeeper进程:ps -ef | grep zookeeper

  强制杀死进程:kill -9 进程号

2. dubbo监控中心:

  /usr/local/web/tomcat-dubbo-monitor/bin/startup.sh

  /usr/local/web/tomcat-dubbo-monitor/bin/shutdown.sh

  查看tomcat进程:ps -ef | grep tomcat

3. fastdfs分布式文件系统:

  a. 启动tracker追踪服务器

      /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf restart

  b. 启动storaged存储服务器

      /usr/bin/fdfs_storaged /etc/fdfs/storage.conf restart

  c. 启动nginx访问storaged中存储的文件

      /usr/local/nginx/sbin/nginx

      查看fastdfs进程号: ps -ef | grep fdfs

      查看nginx进程号:ps -ef | grep nginx

      强制杀死进程:kill -9 进程号

4. redis数据库:

  a. redis单机版启动:

      cd /usr/local/redis/bin && ./redis-server redis.conf

  b. redis集群版启动(6台redis实现分布式缓存):

      cd /usr/local/redis/redis-cluster && ./start-all.sh

      查看redis进程号: ps -ef | grep redis

5. solr全文检索服务器:

  a. solr单机版启动:

      /usr/local/solr/tomcat-solr/bin/startup.sh

      /usr/local/solr/tomcat-solr/bin/shutdown.sh

  b. solr集群版启动(分布式检索):

      3台zookeeper集群:

      /usr/local/solr/solr-cloud/zookeeper01/bin/zkServer.sh restart

      /usr/local/solr/solr-cloud/zookeeper02/bin/zkServer.sh restart

      /usr/local/solr/solr-cloud/zookeeper03/bin/zkServer.sh restart

      /usr/local/solr/solr-cloud/zookeeper01/bin/zkServer.sh status

      /usr/local/solr/solr-cloud/zookeeper02/bin/zkServer.sh status

      /usr/local/solr/solr-cloud/zookeeper03/bin/zkServer.sh status

      4台tomcat集群:

      /usr/local/solr/solr-cloud/tomcat-solr01/bin/startup.sh

      /usr/local/solr/solr-cloud/tomcat-solr02/bin/startup.sh

      /usr/local/solr/solr-cloud/tomcat-solr03/bin/startup.sh

      /usr/local/solr/solr-cloud/tomcat-solr04/bin/startup.sh

      /usr/local/solr/solr-cloud/tomcat-solr01/bin/shutdown.sh

      /usr/local/solr/solr-cloud/tomcat-solr02/bin/shutdown.sh

      /usr/local/solr/solr-cloud/tomcat-solr03/bin/shutdown.sh

      /usr/local/solr/solr-cloud/tomcat-solr04/bin/shutdown.sh

      查看tomcat进程:ps -ef | grep tomcat

6. ActiveMQ消息中间件:

  /usr/local/activemq/bin/linux-x86-64/activemq start

  /usr/local/activemq/bin/linux-x86-64/activemq restart

  /usr/local/activemq/bin/linux-x86-64/activemq stop

  /usr/local/activemq/bin/linux-x86-64/activemq status

  查看activemq进程号: ps -ef | grep activemq


# 动态查看tomcat启动日志

tail -f /usr/local/solr/tomcat/logs/catalina.out

# 停止防火墙

systemctl stop firewalld.service

# 启动防火墙

systemctl start firewalld.service

# 禁止防火墙开机启动

systemctl disable firewalld.service

# 启用防火墙开机启动

systemctl enable firewalld.service

# 查看Linux版本号

cat /etc/redhat-release

你可能感兴趣的:(linux上的应用)