美文网首页Linux
Linux常用启动服务命令

Linux常用启动服务命令

作者: 呼啦啦zz | 来源:发表于2020-01-15 18:00 被阅读0次

    一、Nginx

        1、启动  [root@172 udm-web]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

        2、重新加载配置文件   [root@172 udm-web]# /usr/local/nginx/sbin/nginx -s reload

    二、防火墙

        1、查看状态    systemctl status firewalld

        2、关闭防火墙   systemctl disable firewalld

        3、启动防火墙    systemctl enable firewalld

    三、启动es

        1、切换es用户 su es

        2、启动服务   ./bin/elasticsearch -d   

        (启动服务后会有报错,只是警告,可忽略    )

    四、启动mysql

       1、启动 service mysql start 或 systemctl start mysqld.service

        2、查看服务状态   service mysqld status  或 systemctl status mysqld.service

    五、启动redis

        1、前台启动    ./redis.server

        2、后台启动    ./redis.server  /root/redis-5.0.3/redis.conf

                                 (/root/redis-5.0.3/redis.conf 是redis文件配置路径)

    相关文章

      网友评论

        本文标题:Linux常用启动服务命令

        本文链接:https://www.haomeiwen.com/subject/utepactx.html