无法在Docker容器中执行二进制文件,但从主机执行

I have a docker container based on composer:1.8(based on php:7-alpine).

Inside the container I download a tar.gz via php, decompress it and extract it which works fine. This contains a Go binary I want to execute. When executing the binary inside the docker container I get this error message: ./bin/<binary>: No such file or directory. On my host machine I can execute this binary downloaded inside the docker container perfectly fine.

If it is important I start the docker container with: docker run -it --rm --volume=$PWD:/usr/src/myapp -u $(id -u):$(id -g) --name ec ec /bin/bash

I also tried to run readelf -a <binary> after installing it, but that doesn't have any effect.

bash-4.4$ ls -l <binary> && echo userid: $(id -u) && echo groupid: $(id -g) && uname -om && ./<binary>
-rwxr-xr-x    1 1000     985        7582050 Mar 15 17:09 <binary>
userid: 1000
groupid: 985
x86_64 Linux
bash: ./<binary>: No such file or directory

What can I do to make this work?

dongyou6909
dongyou6909 您的$PWD是常数吗?例如,您可以在容器内执行ls并查找其他文件吗?或者,也许您可​​以尝试触摸主机上的虚拟文件,然后通过您的容器执行ls并验证设置是否符合预期。
一年多之前 回复

1个回答



这是因为二进制文件是使用 glibc </ code>编译的,而alpine是使用 musl </ code>编译的。 n我已经解决了在构建时将我的二进制文件传递给 CGO_ENABLED = 0 </ code>环境变量</ p>
</ div>

展开原文

原文

It's because the binary is compiled using glibc and alpine using musl. I've got around with it to pass my binary the CGO_ENABLED=0 environment variable while building

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
在Docker容器中运行go二进制文件时找不到Spatialite扩展

<div class="post-text" itemprop="text"> <p>I am setting up a Spatialite database (SQLite + Spatialite extension) and an associated Go program running in a docker container that queries the database and returns data.</p> <p>Go-spatialite, in my understanding will dynamically load the spatialite library at runtime in order to query the database. Everything runs fine when running the Go program locally and querying the service with Postman.</p> <p>However, when using the container, the Go program fails to find the spatialite extension:</p> <pre><code>"error":"shaxbee/go-spatialite: spatialite extension not found." </code></pre> <p>I use <a href="https://github.com/shaxbee/go-spatialite" rel="nofollow noreferrer">go-spatialite (shaxbee) package</a> and <code>database/sql</code> package. I have installed Spatialite locally.</p> <p>I open the database connection like this:</p> <pre><code>db, err := sql.Open("spatialite", "path/to/my/db") if err != nil { logVar.WithError(err).Fatal("Impossible to open database") } if err := db.Ping(); err != nil { logVar.WithError(err).Fatal("Cannot connect to database") } </code></pre> <p>I used this <a href="https://github.com/terranodo/spatialite-docker/blob/master/Dockerfile" rel="nofollow noreferrer">Dockerfile</a> to adapt mine (that is based on alpine-glibc) in order to install the Spatialite library during image building. According to the <a href="https://github.com/shaxbee/go-spatialite/blob/master/spatialite.go" rel="nofollow noreferrer">Spatialite package</a>, it looks for different for spatialite library and load it.</p> <p>When checking <code>/usr/local/lib/</code> in the container, the libraries are there:</p> <pre><code>libspatialite.a libspatialite.la libspatialite.so libspatialite.so.7 libspatialite.so.7.1.0 libsqlite3.so libsqlite3.so.0 libsqlite3.so.0.8.6 </code></pre> <p>It seems to me that the program does not know where to get the libraries. Do you have any ideas ? </p> <p>Thanks</p> </div>

二进制文件怎么部署在docker上运行?

我现在有同事写下的metchainclound.rar文件(golang源码,连接的postgreSQL) 想把这个文件生成镜像文件 然后在容器里run起来 Dockerfile 都需要配置什么 怎么配置

Go编译的二进制文件不会在Ubuntu主机上的高山Docker容器中运行

<div class="post-text" itemprop="text"> <p>Given a binary, compiled with Go using <code>GOOS=linux</code> and <code>GOARCH=amd64</code>, deployed to a <code>docker</code> container based on <code>alpine:3.3</code>, the binary will not run if the docker engine host is Ubuntu (15.10):</p> <pre><code>sh: /bin/artisan: not found </code></pre> <p>This same binary (compiled for the same OS and arch) will <strong>run just fine</strong> if the docker engine host is <code>busybox</code> (which is the base for <code>alpine</code>) deployed within a VirtualBox VM on Mac OS X.</p> <p>This same binary will also run perfectly fine if the container is based on one of Ubuntu images.</p> <p><strong>Any idea what this binary is missing?</strong></p> <p>This is what I've done to reproduce (successful run in VirtualBox/busybox on OS X not shown):</p> <p>Build (building explicitly with flags even though the arch matches):</p> <pre><code>➜ artisan git:(master) ✗ GOOS=linux GOARCH=amd64 go build </code></pre> <p>Check it can run on the host:</p> <pre><code>➜ artisan git:(master) ✗ ./artisan 10:14:04.925 [ERROR] artisan: need a command, one of server, provision or build </code></pre> <p>Copy to docker dir, build, run:</p> <pre><code>➜ artisan git:(master) ✗ cp artisan docker/build/bin/ ➜ artisan git:(master) ✗ cd docker ➜ docker git:(master) ✗ cat Dockerfile FROM docker:1.10 COPY build/ / ➜ docker git:(master) ✗ docker build -t artisan . Sending build context to Docker daemon 10.15 MB Step 1 : FROM docker:1.10 ... ➜ docker git:(master) ✗ docker run -it artisan sh / # /bin/artisan sh: /bin/artisan: not found </code></pre> <p>Now changing the image base to <code>phusion/baseimage</code>:</p> <pre><code>➜ docker git:(master) ✗ cat Dockerfile #FROM docker:1.10 FROM phusion/baseimage COPY build/ / ➜ docker git:(master) ✗ docker build -t artisan . Sending build context to Docker daemon 10.15 MB Step 1 : FROM phusion/baseimage ... ➜ docker git:(master) ✗ docker run -it artisan sh # /bin/artisan 08:16:39.424 [ERROR] artisan: need a command, one of server, provision or build </code></pre> </div>

如何从二进制文件在Docker上运行Go Server

