Run

go build 跟 go run 的区别

go build 和 go run 是 Go 语言中两个常用的命令,它们的主要区别在于编译和执行的过程。 1.go run go run 命令用于编译并运行 Go 程序。它将源代码直接编译成可执行文件,并立即运行该文件。这个命令非常适合用于快速测试和运行小规模的代码片段。 使用 go run 命令时 ......
build go run

mvn spring-boot:run启动项目时报: parse data from Nacos error 错误

spring boot 项目, 通过命令: mvn spring-boot:run 启动时, 在读取nacos配置时, 提示报错如下: c.a.c.n.c.NacosPropertySourceBuilder : parse data from Nacos error,dataId:applicat ......
spring-boot 时报 错误 项目 spring

T402161 run 题解

Link T402161 run Question 亮亮总共要跑 \(n\) 圈,可以分成多次,但是每次跑的圈数必须要比上一次跑的多,求跑完 \(n\) 圈的方案数 Solution 显然动态规划 定义 \(F[i][j]\) 表示一共跑了 \(i\) 圈,最后一次跑了 \(j\) 圈的方案数,转移 ......
题解 T402161 402161 run

springboot学习之——SpringApplication.run方法

springboot学习之——SpringApplication.run方法 目录springboot学习之——SpringApplication.run方法第一步第二步ConfigurableApplicationContext springboot 版本3.1.5 第一步 /** * Stati ......
SpringApplication springboot 方法 run

多线程之start()和run()

在实例调用的函数中加入打印当前线程的名字,分别用start()方法和run()方法启动线程检查有什么区别: start() 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 import threading import t ......
线程 start run

npm run dev 一种出错

Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:69:19) at Object.createHash (node:crypto:133:10) a ......
npm dev run

Docker - Run PostgreSQL database

zzh@ZZHPC:~$ docker pull postgres:alpine zzh@ZZHPC:~$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE postgres alpine 642d75c6be0c 9 days ago 245MB ......
PostgreSQL database Docker Run

Shell - Run a script with environment variables

zzh@ZZHPC:/zdata/Github/microservices/order/cmd$ DATA_SOURCE_URL="root:verysecretpass@tcp(127.0.0.1:3306)/order" \ > APPLICATION_PORT=3000 \ > ENV=dev ......
environment variables script Shell with

Docker - Run MySQL database with docker

zzh@ZZHPC:~$ docker run -p 3306:3306 -e MYSQL_ROOT_PASSWORD=verysecretpass -e MYSQL_DATABASE=order mysql In this case, our data source URL isroot:very ......
database Docker docker MySQL with

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

docker-compose up -d 安装docker环境,提示一下错误:docker-compose 命令没发现。 docker compse up -d 报错: Cannot connect to the Docker daemon at unix:///var/run/docker.soc ......
daemon docker the connect running

拉取项目运行npm run dev报错

1、npm指定版本更换 npm -g install npm@6.14.11 2、更换最新版本 npm install -g npm 3、加载依赖报错 npm install --force ......
项目 npm dev run

RuntimeError: The scheduler seems to be running under uWSGI, but threads have been disabled. You must run uWSGI with the --enable-threads option for the scheduler to work报错

解释 RuntimeError: The scheduler seems to be running under uWSGI, but threads have been disabled. You must run uWSGI with the --enable-threads option fo ......

docker run 容器启动后,想要新增端口映射和设置自动重启的方式

关于新增自动重启 (新版本docker支持,老版本不支持,请看第二种方式) 一。要在已经运行的 Docker 容器中增加自动重启的选项,你可以使用 docker update 命令来更新容器的配置。具体步骤如下: 首先,使用 docker ps 命令列出所有正在运行的容器,并找到你想要设置自动重启的 ......
端口 容器 方式 docker run

ERROR: npm v10.2.1 is known not to run on Node.js v14.16.0. npm版本降级用法介绍

一、为什么需要npm版本降级 1、由于不同版本之间可能存在兼容性问题,需要将版本降为可以支持的版本。 2、某些应用程序可能只支持特定的npm版本,因此需要将npm版本降级到兼容的版本。 3、某些时候新版本的npm会导致应用程序不稳定或出现问题,因此需要将npm版本降级到稳定的版本。 为避免这些问题, ......
npm 版本 ERROR known Node

Shell系列---【常用脚本之---java启动脚本:run.sh】

run.sh #!/bin/sh -l application=node_exporter PORT=1888 CUR_IP=${hostname -I | awk '{print $1}'} command="/opt/app/middles/node_exporter/node_exporter ......
脚本 常用 Shell java run

[934] Run the python file directly (ArcGIS Pro)

ref: The Edit with IDLE and Run with ArcGIS Pro options are not available in the context menu when right-clicking Python files Description In some ins ......
directly ArcGIS python file 934

Python:重装Python后,在pycharm运行报错——Cannot run program "C:\Users\*****\Python36\python.exe" (in directory "E:\www\python_tony\spider"): CreateProcess error=2, 系统找不到指定的文件。

电脑重装Python后,重新打开Pycharm执行python,发现报错:Cannot run program "C:\Users\***\Python36\python.exe" (in directory "E:\www\python_tony\spider"): CreateProcess e ......
quot Python python CreateProcess python_tony

java项目树出现了红色时针标记,run mian方法时无反应

java的左侧项目树出现了红色的时针标记, 导致java类的代码中String 、System等关键字出现红色错误, 解决办法, 右键src--mark directory as --source root,即可 后续问题:run mian方法时无反应 逻辑、配置等都没问题,就是死活没反应。看来一堆 ......
时针 标记 红色 方法 项目

Qt - 多线程之QtConcurrent::run()

QT多线程之QtConcurrent::run() QT有几种可以实现多线程编程的方式,其中最方便使用,最便携的一定是QtConcurrent::run()了,这是一个模板函数,有很多的重载原型。 //在新的线程中调用普通函数 template <typename T> QFuture<T> QtC ......
线程 QtConcurrent run Qt

Docker启动失败,报错Cannot connect to the Docker daemon at unix:///var/run/docker 完美解决方案

问题描述: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? 首次安装docker后,服务没有自启动 解决方案: 查看docker状态 1 service ......
Docker 解决方案 connect 方案 Cannot

Docker启动报错:Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

问题描述: Docker启动报错:Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? Cannot connect to the Docker daemon ......
Docker daemon docker the connect

git Bash 执行 node npm run prod 执行报错?

在本地执行 ` npm run prod prod npm run production 'npm' is not recognized as an internal or external command, operable program or batch file. ` 大概意思是npm没有配 ......
Bash node prod git npm

IDEA 如何开启Run Dashboard

使用场景 IDEA开发工具中以 run 或 debug 方式启动多个 SpringBoot 应用时, 日志控制台排开在窗口上方, 服务间调用涉及日志追踪时, 不方便快速切换来查看日志信息 . 如下图所示: IDEA提供了强大Dashboard功能(运行仪表盘), 可以很好的将上面的多应用启动实例进行 ......
Dashboard IDEA Run

cron: can’t lock /var/run/crond.pid 错误处理方法

解决方案: rm -rf /var/run/crond.pid 重启即可 重新加载 处理方法: /etc/init.d/cron reload 重启服务 处理方法:/etc/init.d/crond restart 或者 杀掉crond进程:pkill crond或者pkill cron,然后/et ......
错误 方法 crond cron lock

使用IDEA可以run但没有办法debug

使用IDEA可以run但没有办法debug 在使用idea的过程中,遇到程序可以运行但是一debug就报错的解决办法 一般出现这个报错的原因是JRE的路径设置有误。 错误如下: 我也是尝试了很多办法后,发现解决办法如下: JRE这里要使用自己的JRE路径,不要使用idea默认default的路径,改 ......
办法 debug IDEA run

idea调试debug运行不起来,而run无影响的解决方法

idea调试debug运行不起来,而run无影响的解决方法 最近在改bug的时候发现debug等半天,比平时多花十倍以上的时间,给我搞郁闷了 最后找到了原因和解决方法 原因如下: idea会在debug的时候左下角给你警示“Method breakpoints may dramatically sl ......
方法 debug idea run

【gdb】run和start区别

run和start区别 gdb调试器提供了多种方式来启动目标程序,其中最常用的就是 run 指令,其次为 start 指令。也就是说,run 和 start 指令都可以用来在gdb调试器中启动程序,它们之间的区别是: 1、默认情况下,run 指令会一直执行程序,直到执行结束。如果程序中手动设置有断点 ......
start gdb run

To install it, you can run: npm install --save svg-baker-runtime/browser-symbol

运行vue项目npm run dev命令报错 报错信息: 错误提示: To install it, you can run: npm install --save svg-baker-runtime/browser-symbol 解决: npm install --save regenerator- ......

MAC Office 插件异常 Run-time error '53'

问题描述: Office版本和Mathtype版本不兼容,卸载mathtype后,加载项无法加载出现如下报错: File not found: /Library/Application Support/Microsoft/Office365/User Content.localized/Startu ......
插件 Run-time Office error 39

Vue工程中 main.js 的作用、npm run serve的执行流程

1.内容: import Vue from 'vue' //导入 Vue 核心包 import App from './App.vue' //导入 App.vue 根组件 Vue.config.productionTip = false //提示当前处于什么环境(生产环境 / 开发环境),fasle ......
流程 作用 工程 serve main