go的环境设置问题,执行 go env -w GO111MODULE=auto 我的环境:Windows 7, Go 1.17 D:\Apps\GOPATH\src\code.oldboyedu.com\studygo>cd day01 D:\Apps\GOPATH\src\code.oldboyedu.com\studygo\day01>cd helloworld D:\Apps\GOPATH\src\code.oldboyedu.com\studygo\day01\helloworld&g…
https://golangbyexample.com/go-mod-sum-module/ Understanding go.sum and go.mod file in Go (Golang) – Welcome To Golang By Example https://golangbyexample.com/go-mod-sum-module/ Table of Contents Overview Example Example of indirect dependency in go.m…
17down votefavorite 4 In my Dockerfile I've got : ADD ../../myapp.war /opt/tomcat7/webapps/ That file exists as ls ../../myapp.war returns me the correct file but when I execute sudo docker build -t myapp . I've got : Step 1 : ADD ../../myapp.war /op…
[环境介绍] 系统环境:Solaris + Oracle 12CR2   [背景描述] 基于集团数据库安全检查项,需要把sys用户锁定或者修改复杂口令整改. 在整改前已经对参数remote_login_passwordfile进行修改. 漏洞项:禁止SYSDBA用户从远程登陆修复方法:(紧急,无具体操作方案)在spfile中设置REMOTE_LOGIN_PASSWORDFILE=NONE来禁止SYSDBA用户从远程登陆:SQL>alter system set remote_login_pass…
使用sudo pip install ......的时候出现下面一段黄色的代码: The directory '/home/stone/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip…
在项目中的go.mod文件中有这样一句: require ( github.com/xxx-devops/xx1/sdk/go v2.2.3 ) 项目的编译没有问题,但是goland中出现如下提示: go: errors parsing go.mod: D:/source/github/ahfuzhang/go.lib/go.mod:8: require github.com/xxx-devops/xx1/sdk/go: version "v2.2.3" invalid: module…
$ brew install php70-mcrypt 报错: Error: parent directory is world writable but not sticky 搜索到github的答案 https://github.com/Homebrew/legacy-homebrew/issues/40345 原因:/tmp目录权限不对 $ ls -ld /private/tmp 打印出来 /private/tmp 被标黄了 解决办法: $ sudo chmod +t /tmp $ ls…
在本地安装pyenv的时候,出现了如下的报错: ➜ brew install pyenv ==> Downloading https://github.com/yyuu/pyenv/archive/v20160310.tar.gz Already downloaded: /Library/Caches/Homebrew/pyenv-20160310.tar.gz Error: parent directory is world writable but not sticky Please rep…
文件流 FileStream  可读可写  大文件  释放 StreamReader 读取   释放 StreamWriter 写入   释放 using 中释放 File 可读可写  小文件 操作文件,静态类,对文件整体操作.拷贝.删除.剪切等. Path类 针对字符串进行操作 文件操作 重点讲解FileStream.StreamReader.StreamWriter.File.Directory.Path这几个类. FileStream,通过大文件拷贝的案例. string str = "今…
前言:项目测试需要用到mssqlserver数据库连接,遇到坑,自己爬直接上代码:       package main import ( "database/sql" "fmt" "strings" _ "github.com/denisenkom/go-mssqldb" ) func main() { var sqlConnStr=fmt.Println(strings.Join(conf, ";"))…