<div class="post-text" itemprop="text"> <p>I have been trying to make a Dockerfile, that would let me build my go server as binary and then run it either from the scratch image or alpine. The server works fine locally, on macOS 10.13.5, and I made it work when it wasn't from binary on Docker. </p> <p>I keep getting this error:</p> <blockquote> <p>standard_init_linux.go:190: exec user process caused "exec format error"</p> </blockquote> <p>I have been googling around and found something about system architecture. I am not sure how to check if that is the error and/or how to fix it. </p> <p>Any hints for debugging or possible fix are much appreciated.</p> <p>My Dockerfile:</p> <pre><code>FROM golang:1.10.3 as builder WORKDIR /go/src/gitlab.com/main/server COPY . . RUN go get -d -v ./... RUN CGO_ENABLED=0 GOOS=linux go build -a -o main . FROM scratch ADD main / CMD ["/main"] </code></pre> <p>The output:</p> <pre><code>Building go Step 1/9 : FROM golang:1.10.3 as builder ---&gt; 4e611157870f Step 2/9 : WORKDIR /go/src/gitlab.com/main/server Removing intermediate container 20cd4d66008b ---&gt; 621d9fc02dde Step 3/9 : COPY . . ---&gt; cab639571baf Step 4/9 : RUN go get -d -v ./... ---&gt; Running in 7681f9adc7b2 Removing intermediate container 7681f9adc7b2 ---&gt; 767a4c9dfb94 Step 5/9 : RUN go build -a -installsuffix cgo -o main . ---&gt; Running in a6ec73121163 Removing intermediate container a6ec73121163 ---&gt; b9d7d1c0d2f9 Step 6/9 : FROM alpine:latest ---&gt; 11cd0b38bc3c Step 7/9 : WORKDIR /app ---&gt; Using cache ---&gt; 6d321d334b8f Step 8/9 : COPY . . ---&gt; 048a59fcdd8f Step 9/9 : CMD ["/app/main"] ---&gt; Running in d50d174644ff Removing intermediate container d50d174644ff ---&gt; 68f8f3c6cdf7 Successfully built 68f8f3c6cdf7 Successfully tagged main_go:latest Creating go ... done Attaching to go go | standard_init_linux.go:190: exec user process caused "exec format error" go exited with code 1 </code></pre> </div>

在Docker容器中内置的Golang二进制文件,仍然是Mach-O可执行格式吗?

<div class="post-text" itemprop="text"> <p>I could really use some help here. What I am trying to do is use the standard golang:1.5 Docker image to build a Go binary, then copy that binary out of the container and into a new minimal Docker container based on busybox. The binary is pulled out of the container using a Docker mounted volume. There are two problems so far that I have run into. </p> <ol> <li><p>The resulting binary on the host (and subsequently copied into the second container) still seems to be a Mach-O 64-bit executable when running the <code>file</code> command. Is the Docker container somehow getting GOOS and GOARCH from the host?</p></li> <li><p>When manually running the container with <code>bash</code> and building the Go binary, it now says it is an ELF executable but it is dynamically linked. I thought by default built statically linked binaries? I could just be wrong in this assumption.</p></li> </ol> <p>Thanks in advance for any help you can provide. </p> <p>EDIT: Here are the commands I am using. Hopefully this makes it a bit more clear</p> <pre><code>## golang:1.5 base image with WORKDIR set to $GOPATH/src/myproject the source ## for the project was added in when creating the 'mybuild_img' docker image ## GOPATH is set automatically in the golang image. docker run -i -v `pwd`/jenkins/out:$GOPATH/src/myproject/jenkins/out mybuild_img:latest bash -c 'go build &amp;&amp; cp myproject ./jenkins/out' </code></pre> <p>Once the container is done running I have a Mach-O 64-bit executable in ./jenkins/out/. I'm not sure if this is some kind of weird behavior with docker-machine/boot2docker or anything like that. Just seems really weird. I have confirmed that if i set <code>GOOS=linux GOARCH=amd64</code> before the <code>go build</code> command, then I do get an executable of the correct type. Just trying to figure out what is going on here.</p> </div>

如何使用go build创建可以在docker容器中运行的动态可执行二进制文件?

<div class="post-text" itemprop="text"> <p>I use cross compile to compile a linux version binary on Mac. </p> <pre><code>GOOS=linux GOARCH=amd64 go build </code></pre> <p>Also tried the other command that I found on stack overflow. </p> <pre><code>GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o targetBinary </code></pre> <p>This binary can run in Linux VM. But when I copy this binary to a linux docker container and run it. It can not run anymore. </p> <p>My docker file is like this</p> <pre><code>FROM oraclelinux:7.5 COPY targetBinary / </code></pre> <p>I also use ldd to check target and docker reports this result</p> <pre><code>[root@7578c118fe27 /]# ldd targetBinary not a dynamic executable </code></pre> </div>

在docker文件中执行go build -o / bin / go_docker时找不到二进制文件

<div class="post-text" itemprop="text"> <p>below is the content of the dockerfile</p> <pre><code>FROM golang:1.8 as goimage ENV SRC=/go/src/ RUN mkdir -p /go/src/ RUN mkdir /go/src/go_docker WORKDIR /go/src/go_docker RUN cd /go/src/go_docker COPY StoreImage.go . RUN go build -o /bin/go_docker CMD ["/bin/go_docker"] </code></pre> <p>Docker build is successful for the above content.. But dont see the binary file generated in /bin/go_docker</p> <p>Can someone please help me with this.</p> </div>

docker容器中,主机可以ping通虚拟机,但是ping不通docker容器

最近研究docker容器发现几个问题有几点疑惑: 1.首先自己的ISO文件打成tar包后导如容器中,防火墙fiter、nat表丢失,启动也启动不了,百度能查到的基本都试了,貌似没什么用,而且虚拟机还ping不通docker地址; 2.我想把mysql、java之类的放在一个镜像容器中,从仓库中检索了一个centos6系统出来,发现这次mysql也连接不上,ping了一下,虚拟机和docker能互通(不同网段),主机和虚拟机能互通(同一网段内),结果就是主机ping不通docker容器,防火墙之类的已关闭,路由表也书写了,愣是通不了

用于构建Golang二进制文件的Docker映像

