美文网首页
2023-10-12 若依docker部署

2023-10-12 若依docker部署

作者: 臭臭猫爱不爱吃鱼 | 来源:发表于2023-10-11 10:59 被阅读0次

    参考https://blog.csdn.net/Richard_wg/article/details/126340760

    docker build -t ruoyi-admin:1.0 .

    后端启动:docker run -it -d --name ruoyi-admin --restart always -p 9090:9090 -v /home/ruoyi/uploadPath:/home/ruoyi/uploadPath ruoyi-admin:1.0

    因为数据卷地址不一样,修改mysql的docker脚本
    docker run -p 3306:3306 --name mysql01 -v /root/ruoyi/mysql/log:/var/log/mysql -v /root/ruoyi/mysql/conf/my.cnf:/etc/mysql/my.cnf -v /root/ruoyi/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.7

    修改nginx脚本
    docker run --name nginx01 -p 80:80 -p 443:443 -v /mnt/nginx/conf/nginx.conf:/etc/nginx/nginx.conf -v /mnt/nginx/conf/conf.d:/etc/nginx/conf.d -v /mnt/nginx/html:/usr/share/nginx/html -v /mnt/nginx/logs:/var/log/nginx -d nginx

    https://zhuanlan.zhihu.com/p/576557188
    docker run --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -e ES_JAVA_OPTS="-Xms2g -Xmx2g" -v /mnt/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml -v /mnt/elasticsearch/data:/usr/share/elasticsearch/data -v /mnt/elasticsearch/plugins:/usr/share/elasticsearch/plugins -d elasticsearch:7.11.1

    Are you trying to mount a directory onto a file (or vice-versa)?

    failed to obtain lock on /usr/share/elasticsearch/data/nodes/0" =>https://blog.csdn.net/weixin_45199764/article/details/124883401
    https://blog.csdn.net/qq_43410943/article/details/132538601 感觉是文件夹权限问题,是的。chmod 777 挂载目录

    https://www.phpsdk.cn/plug/news/show.html?id=8906 设置es密码

    es 安装ik ingest-attachment
    es建立pipeline
    PUT _ingest/pipeline/attachment
    {
    "description": "describe pipeline",
    "processors": [
    {
    "attachment": {
    "field": "base64data",
    "indexed_chars": -1,
    "ignore_missing": true,
    "properties": [
    "content",
    "title",
    "content_type"
    ]
    }
    }
    ]
    }

    10.13
    学会用es的alias别名

    2.安装kkfileview:直接下载发行版giz,放在服务器上,解压缩,安装java,执行bin/start.sh
    但是报错了。Syntax error: "(" unexpected
    尝试:兼容性问题,因为linux将sh默认指向了dash,而不是bash

    解决:

    在root下面执行 dpkg-reconfigure dash,选择no
    bixiaopeng@ubuntu:~/package$ su
    Password:
    root@ubuntu:/home/bixiaopeng/package# dpkg-reconfigure dash
    解决了。

    相关文章

      网友评论

          本文标题:2023-10-12 若依docker部署

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