美文网首页
常用命令 Centos7.4 Mysql Redis Ftp安装

常用命令 Centos7.4 Mysql Redis Ftp安装

作者: 余炳高笔记 | 来源:发表于2018-11-17 15:34 被阅读0次

    1.安装 mysql

    第一步  一直y到底   yum  install  mysql-server  

    第二步  启动  重启  关闭  命令

    启动   /bin/systemctl  start  mysqld.serviceMySql

    重启   /bin/systemctl  restart  mysqld.service

    关闭   /bin/systemctl  stop  mysqld.service

    2.安装 Redis

    第一步  yum install redis

    第二步  启动  重启  关闭  命令

    启动  /bin/systemctl  start  redis.service

    重启  /bin/systemctl  restart  redis.service

    关闭  /bin/systemctl  stop  redis.service

    3.安装 FTP

    第一步  yum install vsftpd  

    第二步  对ftp  file文件夹授权

    chmod -R 777 /var/ftp/file

    第三步  启动  重启  关闭  命令

    启动 /bin/systemctl start vsftpd.service

    重启 /bin/systemctl  restart  vsftpd.service

    关闭 /bin/systemctl  stop vsftpd.service

    4.启动Tomcat

    /home/ide/tomcat/bin/shutdown.sh

    /home/ide/tomcat/bin/startup.sh

    5.elasticsearch  安装  使用

      1.使用chkconfig命令将弹性搜索配置为在系统启动时自动启动:

        sudo chkconfig --add elasticsearch

        启动 sudo -i service elasticsearch start

        停止 sudo -i service elasticsearch stop

      运行弹性搜索systemd编辑,若要将弹性搜索配置为在系统启动时自动启动,

      请运行以下命令:

        sudo /bin/systemctl daemon-reload

        sudo /bin/systemctl enable elasticsearch.service

        启动 sudo systemctl start elasticsearch.service

        停止 sudo systemctl stop elasticsearch.service

      2.启动

        cd /usr/share/elasticsearch

        ./bin/elasticsearch

        后台运行 ./elasticsearch -d

    查看文件夹信息

    ls -lh

    相关文章

      网友评论

          本文标题:常用命令 Centos7.4 Mysql Redis Ftp安装

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