<div class="post-text" itemprop="text"> <p>I have a Go application that I build into a binary and distribute as a Docker image.</p> <p>Currently, I'm using <code>ubuntu</code> as my base image, but this causes an issue where if a user tries to use a Timezone other than UTC or their local timezone, they get an error stating:</p> <pre><code>pod error: panic: open /usr/local/go/lib/time/zoneinfo.zip: no such file or directory </code></pre> <p>This error is caused because the <a href="https://golang.org/pkg/time/#LoadLocation" rel="nofollow noreferrer">LoadLocation</a> package in Go requires that file.</p> <p>I can think of two ways to fix this issue:</p> <ol> <li><p>Continue using the <code>ubuntu</code> base image, but in my Dockerfile add the commands: <code>RUN apt-get install -y tzdata</code></p></li> <li><p>Use one of Golang's base images, eg. <code>golang:1.7.5-alpine</code>.</p></li> </ol> <p>What would be the recommended way? I'm not sure if I need to or should be using a Golang image since this is the container where the pre-built binary runs. My understanding is that Golang images are good for building the binary in the first place.</p> </div>

如何为Docker Alpine映像构建静态Go二进制文件?

<div class="post-text" itemprop="text"> <p>I want to build a Go 1.9.2 binary and run it on the Docker Alpine image. The Go code I wrote doesn't call any C code. It also uses the <code>net</code> package. Unfortunately it hasn't been as simple as it sounds as Go doesn't seem to quite build static binaries all the time. When I try to execute the binary I often get cryptic messages for why the binary didn't execute. There's quite a bit of information on the internet about this but most of it ends up with people using trial an error to make their binaries work.</p> <p>So far I have found the following works, however I don't know why, if it is optimal or if it could be simplified.</p> <pre><code>env GOOS=linux GARCH=amd64 go install -v -a -tags netgo -installsuffix netgo -ldflags "-linkmode external -extldflags -static" </code></pre> <p>What is the canonical way (if it exists) to build a Go binary that will run on the Alpine 3.7 docker image? I am happy to use <code>apk</code> to install packages to the Alpine image if that would make things more efficient/easier. (Believe I need to install <code>ca-certificates</code> anyway.)</p> </div>

去安装无法生成二进制文件

<div class="post-text" itemprop="text"> <p>There are two folds to this problem:</p> <p>1) Go install not able to generate binary</p> <pre><code>go version go1.7.3 linux/amd64 go env: GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/opt/gopath" GORACE="" GOROOT="/opt/go" GOTOOLDIR="/opt/go/pkg/tool/linux_amd64" CC="gcc" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build831334660=/tmp/go-build -gno-record-gcc-switches" CXX="g++" CGO_ENABLED="1" </code></pre> <p>Source of the program: <code>https://github.com/hyperledger/fabric</code></p> <p>Working dir: <code>/opt/gopath/src/github.com/hyperledger/fabric</code></p> <p>Main program to build: <code>/opt/gopath/src/github.com/hyperledger/fabric/peer/main.go</code></p> <p>Build command:</p> <pre><code>CGO_ENABLED=0 GOBIN=/opt/gopath/bin go install -x -ldflags " -X github.com/hyperledger/fabric/common/metadata.Version=1.0.0-snapshot-d6fbfcf -X github.com/hyperledger/fabric/common/metadata.BaseVersion=0.3.0 -X github.com/hyperledger/fabric/common/metadata.BaseDockerLabel=org.hyperledger.fabric -X github.com/hyperledger/fabric/common/metadata.DockerNamespace=hyperledger -X github.com/hyperledger/fabric/common/metadata.BaseDockerNamespace=hyperledger -linkmode external -extldflags -static -lpthread" github.com/hyperledger/fabric/peer </code></pre> <p>I expect the binary built in <code>/opt/gopath/bin</code> but there was nothing there.</p> <p>It shows on the console that series of .a files were built and moved to <code>/opt/gopath/pkg/linux_amd64/</code> Eventually program stopped and no binary was built. This is true regardless CGO_ENABLED was set to 0 or 1.</p> <p>Somehow the program thoughts it was done, without linking the object files and building the binary? Any other debugging measures that I can use to look further into it?</p> <p>2) The 'Go install' command was taken from Makefile </p> <pre><code>@$(DRUN) \ -v $(abspath build/docker/bin):/opt/gopath/bin \ -v $(abspath build/docker/$(TARGET)/pkg):/opt/gopath/pkg \ hyperledger/fabric-baseimage:$(BASE_DOCKER_TAG) \ go install -compiler gccgo -ldflags "$(DOCKER_GO_LDFLAGS)" $(pkgmap.$(@F)) where DRUN = docker run -i --rm $(DOCKER_RUN_FLAGS) \ -v $(abspath .):/opt/gopath/src/$(PKGNAME) \ -w /opt/gopath/src/$(PKGNAME) </code></pre> <p>The <code>'Go install'</code> command was run inside a docker container, which was started the same way the Makefile specified. The only difference was that I was doing it manually, in two shots, i.e. start docker container + go install. If I were to build it with Makefile in one shot, it would work just fine.</p> <p>Is there any catch/caveat on using this <code>'docker run &lt;image&gt; go install &lt;args&gt;'</code> style command?</p> </div>

为golang静态二进制文件构建,部署,推送docker映像

<div class="post-text" itemprop="text"> <p>I am looking for a solution to a simple configuration problem to solve; it has been nagging me for quite some time now. :)</p> <p>I have a golang project on github which gives me a static binary, and uses godeps.</p> <p>Now I want to ensure that the <code>godep go install ...</code> command can be run after a git clone and a docker container be built from this newly built binary locally.</p> <p>As an option, the user should be able to push it to docker hub or a private repo as applicable.</p> <p>I am thinking of using Makefiles, but that seems too complicated (set the gopath, then godep build, modify the Dockerfile dynamically to point to the place where the binary is located, then a docker build).</p> <p>Is there an easier way to do it?</p> </div>

非宿主机外部访问docker容器问题

简单介绍一下我的环境: 1、docker宿主机(os:centos7, ip:192.168.0.100) 2、宿主机中用brctl新建一个虚拟网桥bridge0(brctl addbr bridge0),并分配IP为192.168.227.1 (ifconfig bridge0 192.168.227.1 netmask 255.255.255.0) 3、然后docker容器以网桥方式用pipework挂到bridge0下: docker run -idt --privileged -h="h2" -p 80:80 --net=none --name h2 7322fbe74aa5 /sbin/init pipework bridge0 h2 192.168.227.2/24@192.168.227.1 综上所诉:宿主机和非宿主机都是192.168.0网段;而docker容器是192.168.227网段 现在的问题是: 我用一台非宿主机(os:win8, ip:192.168.0.101)试图连docker容器h2失败(ping 192.168.227.2 不通),而宿主机ping 192.168.227.1和192.168.227.2 都是能ping通的,在容器h2中ping这台win8机器也能ping通,而且能访问公网。要怎么设置才能让一台非宿主机在外部直接访问容器?比如用ssh直接从192.168.0.101登录到192.168.227.2中?

