草庐IT

found_iterID

全部标签

php - Elasticsearch 报错 No alive nodes found in your cluster

我开始使用Elasticsearch。我在我的服务器上成功安装了Elasticsearch(不同于应用程序服务器)。但是当我尝试从我的应用程序服务器调用Elasticsearch时,它给出了一个错误fatalerror:未捕获异常“Elasticsearch\Common\Exceptions\NoNodesAvailableException”,消息为“在您的集群中找不到事件节点”当我检查Elasticsearch状态时,它显示事件。如何从我的应用程序服务器调用Elasticsearch到我的Elasticsearch服务器。setHosts($hosts)->build();$pa

php - 如何修复运行 "Base table or view not found: 1146"命令时出现 'php artisan migrate' 错误?

我正在尝试朗姆酒phpartisanmigrate来生成表迁移,但我收到一个错误:[2016-03-0805:49:01]local.ERROR:exception'PDOException'withmessage'SQLSTATE[42S02]:Basetableorviewnotfound:1146Table'testing.permissions'doesn'texist'inD:\xampp\htdocs\LMS-testing\vendor\laravel\framework\src\Illuminate\Database\Connection.php:333我试过了Base

php - 安装 APC 时出现 "No acceptable C compiler found"

我需要做什么才能使APC正常工作,似乎我没有在正确的位置或类似的地方安装c编译器?另外,安装后如何验证它是否正常运行?[root@ec2-user]#peclinstallapcdownloadingAPC-3.1.9.tgz...StartingtodownloadAPC-3.1.9.tgz(155,540bytes).................................done:155,540bytes54sourcefiles,buildingrunning:phpizeConfiguringfor:PHPApiVersion:20090626ZendModuleAp

php -/bootstrap/start.php 中的 Laravel 错误 :\Illuminate\Foundation\Application not found

所以,我在开发服务器上安装了Laravel(php5.5.3,标准安装,安装了mcrypt),我收到以下错误消息:Fatalerror:Class'Illuminate\Foundation\Application'notfoundin/[path_to_laravel_app]/bootstrap/start.phponline14很奇怪,我还没有看到这个文件的解决方案,尽管我已经看到很多类似的错误。欢迎任何建议。谢谢! 最佳答案 /bootstrap/start.php是在composerinstall之后通过运行Laravel

php/regex : How to replace part of a found pattern, 但其余部分保持原样?

如何替换找到的模式中的子字符串,但保留其余部分?(编辑:实际情况当然比下面的示例更复杂,我必须匹配xml标记中的匹配项。这就是我必须使用正则表达式的原因!)假设我想将单词中出现的字母“X”更改为字母“Z”。我要aaXaaaaXXaa成为aaZaaaaZZaa查找包含“x”的单词的出现不是问题,如下所示:[^X\s]X[^\s]但是普通的preg_match会替换完整的匹配项,我希望模式中除“X”之外的任何内容都保持原样。在php中实现此目的的最佳方法是什么? 最佳答案 如果您的正则表达式仅匹配相关部分,则替换完整匹配应该没有问题(如

android - Genymotion: "The specified virtual device was not found in VirtualBox list"

有一天我尝试启动Genymotion虚拟设备并得到:过去一切正常。我没有做任何更新。我在Windows7SP1x64Ultimate上使用Genymotion2.3.1和OracleVirtualBox4.3.12。是什么原因导致出现此问题,如何解决?我的配置:当我尝试从VirtualBox启动VM时,我得到:FailedtoopenasessionforthevirtualmachineSamsungGalaxyS5-4.4.4-API19-1080x1920.TheVMsessionwasclosedbeforeanyattempttopoweriton.ResultCode:E_

Android studio 检索项目 : No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar' 的父项时出错

我是androidstudio的初学者,我已经开始创建名为HelloWorld的应用程序,但始终在gradle构建选项卡中,它显示2个错误。我面临的错误是:Error:(1)Errorretrievingparentforitem:Noresourcefoundthatmatchesthegivenname'Theme.AppCompat.Light.DarkActionBar'.Error:Executionfailedfortask':app:processDebugResources'.>com.android.ide.common.process.ProcessExceptio

android studio 编译报错 debug-unaligned.apk path not found

昨晚我将我的androidstudio更新到0.5.3,从那时起,每当我尝试生成签名的apk时,我都会收到此错误消息。当我只是在androidstudio上运行项目时,它不会发生。我尝试重建、清理项目、重启android-studio、重新导入项目,但没有成功。我现在很绝望编辑:我发现实际上没有生成调试未对齐...但这是为什么呢?如果我只是想对应用程序签名,为什么还需要生成它 最佳答案 在0.5.3中,我们试图通过不让它对APK进行完整构建来加快构建过程,除非它需要,但我们错过了一些需要的情况。您可以在https://code.go

java - 检索项目 :No resource found that matches the given name 'Theme.AppCompat.Light' . 的父项时出错 MY R.java 丢失

谷歌现在有AndroidLollipop,我打开了我的sdk管理器并决定更新几个包......这让我从2天开始感到烦恼。Can'tfindtheme我也试过这个:Failedtorenamedirectory不成功。我试图从谷歌下载一个新的sdk并从头开始安装,但没有成功。这是错误。D:\~\res\values\styles.xml:7:error:Errorretrievingparentforitem:Noresourcefoundthatmatchesthegivenname'Theme.AppCompat.Light'.D:\~\res\values-v11\styles.x

android - Activity 未找到异常 : No Activity found to handle Intent sospicious behaviour

我有一个正在生产中的应用程序,在过去的24小时内,我收到了来自单个用户的大约50次崩溃(每小时3-4次)。Fabric将设备类型标记为“sdk”,操作系统版本始终为4.1.1。这是堆栈跟踪:FatalException:android.content.ActivityNotFoundException:NoActivityfoundtohandleIntent{act=android.intent.action.VIEWdat=market://details?id=com.google.android.gms&pcampaignid=gcore_8487000---flg=0x800