当前位置: 首页 > news >正文

玻璃制品东莞网站建设收费网站建设视频教程免费下载

玻璃制品东莞网站建设,收费网站建设视频教程免费下载,银川兴庆建设局网站,云虚拟主机免费appsmith安装好#xff0c;那就可以看是练练手。 数据当然是来自数据库#xff0c;那就连接局域网中现成的一台数据库服务器试试#xff0c;但是连接数据库的时候一直错误。 找到/home/appsmith/backend 目录下的日志#xff0c;看到了错误#xff1a; [rootlocalhost bac…appsmith安装好那就可以看是练练手。 数据当然是来自数据库那就连接局域网中现成的一台数据库服务器试试但是连接数据库的时候一直错误。 找到/home/appsmith/backend 目录下的日志看到了错误 [rootlocalhost backend]# ls backend-29a34aa6233c.log  starting_page_init.log Failed to initialize pool: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12]. ClientConnectionId:f04af734-f327-4959-93af-3f6f051284c2 Exception occurred while creating connection pool. One or more arguments in the datasource configuration may be invalid. Please check your datasource configuration. 一阵查询在微软文档上找到了这个错误描述。 在 encrypt 属性为 true 且 trustServerCertificate 属性为 false 的情况下如果连接字符串中的服务器名称与 TLS 证书中的服务器名称不符则会出现以下错误The driver couldnt establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: java.security.cert.CertificateException: Failed to validate the server name in a certificate during Secure Sockets Layer (SSL) initialization. 。 在版本 7.2 及以上版本中驱动程序在 TLS 证书的服务器名称最左边的标签中支持通配符模式匹配。 很显然这个回答方向不对一堆废话appsmith不至于如此菜 回头去看appsmith的文档原来如此appsmith根本不支持这样的数据库连接方式。本地部署时它连接数据有三种方式 ********************************** Connect to Local Datasource This page describes how to connect a database or API that is hosted locally on the same machine as your Appsmith instance. Datasource on localhost: There are two methods:1.ngrok(Recommended): To connect to a local datasource on a self-hosted or an Appsmith cloud instance, expose the datasource via ngrok. For directions, see ngrok.2.host.docker.internal: This method is only for self-hosted users for connecting from the Docker container to a datasource on localhost. This is for development purposes and does not work in a production environment outside of Docker Desktop. For directions, see host.docker.internal.3.Datasource in Docker container: This guide is only for self-hosted users for connecting to a datasource in a Docker container. For directions, see Datasource in Docker ********************************** ngrok不喜欢host.docker.internal我也不喜欢幸好还有第三种方式连接另外一个容器中的数据源。 那就开始安装sql server容器。步骤一.创建数据存储目录,希望创建的数据库文件不要因为删除容器而被失误删除 [rootlocalhost home]# mkdir /home/sql_db_files 步骤二下载镜像 [rootlocalhost home]# docker pull mcr.microsoft.com/mssql/server:2022-latest 步骤三创建容器 [rootlocalhost home]# docker run -e ACCEPT_EULAY -e MSSQL_SA_PASSWORD2024Passw0rd \    -v  /home/sql_db_files:/var/opt/mssql \    -p 1433:1433 --name mssql --hostname mssql2022 \    -e MSSQL_PIDExpress \    -e MSSQL_COLLATIONChinese_PRC_BIN \    -e TZAsia/Shanghai \    -d \    mcr.microsoft.com/mssql/server:2022-latest 参数说明 ACCEPT_EULA confirms your acceptance of the End-User Licensing Agreement. MSSQL_SA_PASSWORD is the database system administrator (userid sa) password used to connect to SQL Server once the container is running.   这个SA密码必须要符合复杂度要求 MSSQL_PID is the Product ID (PID) or Edition that the container will run with. Acceptable values: Developer : This will run the container using the Developer Edition (this is the default if no MSSQL_PID environment variable is supplied)Express : This will run the container using the Express Edition Standard : This will run the container using the Standard Edition Enterprise : This will run the container using the Enterprise Edition EnterpriseCore : This will run the container using the Enterprise Edition Core 步骤四查看容器安装结果 [rootlocalhost home]# docker ps -a CONTAINER ID   IMAGE                                        COMMAND                  CREATED          STATUS                      PORTS                                                                      NAMES 19472a5fbb97   mcr.microsoft.com/mssql/server:2022-latest   /opt/mssql/bin/perm…   45 seconds ago   Exited (1) 44 seconds ago                                                                              mssql 29a34aa6233c   appsmith/appsmith-ce                         /opt/appsmith/entry…   7 days ago       Up 7 days (healthy)         0.0.0.0:80-80/tcp, :::80-80/tcp, 0.0.0.0:443-443/tcp, :::443-443/tcp   appsmith ba7d6e626f06   hello-world                                  /hello                 2 weeks ago      Exited (0) 2 weeks ago                                                                                 practical_hofstadter 2948ab27c7ce   hello-world                                  /hello                 2 weeks ago      Exited (0) 2 weeks ago                                                                                 cool_ritchie [rootlocalhost home]#  看起来不对劲看看日志原来处在目录权限上。 [rootlocalhost docker]# docker logs -f --until60s mssql SQL Server 2022 will run as non-root by default. This container is running as user mssql. To learn more visit https://go.microsoft.com/fwlink/?linkid2099216. /opt/mssql/bin/sqlservr: Error: The system directory [/.system] could not be created. File: LinuxDirectory.cpp:420 [Status: 0xC0000022 Access Denied errno 0xD(13) Permission denied] 修改存放数据目录的权限设置 [rootlocalhost docker]# chmod 777 /home/sql_db_files 步骤五: 重新安装容器 [rootlocalhost docker]# [rootlocalhost home]# docker run -d --name mssql --hostname  mssql\ -v  /home/sql_db_files:/var/opt/mssql \ -p 1433:1433  \ -e ACCEPT_EULAY -e MSSQL_SA_PASSWORD2024Passw0rd \ -e TZAsia/Shanghai \ -e MSSQL_PIDExpress \ -e MSSQL_COLLATIONChinese_PRC_BIN \ mcr.microsoft.com/mssql/server:2022-latest docker: Error response from daemon: Conflict. The container name /mssql is already in use by container 19472a5fbb977a9b707b6f4b5895d989370b61007f7a9f19f96265ad48c1e2a2. You have to remove (or rename) that container to be able to reuse that name. See docker run --help. 刚才没有安装成功导致那就删除 [rootlocalhost docker]# docker rm -f mssql 重新再安装后没出错再查看终于成功了 不可否认这Docker安装速度快的要死比起在操作系统上安装sql server 不知道要快多少倍。 [rootlocalhost docker]# docker ps -a CONTAINER ID   IMAGE                                        COMMAND                  CREATED          STATUS                   PORTS                                                                      NAMES b5b29ae870fd   mcr.microsoft.com/mssql/server:2022-latest   /opt/mssql/bin/perm…   25 seconds ago   Up 24 seconds            0.0.0.0:1433-1433/tcp, :::1433-1433/tcp                                  mssql 29a34aa6233c   appsmith/appsmith-ce                         /opt/appsmith/entry…   7 days ago       Up 7 days (healthy)      0.0.0.0:80-80/tcp, :::80-80/tcp, 0.0.0.0:443-443/tcp, :::443-443/tcp   appsmith ba7d6e626f06   hello-world                                  /hello                 2 weeks ago      Exited (0) 2 weeks ago                                                                              practical_hofstadter 2948ab27c7ce   hello-world                                  /hello                 2 weeks ago      Exited (0) 2 weeks ago                                                                              cool_ritchie 步骤六连接数据库修改sa密码 [rootlocalhost docker]# docker exec -it mssql bash mssqlmssql2022:/$ /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 2024Passw0rd 1 alter login sa with password 2025Passw0rd 2 ; 3 quit mssqlmssql2022:/$ exitexit 可以使用sql server 管理控制台成功连接容器中的数据库了但是在appsmith中连接时没有反应错误日志为连接错误 [2024-01-30 00:25:52,186] userEmailttapp.com, sessionIdb99a2476-5c35-4a71-9e8e-25c9c3292cfa, threadboundedElastic-38, requestIdea262c1d-722b-4176-aac7-4b062d7066b6 - Operator called default onErrorDropped com.appsmith.external.exceptions.pluginExceptions.AppsmithPluginException: Exception occurred while creating connection pool. One or more arguments in the datasource configuration may be invalid. Please check your datasource configuration. 看不出所以然, 真是路漫漫啊
http://www.zqtcl.cn/news/351495/