如何从正在运行的Docker容器中读取文件和标准输出

<div class="post-text" itemprop="text"> <p>我该如何在主机中启动应用程序以便从正在运行的Docker容器中读取文件和标准输出? 其实我想这样做:</p> <pre><code>docker start containerid ./myapp // This app will *somehow* have access files and stdout generated by the container I just stared. </code></pre> <p>我该怎么做呢?更具体地说,我想说的是;我想从docker容器中读取日志和标准输出,并在其他地方处理这些日志。 我也愿意创建另一个docker容器,它可以从另一个容器读取文件和标准输出,但我不知道这是否是可能的。</p> </div>

在另一个容器docker中执行另一个容器命令

<div class="post-text" itemprop="text"> <p>I have 2 containers: a Redis container and a container for a Golang application. My Golang application is trying to perform Redis Mass Insertion (<a href="https://redis.io/topics/mass-insert" rel="nofollow noreferrer">https://redis.io/topics/mass-insert</a>) by executing a bash script with the command <code>cat ${FILE}| redis-cli --pipe -h ${HOST}</code>. </p> <p>However, <code>redis-cli</code> is not found within the PATH system variable and it is not a built-in shell command in the Golang application service.</p> <p>Hence, I get an <code>exit status 127</code>, which means the given command in not found. I would like to know how I would be able to execute the bash script without <code>redis-cli</code> command in the Golang application service.</p> </div>

docker宿主机随机端口映射了docker容器,如何让docker容器知道宿主机的IP与映射端口呢?

本人使用springcloud+docker的结构搭建微服务,现在遇到的问题是: docker宿主机使用-P命令随机端口绑定的docker指定端口(比如每个容器都暴露8080端口), 但是容器中无法知道宿主机的ip和映射端口,即eureka上的实例不知道暴露给外部的什么访问IP和端口(宿主机IP和宿主机port)。 请教各位大神,此问题该如何解决,谢谢! **【docker显示宿主机的随机端口32773映射了容器8080端口】** ![图片说明](https://img-ask.csdn.net/upload/201908/11/1565453714_366300.png) **【Eureka显示是容器端口8080,而非宿主机映射端口】** ![图片说明](https://img-ask.csdn.net/upload/201908/11/1565453818_448472.png)

无法从主机访问docker容器内的服务器

<div class="post-text" itemprop="text"> <p>I am hosting a <code>mysql</code> server and a <code>go</code> http server in docker. I am unable to hit the http server from my host machine. My host machine is a mac.</p> <p>I have tried using <code>localhost:8080</code> and <code>ipofserver:8080</code>. I get the <code>ip</code> from the <code>docker inspect</code>. I am able to connect to my <code>mysql</code> server from my host, but i can't hit the server from the host.</p> <p>Here is my <code>docker ps</code> output.</p> <pre><code>0.0.0.0:8080-&gt;8080/tcp 0.0.0.0:3306-&gt;3306/tcp, 33060/tcp </code></pre> <p>Below are my details:</p> <p>Docker Desktop version 2.0.0.3.</p> <p>docker-compose</p> <pre><code>version: '3.1' services: mysql: image: mysql:latest restart: always environment: MYSQL_ROOT_PASSWORD: password MYSQL_DATABASE: mydb volumes: - mysql:/var/lib/mysql ports: - "3306:3306" networks: - mynetwork server: image: server:latest networks: - mynetwork ports: - "8080:8080" volumes: mysql: ~ networks: mynetwork: driver: "bridge" </code></pre> <p>mysql dockerfile</p> <pre><code>FROM mysql:8.0.16 COPY ./scripts/mysql/dbgen-v1.sql /docker-entrypoint-initdb.d/ EXPOSE 3306 </code></pre> <p>server dockerfile</p> <pre><code>FROM golang:1.12.5 WORKDIR a/go/path COPY . . ENV GOBIN=/usr/local/bin RUN go get github.com/go-sql-driver/mysql RUN go get github.com/iancoleman/strcase RUN go get github.com/jmoiron/sqlx RUN go get github.com/spf13/cobra RUN go get github.com/gorilla/websocket RUN go get github.com/spf13/viper RUN go install -v cmd/project/main.go EXPOSE 8080 CMD ["main"] </code></pre> </div>

在Alpine Linux Docker的路径中找不到已安装的Go二进制文件

<div class="post-text" itemprop="text"> <p>I've got a Go binary I'm trying to run on the Alpine Docker image.</p> <p>This works fine for the Docker Go binary.</p> <pre><code>docker run -it alpine:3.3 sh apk add --no-cache curl DOCKER_BUCKET=get.docker.com DOCKER_VERSION=1.9.1 curl -fSL "https://${DOCKER_BUCKET}/builds/Linux/x86_64/docker-$DOCKER_VERSION" -o /usr/local/bin/docker chmod +x /usr/local/bin/docker docker help Usage: docker [OPTIONS] COMMAND [arg...] ... </code></pre> <p>However, for the Go binary I want to install.</p> <pre><code>RACK_BUCKET=ec4a542dbf90c03b9f75-b342aba65414ad802720b41e8159cf45.ssl.cf5.rackcdn.com RACK_VERSION=1.1.0-beta1 curl -fSL "https://${RACK_BUCKET}/${RACK_VERSION}/Linux/amd64/rack" -o /usr/local/bin/rack chmod +x /usr/local/bin/rack rack help sh: rack: not found /usr/local/bin/rack help sh: /usr/local/bin/rack: not found ls -al /usr/local/bin/ total 43375 drwxr-xr-x 2 root root 1024 Jan 11 18:10 . drwxr-xr-x 8 root root 1024 Jan 11 18:09 .. -rwxr-xr-x 1 root root 30222575 Jan 11 18:09 docker -rwxr-xr-x 1 root root 14190576 Jan 11 18:10 rack which rack /usr/local/bin/rack </code></pre> <p>I thought it might have something to do with <a href="https://stackoverflow.com/a/33240548/25991">this answer</a> but I don't get the same error when running <code>ldd</code>.</p> <pre><code>ldd /usr/local/bin/rack /lib64/ld-linux-x86-64.so.2 (0x7fdd15cd0000) libpthread.so.0 =&gt; /lib64/ld-linux-x86-64.so.2 (0x7fdd15cd0000) libc.so.6 =&gt; /lib64/ld-linux-x86-64.so.2 (0x7fdd15cd0000) </code></pre> <p>Any idea with this installed Go binary is not found in path on Alpine Linux Docker?</p> </div>

通过'revel build <testapp>'生成的run.sh二进制文件未在docker容器中运行

<div class="post-text" itemprop="text"> <p>As I've recently started using revel framework to build go web app. I created a testapp (orpat), compiled it 'revel build orpat prod' and changed conf PORT-&gt;8084 for publishing the app. Files generated are -</p> <ol> <li>orpat (executable file 11 MB)</li> <li>run.sh</li> <li>run.bat</li> <li>src/ folder</li> </ol> <p>It's executing well on my local system from other location(ofcourse it has golang and revel installed). <a href="https://i.stack.imgur.com/vO7BJ.png" rel="nofollow noreferrer">http://localhost:8084</a></p> <p>I copied the build files to a VM having no golang installed, it's executing there as well './run.sh' : run this cmd in terminal is enough to bring app online.</p> <p>Below is dockerfile-&gt;</p> <p></p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>FROM golang:1.10.4-alpine3.8 RUN apk --no-cache add ca-certificates RUN apk add --no-cache bash COPY . /go/src/orpat WORKDIR /go/src EXPOSE 8084/tcp RUN chmod -vR 777 /go/src/orpat CMD [ "bash", "run.sh" ]</code></pre> </div> </div> <p>Image creation thru 'docker build -t orpat .' is working OK.</p> <p></p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>a@kc:~/docker/orpat$ sudo docker build -t orpat . Sending build context to Docker daemon 12.02MB Step 1/8 : FROM golang:1.10.4-alpine3.8 ---&gt; 20834f40149c Step 2/8 : RUN apk --no-cache add ca-certificates ---&gt; Running in 154c0f3024f1 fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz OK: 5 MiB in 14 packages Removing intermediate container 154c0f3024f1 ---&gt; 50d5c49f8eee Step 3/8 : RUN apk add --no-cache bash ---&gt; Running in b3c9ad1bfe06 fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz (1/5) Installing ncurses-terminfo-base (6.1_p20180818-r1) (2/5) Installing ncurses-terminfo (6.1_p20180818-r1) (3/5) Installing ncurses-libs (6.1_p20180818-r1) (4/5) Installing readline (7.0.003-r0) (5/5) Installing bash (4.4.19-r1) Executing bash-4.4.19-r1.post-install Executing busybox-1.28.4-r0.trigger OK: 14 MiB in 19 packages Removing intermediate container b3c9ad1bfe06 ---&gt; 8ac100f8ab2f Step 4/8 : COPY . /go/src/orpat ---&gt; 7545fd3bf0d4 Step 5/8 : WORKDIR /go/src ---&gt; Running in 469df33c4fea Removing intermediate container 469df33c4fea ---&gt; 69f0e4c2c42f Step 6/8 : EXPOSE 8084/tcp ---&gt; Running in 716e1d7b7f0f Removing intermediate container 716e1d7b7f0f ---&gt; 2bbd4e3c90b7 Step 7/8 : RUN chmod -vR 777 /go/src/orpat ---&gt; Running in 1e9286d6f9ad mode of '/go/src/orpat' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/revel' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/revel/templates' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/revel/templates/errors' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/revel/templates/errors/500.txt' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/revel/templates/errors/405.xml' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/revel/templates/errors/500.html' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/revel/templates/errors/405.html' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/revel/templates/errors/404.html' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/revel/templates/errors/500.xml' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/revel/templates/errors/500.json' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/revel/templates/errors/403.txt' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/revel/templates/errors/403.json' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/revel/templates/errors/404.txt' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/revel/templates/errors/404.json' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/revel/templates/errors/405.txt' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/revel/templates/errors/404.xml' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/revel/templates/errors/404-dev.html' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/revel/templates/errors/405.json' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/revel/templates/errors/403.xml' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/revel/templates/errors/500-dev.html' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/revel/templates/errors/403.html' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/revel/conf' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/revel/conf/mime-types.conf' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/testrunner' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/testrunner/testrunner.go' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/testrunner/app' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/testrunner/app/plugin.go' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/testrunner/app/controllers' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/testrunner/app/controllers/testrunner.go' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/testrunner/app/views' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/testrunner/app/views/TestRunner' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/testrunner/app/views/TestRunner/SuiteResult.html' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/testrunner/app/views/TestRunner/Index.html' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/testrunner/app/views/TestRunner/FailureDetail.html' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/testrunner/public' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/testrunner/public/js' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/testrunner/public/js/jquery-1.9.1.min.js' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/testrunner/public/js/bootstrap.min.js' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/testrunner/public/js/highlight.pack.js' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/testrunner/public/images' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/testrunner/public/images/favicon.png' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/testrunner/public/css' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/testrunner/public/css/github.css' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/testrunner/public/css/bootstrap.min.css' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/testrunner/conf' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/testrunner/conf/routes' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/static' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/static/static.go' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/static/app' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/static/app/controllers' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/github.com/revel/modules/static/app/controllers/static.go' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/log' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/log/orpat-requests.json' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/README.md' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/app' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/app/tmp' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/app/tmp/main.go' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/app/init.go' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/app/routes' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/app/routes/routes.go' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/app/controllers' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/app/controllers/app.go' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/app/views' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/app/views/header.html' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/app/views/footer.html' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/app/views/flash.html' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/app/views/debug.html' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/app/views/App' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/app/views/App/Index.html' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/app/views/errors' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/app/views/errors/500.html' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/app/views/errors/404.html' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/messages' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/messages/sample.en' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/public' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/public/js' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/public/js/bootstrap-3.3.6.min.js' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/public/js/jquery-2.2.4.min.js' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/public/fonts' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/public/fonts/glyphicons-halflings-regular.woff2' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/public/fonts/glyphicons-halflings-regular.woff' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/public/fonts/glyphicons-halflings-regular.ttf' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/public/img' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/public/img/favicon.png' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/public/css' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/public/css/bootstrap-3.3.6.min.css' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/tests' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/tests/apptest.go' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/conf' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/conf/routes' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/src/orpat/conf/app.conf' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/run.sh' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/Dockerfile' changed to 0777 (rwxrwxrwx) mode of '/go/src/orpat/orpat' changed to 0777 (rwxrwxrwx) Removing intermediate container 1e9286d6f9ad ---&gt; cceab940ff2c Step 8/8 : CMD [ "bash", "run.sh" ] ---&gt; Running in 41b7bf5daee6 Removing intermediate container 41b7bf5daee6 ---&gt; 51ee4984d102 Successfully built 51ee4984d102 Successfully tagged orpat:latest</code></pre> </div> </div> <p>But on creating container from image, it gets created and with Exited status. On restarting, it goes into Exited again. Unable to browse app in browser at 8084 port.</p> <p></p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>a@kc:~/docker/orpat$ sudo docker run -d -it -p 8084:8084 orpat e0d87929635b1a0340b7ef297c1d01c1b9961d3e7562da6e9d79691a579058fd a@kc:~/docker/orpat$ sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES a@kc:~/docker/orpat$ sudo docker ps --all CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e0d87929635b orpat "bash run.sh" 17 seconds ago Exited (127) 16 seconds ago naughty_easley 7ed9b052abff sample:1.0 "npm start" 5 days ago Exited (0) 4 days ago sample_app 74b229937da3 mongo:3.0.15 "docker-entrypoint.s…" 5 days ago Exited (0) 4 days ago sample_db a@kc:~/docker/orpat$ sudo docker container start naughty_easley naughty_easley a@kc:~/docker/orpat$ sudo docker ps --all CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e0d87929635b orpat "bash run.sh" 46 seconds ago Exited (127) 2 seconds ago naughty_easley 7ed9b052abff sample:1.0 "npm start" 5 days ago Exited (0) 4 days ago sample_app 74b229937da3 mongo:3.0.15 "docker-entrypoint.s…" 5 days ago Exited (0) 4 days ago sample_db</code></pre> </div> </div> <p>So I go inside a totally new container, and execute this-&gt;</p> <p>'sudo docker run -it -p 8084:8084 orpat bash'</p> <p>and receiving errors like-&gt;</p> <p></p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>a@kc:~/docker/orpat$ sudo docker run -it -p 8084:8084 orpat bash bash-4.4# pwd /go/src bash-4.4# ls -a . .. orpat bash-4.4# cd orpat/ bash-4.4# ls -a . .. Dockerfile orpat run.sh src bash-4.4# cat Dockerfile FROM golang:1.10.4-alpine3.8 RUN apk --no-cache add ca-certificates RUN apk add --no-cache bash COPY . /go/src/orpat WORKDIR /go/src EXPOSE 8084/tcp RUN chmod -vR 777 /go/src/orpat CMD [ "bash", "run.sh" ] bash-4.4# ./run.sh ./run.sh: line 3: /go/src/orpat/orpat: not found bash-4.4# bash run.sh run.sh: line 3: /go/src/orpat/orpat: No such file or directory bash-4.4# cat run.sh #!/bin/sh SCRIPTPATH=$(cd "$(dirname "$0")"; pwd) "$SCRIPTPATH/orpat" -importPath orpat/ -srcPath "$SCRIPTPATH/src" -runMode prod bash-4.4# </code></pre> </div> </div> <p>on conf file, i've</p> <p></p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code># The IP address on which to listen. http.addr = [::] # The port on which to listen. http.port = 8084</code></pre> </div> </div> <p>Can someone help me fix this, am looking for exe binary file to deployed. As this is a minimal testapp with just a page, i m stuck on my original sprint.</p> </div>

MySQL 8.0.19安装教程(windows 64位)

话不多说直接开干 目录 1-先去官网下载点击的MySQL的下载​ 2-配置初始化的my.ini文件的文件 3-初始化MySQL 4-安装MySQL服务 + 启动MySQL 服务 5-连接MySQL + 修改密码 先去官网下载点击的MySQL的下载 下载完成后解压 解压完是这个样子 配置初始化的my.ini文件的文件 ...

Python+OpenCV计算机视觉

Python+OpenCV计算机视觉系统全面的介绍。

Vue.js 2.0之全家桶系列视频课程

基于新的Vue.js 2.3版本, 目前新全的Vue.js教学视频,让你少走弯路,直达技术前沿! 1. 包含Vue.js全家桶(vue.js、vue-router、axios、vuex、vue-cli、webpack、ElementUI等) 2. 采用笔记+代码案例的形式讲解,通俗易懂

navicat(内含激活码)

navicat支持mysql的可视化操作,内涵激活码,不用再忍受弹框的痛苦。

HTML期末大作业

这是我自己做的HTML期末大作业,花了很多时间,稍加修改就可以作为自己的作业了,而且也可以作为学习参考

150讲轻松搞定Python网络爬虫

【为什么学爬虫?】 &nbsp; &nbsp; &nbsp; &nbsp;1、爬虫入手容易,但是深入较难,如何写出高效率的爬虫,如何写出灵活性高可扩展的爬虫都是一项技术活。另外在爬虫过程中,经常容易遇到被反爬虫,比如字体反爬、IP识别、验证码等,如何层层攻克难点拿到想要的数据,这门课程,你都能学到! &nbsp; &nbsp; &nbsp; &nbsp;2、如果是作为一个其他行业的开发者,比如app开发,web开发,学习爬虫能让你加强对技术的认知,能够开发出更加安全的软件和网站 【课程设计】 一个完整的爬虫程序,无论大小,总体来说可以分成三个步骤,分别是: 网络请求:模拟浏览器的行为从网上抓取数据。 数据解析:将请求下来的数据进行过滤,提取我们想要的数据。 数据存储:将提取到的数据存储到硬盘或者内存中。比如用mysql数据库或者redis等。 那么本课程也是按照这几个步骤循序渐进的进行讲解,带领学生完整的掌握每个步骤的技术。另外,因为爬虫的多样性,在爬取的过程中可能会发生被反爬、效率低下等。因此我们又增加了两个章节用来提高爬虫程序的灵活性,分别是: 爬虫进阶:包括IP代理,多线程爬虫,图形验证码识别、JS加密解密、动态网页爬虫、字体反爬识别等。 Scrapy和分布式爬虫:Scrapy框架、Scrapy-redis组件、分布式爬虫等。 通过爬虫进阶的知识点我们能应付大量的反爬网站,而Scrapy框架作为一个专业的爬虫框架,使用他可以快速提高我们编写爬虫程序的效率和速度。另外如果一台机器不能满足你的需求,我们可以用分布式爬虫让多台机器帮助你快速爬取数据。 &nbsp; 从基础爬虫到商业化应用爬虫,本套课程满足您的所有需求! 【课程服务】 专属付费社群+每周三讨论会+1v1答疑

三个项目玩转深度学习(附1G源码)

从事大数据与人工智能开发与实践约十年,钱老师亲自见证了大数据行业的发展与人工智能的从冷到热。事实证明,计算机技术的发展,算力突破,海量数据,机器人技术等,开启了第四次工业革命的序章。深度学习图像分类一直是人工智能的经典任务,是智慧零售、安防、无人驾驶等机器视觉应用领域的核心技术之一,掌握图像分类技术是机器视觉学习的重中之重。针对现有线上学习的特点与实际需求,我们开发了人工智能案例实战系列课程。打造:以项目案例实践为驱动的课程学习方式,覆盖了智能零售,智慧交通等常见领域,通过基础学习、项目案例实践、社群答疑,三维立体的方式,打造最好的学习效果。

基于STM32的电子时钟设计

时钟功能 还有闹钟功能,温湿度功能,整点报时功能 你值得拥有

学生成绩管理系统(PHP + MYSQL)

做的是数据库课程设计,使用的php + MySQL,本来是黄金搭配也就没啥说的,推荐使用wamp服务器,里面有详细的使用说明,带有界面的啊!呵呵 不行的话,可以给我留言!

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

程序员的兼职技能课

获取讲师答疑方式: 在付费视频第一节(触摸命令_ALL)片头有二维码及加群流程介绍 限时福利 原价99元,今日仅需39元!购课添加小助手(微信号:itxy41)按提示还可领取价值800元的编程大礼包! 讲师介绍: 苏奕嘉&nbsp;前阿里UC项目工程师 脚本开发平台官方认证满级(六级)开发者。 我将如何教会你通过【定制脚本】赚到你人生的第一桶金? 零基础程序定制脚本开发课程,是完全针对零脚本开发经验的小白而设计,课程内容共分为3大阶段: ①前期将带你掌握Q开发语言和界面交互开发能力; ②中期通过实战来制作有具体需求的定制脚本; ③后期将解锁脚本的更高阶玩法,打通任督二脉; ④应用定制脚本合法赚取额外收入的完整经验分享,带你通过程序定制脚本开发这项副业,赚取到你的第一桶金!

实用主义学Python(小白也容易上手的Python实用案例)

原价169,限时立减100元! 系统掌握Python核心语法16点,轻松应对工作中80%以上的Python使用场景! 69元=72讲+源码+社群答疑+讲师社群分享会&nbsp; 【哪些人适合学习这门课程?】 1)大学生,平时只学习了Python理论,并未接触Python实战问题; 2)对Python实用技能掌握薄弱的人,自动化、爬虫、数据分析能让你快速提高工作效率; 3)想学习新技术,如:人工智能、机器学习、深度学习等,这门课程是你的必修课程; 4)想修炼更好的编程内功,优秀的工程师肯定不能只会一门语言,Python语言功能强大、使用高效、简单易学。 【超实用技能】 从零开始 自动生成工作周报 职场升级 豆瓣电影数据爬取 实用案例 奥运冠军数据分析 自动化办公:通过Python自动化分析Excel数据并自动操作Word文档,最终获得一份基于Excel表格的数据分析报告。 豆瓣电影爬虫:通过Python自动爬取豆瓣电影信息并将电影图片保存到本地。 奥运会数据分析实战 简介:通过Python分析120年间奥运会的数据,从不同角度入手分析,从而得出一些有趣的结论。 【超人气老师】 二两 中国人工智能协会高级会员 生成对抗神经网络研究者 《深入浅出生成对抗网络:原理剖析与TensorFlow实现》一书作者 阿里云大学云学院导师 前大型游戏公司后端工程师 【超丰富实用案例】 0)图片背景去除案例 1)自动生成工作周报案例 2)豆瓣电影数据爬取案例 3)奥运会数据分析案例 4)自动处理邮件案例 5)github信息爬取/更新提醒案例 6)B站百大UP信息爬取与分析案例 7)构建自己的论文网站案例

