自家的软件安装后,需要更新,更新文件完成后还需要修改注册表中关于程序的版本号。 软件安装后,会被写入注册表中。 所以只需要修改注册表的 DisplayVersion 即可,不同的程序可能还需要修改其它属性,例如 Version、DisplayName。 修改注册表可能需要管理员权限,这要看软件是[......] 继续阅读

2023年10月23日 0条评论 1890点热度 0人点赞 痴者工良 阅读全文

After installing the software, it requires an update. Once the update file is complete, the version number of the program in the registry also needs[......] 继续阅读

2023年10月23日 0条评论 1920点热度 0人点赞 痴者工良 阅读全文

以 Linux 为例,在 Go 中调用一个命令行程序,其代码示例如下: package main import ( "log" "os" "os/exec" ) func main() { cmd := exec.Command("top") cmd.S[......]继续阅读

2021年10月5日 0条评论 3043点热度 2人点赞 痴者工良 阅读全文

In the context of Linux, here's how to invoke a command-line program in Go, with the example code as follows: package main import ( "log&quo[......]继续阅读

2021年10月5日 0条评论 3053点热度 2人点赞 痴者工良 阅读全文

程序关闭后,端口已经被占用,使用 netstat -npla | grep {端口号} 可以看到被占用的端口及进程号,但是使用 kill 却提示找不到进程。 1、强制杀死该端口进程 sudo fuser -k -n tcp 80 2、根据PID关闭某个被占用的端口 netst[......]继续阅读

2019年12月7日 1条评论 5577点热度 1人点赞 痴者工良 阅读全文

After the program is closed, the port is already in use. Using netstat -npla | grep {port_number} you can see the occupied port and process ID, but us[......] 继续阅读

2019年12月7日 1条评论 62点热度 1人点赞 痴者工良 阅读全文