Installation is okay. In Windows, install the Java environment, download the elastic installation package, and install the elastic-head plug-in chorm.
1. php call
Curl_setopt_array (): Unable to create temporary file
At first, I thought it was a yii framework issue, and then I didn't use the framework test.
It turns out that PHP has no write permission on temporary files and directly changes PHP. INI file, find sys_temp_dir = '. /tmp ', remove the semicolon; comment; I am E: \ phpstudy \ TMP;
Reference: https://www.jianshu.com/p/8f2b23db9006
2. Data insertion Error
At the beginning, I saw this error very similar, but I checked it carefully because the data type is different from the input value. When I create an index, the defined type is integer, and the data inserted in the result is string, resulting in an error.
What I encountered in elasticsearch