Java8零基础入门视频教程

这门课程基于主流的java8平台,由浅入深的详细讲解了java SE的开发技术,可以使java方向的入门学员,快速扎实的掌握java开发技术!

Python数据挖掘简易入门

&nbsp; &nbsp; &nbsp; &nbsp; 本课程为Python数据挖掘方向的入门课程,课程主要以真实数据为基础,详细介绍数据挖掘入门的流程和使用Python实现pandas与numpy在数据挖掘方向的运用,并深入学习如何运用scikit-learn调用常用的数据挖掘算法解决数据挖掘问题,为进一步深入学习数据挖掘打下扎实的基础。

零基础学C#编程—C#从小白到大咖

本课程从初学者角度出发,提供了C#从入门到成为程序开发高手所需要掌握的各方面知识和技术。 【课程特点】 1 由浅入深,编排合理; 2 视频讲解,精彩详尽; 3 丰富实例,轻松易学; 4 每章总结配有难点解析文档。 15大章节,228课时,1756分钟与你一同进步!

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

多功能数字钟.zip

利用数字电子计数知识设计并制作的数字电子钟(含multisim仿真),该数字钟具有显示星期、24小时制时间、闹铃、整点报时、时间校准功能

极简JAVA学习营第四期(报名以后加助教微信:eduxy-1)

