我创建了一个小型web应用程序.如果我部署了它的工作但是如果尝试运行应用程序它显示端口8888似乎正在使用(也许是另一个lanch),你还要用这个lanch来控制吗?我点击是但显示错误无法打开请求的套接字:地址已在使用中:bind尝试覆盖--address和/或--port.
使用Eclipse我不小心删除了文件系统上的错误文件夹,昨天在我的mac上丢失了数百个java文件.
我正在使用第二个mac通过firewire连接到我的mac.我的mac在第二台mac上显示为外部磁盘.我正在第二台mac上运行数据恢复程序,以确保在我的mac上写入文件系统时不会覆盖任何已删除的文件.
我尝试过几个数据恢复程序(Disk Drill,Data Rescue 3),但它们似乎无法识别.java文件.
有没有人在Mac上恢复已删除的.java文件有很好的经验?
通过docker教程学习如何在mac上使用docker:https: //docs.docker.com/userguide/dockerimages/
尝试更新并提交图像.
收到我不理解的错误消息.
$docker pull training/sinatra
Pulling repository training/sinatra
...
79e6bf39f993: Download complete
Status: Downloaded newer image for training/sinatra:latest
$docker run -t -i training/sinatra /bin/bash
root@6a2012d33405:/# gem install json
Fetching: json-1.8.2.gem (100%)
Building native extensions. This could take a while...
Successfully installed json-1.8.2
1 gem installed
Installing ri documentation for json-1.8.2...
Installing RDoc documentation for json-1.8.2...
root@6a2012d33405:/# exit
exit
$docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
...
hello-world latest 91c95931e552 6 weeks ago 910 B …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用maven部署基本的应用引擎Web应用.
作为部署过程的一部分,我需要通过Web浏览器进行身份验证.
我使用2个不同的谷歌帐户.1为家.1工作.当maven打开浏览器选项卡要求我进行身份验证时,它选择了错误的帐户.我没有注意到这一点,然后点击"允许"按钮.
此帐户没有正确的凭据,因此我收到了拒绝访问权限错误.
>mvn appengine:update
...
Beginning interaction for module default...
Apr 01, 2016 4:47:32 PM com.google.appengine.tools.admin.AbstractServerConnection send1
WARNING: Error posting to URL: https://appengine.google.com/api/appversion/getresourcelimits?app_id=maven-1268&version=1&
403 Forbidden
You do not have permission to modify this app (app_id=u's~maven-1268').
This is try #0
Apr 01, 2016 4:47:32 PM com.google.appengine.tools.admin.AbstractServerConnection send1
WARNING: Error posting to URL: https://appengine.google.com/api/appversion/getresourcelimits?app_id=maven-1268&version=1&
403 Forbidden
You do not have permission to modify this app (app_id=u's~maven-1268').
This is try #1
Apr 01, 2016 4:47:32 PM com.google.appengine.tools.admin.AbstractServerConnection send1
WARNING: Error posting …Run Code Online (Sandbox Code Playgroud) 我需要在我的shell脚本中使用花括号对命令进行分组,以便我可以将它们的输出定向到单独的日志文件,如此...
>cat how-to-exit-script-from-within-curly-braces.sh
{
printf "%d\n" 1
printf "%d\n" 2
} | tee a.log
{
printf "%d\n" 3
printf "%d\n" 4
} | tee b.log
>./how-to-exit-script-from-within-curly-braces.sh
1
2
3
4
>cat a.log
1
2
>cat b.log
3
4
>
Run Code Online (Sandbox Code Playgroud)
虽然我添加了花括号以方便日志记录,但我仍然希望在大括号内调用exit命令时退出脚本.
它当然不会这样做.它只退出花括号,然后继续执行脚本的其余部分,如此...
>cat how-to-exit-script-from-within-curly-braces.sh
{
printf "%d\n" 1
exit
printf "%d\n" 2
} | tee a.log
{
printf "%d\n" 3
printf "%d\n" 4
} | tee b.log
>./how-to-exit-script-from-within-curly-braces.sh
1
3
4
>cat a.log
1
>cat b.log
3
4
>
Run Code Online (Sandbox Code Playgroud)
使退出代码非零并将"set -e"添加到脚本似乎不起作用... …