相关文章:

  • 网站建设的基本目标免费 wordpress企业主题
  • 专业网站建设微信商城开发规划馆网站建设
  • 网站建设公司沈阳西安建设工程信息交易中心官网
  • 青海住房和城乡建设部网站wordpress php7.3
  • 网站后台重置密码怎么做360网站怎么做网址链接
  • 广告网站建设及推广网站建设怎样推广
  • 做网站使网页不居中滁州注册公司流程和费用
  • 做网站广告经营者个性定制网站
  • 网站开发 北京外包公司软件公司网站建设
  • 网络认证入口seo免费诊断
  • 十大知名博客网站郑州企业建站公司定制
  • 视频网站如何做引流网站首页 关键词
  • 建设机械网站精英大港做网站
  • 潜山网站建设公司哪里有wordpress相册投票插件
  • 网站建设制作过程网站添加支付功能
  • 网站制作字体即墨公司做网站
  • vue 做pc网站可以吗哪个网站买域名便宜
  • 做销售网站那家好金华住房与城乡建设部网站
  • apple私人免费网站怎么下载无锡网站建设技术
  • 移动应用网站开发阶段作业信息型网站有哪些
  • 监控直播网站开发网站建设与管理总结
  • 青岛城阳网站设计免费网站成品
  • 做服装外贸的网站ghost wordpress
  • 建设银行的网站为什么这么卡网页设计用啥软件
  • 电子商务 网站开发南阳网网站建设
  • 中小型企业网络拓扑图及配置株洲seo网站推广
  • 中国镇江网站如何搭建自己的网址
  • wordpress 自动广告seo搜索引擎优化原理
  • 区块链网站用vue.js做怎么样长春站建筑
  • 集团公司门户网站建设adsl做网站