想学好JAVA必须要报两万的培训班吗? Java大神勿入 如果你: 零基础想学JAVA却不知道从何入手 看了一堆书和视频却还是连JAVA的环境都搭建不起来 囊中羞涩面对两万起的JAVA培训班不忍直视 在职没有每天大块的时间专门学习JAVA 那么恭喜你找到组织了,在这里有: 1. 一群志同道合立志学好JAVA的同学一起学习讨论JAVA 2. 灵活机动的学习时间完成特定学习任务+每日编程实战练习 3. 热心助人的助教和讲师及时帮你解决问题,不按时完成作业小心助教老师的家访哦 上一张图看看前辈的感悟: &nbsp; &nbsp; 大家一定迫不及待想知道什么是极简JAVA学习营了吧,下面就来给大家说道说道: 什么是极简JAVA学习营? 1. 针对Java小白或者初级Java学习者; 2. 利用9天时间,每天1个小时时间; 3.通过 每日作业 / 组队PK / 助教答疑 / 实战编程 / 项目答辩 / 社群讨论 / 趣味知识抢答等方式让学员爱上学习编程 , 最终实现能独立开发一个基于控制台的‘库存管理系统’ 的学习模式 极简JAVA学习营是怎么学习的? &nbsp; 如何报名? 只要购买了极简JAVA一:JAVA入门就算报名成功! &nbsp;本期为第四期极简JAVA学习营,我们来看看往期学员的学习状态: 作业看这里~ &nbsp; 助教的作业报告是不是很专业 不交作业打屁屁 助教答疑是不是很用心 &nbsp; 有奖抢答大家玩的很嗨啊 &nbsp; &nbsp; 项目答辩终于开始啦 &nbsp; 优秀者的获奖感言 &nbsp; 这是答辩项目的效果 &nbsp; &nbsp; 这么细致的服务,这么好的氛围,这样的学习效果,需要多少钱呢? 不要1999,不要199,不要99,只要9.9 是的你没听错,只要9.9以上所有就都属于你了 如果你: 1、&nbsp;想学JAVA没有基础 2、&nbsp;想学JAVA没有整块的时间 3、&nbsp;想学JAVA没有足够的预算 还等什么?赶紧报名吧,抓紧抢位,本期只招300人,错过只有等时间待定的下一期了 &nbsp; 报名请加小助手微信:eduxy-1 &nbsp; &nbsp;

Python可以这样学(第一季:Python内功修炼)

董付国系列教材《Python程序设计基础》、《Python程序设计(第2版)》、《Python可以这样学》配套视频,讲解Python 3.5.x和3.6.x语法、内置对象用法、选择与循环以及函数设计与使用、lambda表达式用法、字符串与正则表达式应用、面向对象编程、文本文件与二进制文件操作、目录操作与系统运维、异常处理结构。

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

机器学习实战系列套餐(必备基础+经典算法+案例实战)

机器学习实战系列套餐以实战为出发点,帮助同学们快速掌握机器学习领域必备经典算法原理并结合Python工具包进行实战应用。建议学习顺序:1.Python必备工具包:掌握实战工具 2.机器学习算法与实战应用:数学原理与应用方法都是必备技能 3.数据挖掘实战:通过真实数据集进行项目实战。按照下列课程顺序学习即可! 课程风格通俗易懂,用最接地气的方式带领大家轻松进军机器学习!提供所有课程代码,PPT与实战数据,有任何问题欢迎随时与我讨论。

Java面试题大全(2020版)

发现网上很多Java面试题都没有答案,所以花了很长时间搜集整理出来了这套Java面试题大全,希望对大家有帮助哈~ 本套Java面试题大全,全的不能再全,哈哈~ 一、Java 基础 1. JDK 和 JRE 有什么区别? JDK:Java Development Kit 的简称,java 开发工具包,提供了 java 的开发环境和运行环境。 JRE:Java Runtime Environ...

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

深度学习原理+项目实战+算法详解+主流框架(套餐)

深度学习系列课程从深度学习基础知识点开始讲解一步步进入神经网络的世界再到卷积和递归神经网络,详解各大经典网络架构。实战部分选择当下最火爆深度学习框架PyTorch与Tensorflow/Keras,全程实战演示框架核心使用与建模方法。项目实战部分选择计算机视觉与自然语言处理领域经典项目,从零开始详解算法原理,debug模式逐行代码解读。适合准备就业和转行的同学们加入学习! 建议按照下列课程顺序来进行学习 (1)掌握深度学习必备经典网络架构 (2)深度框架实战方法 (3)计算机视觉与自然语言处理项目实战。(按照课程排列顺序即可)

HoloLens2开发入门教程

本课程为HoloLens2开发入门教程,讲解部署开发环境,安装VS2019,Unity版本,Windows SDK,创建Unity项目,讲解如何使用MRTK,编辑器模拟手势交互,打包VS工程并编译部署应用到HoloLens上等。

几率大的Redis面试题(含答案)

本文的面试题如下: Redis 持久化机制 缓存雪崩、缓存穿透、缓存预热、缓存更新、缓存降级等问题 热点数据和冷数据是什么 Memcache与Redis的区别都有哪些? 单线程的redis为什么这么快 redis的数据类型,以及每种数据类型的使用场景,Redis 内部结构 redis的过期策略以及内存淘汰机制【~】 Redis 为什么是单线程的,优点 如何解决redis的并发竞争key问题 Red...

MFC一站式终极全套课程包

该套餐共包含从C小白到C++到MFC的全部课程,整套学下来绝对成为一名C++大牛!!!

【数据结构与算法综合实验】欢乐连连看(C++ & MFC)案例

这是武汉理工大学计算机学院数据结构与算法综合实验课程的第三次项目:欢乐连连看(C++ & MFC)迭代开发代码。运行环境:VS2017。已经实现功能:开始游戏、消子、判断胜负、提示、重排、计时、帮助。

YOLOv3目标检测实战:训练自己的数据集

YOLOv3是一种基于深度学习的端到端实时目标检测方法,以速度快见长。本课程将手把手地教大家使用labelImg标注和使用YOLOv3训练自己的数据集。课程分为三个小项目:足球目标检测(单目标检测)、梅西目标检测(单目标检测)、足球和梅西同时目标检测(两目标检测)。 本课程的YOLOv3使用Darknet,在Ubuntu系统上做项目演示。包括:安装Darknet、给自己的数据集打标签、整理自己的数据集、修改配置文件、训练自己的数据集、测试训练出的网络模型、性能统计(mAP计算和画出PR曲线)和先验框聚类。 Darknet是使用C语言实现的轻型开源深度学习框架,依赖少,可移植性好,值得深入探究。 除本课程《YOLOv3目标检测实战:训练自己的数据集》外,本人推出了有关YOLOv3目标检测的系列课程,请持续关注该系列的其它课程视频,包括: 《YOLOv3目标检测实战:交通标志识别》 《YOLOv3目标检测:原理与源码解析》 《YOLOv3目标检测:网络模型改进方法》 敬请关注并选择学习!

u-boot-2015.07.tar.bz2

uboot-2015-07最新代码,喜欢的朋友请拿去

相关热词 c#跨线程停止timer c#批量写入sql数据库 c# 自动安装浏览器 c#语言基础考试题 c# 偏移量打印是什么 c# 绘制曲线图 c#框体中的退出函数 c# 按钮透明背景 c# idl 混编出错 c#在位置0处没有任何行
立即提问