我已经在我的linux (suse) pc上安装了xampp。然后用命令启动lampp
/opt/lampp/lampp启动
上面写着:
Starting XAMPP for Linux 1.7.4...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.
但是,当我试图连接到数据库时,我使用
mysql -u根-p
它给了我以下错误:
If 'mysql' is not
一旦我的elasticsearch在linux服务器上崩溃。它给了我以下错误:
Elasticsearch\Common\Exceptions\NoNodesAvailableException:/var/www/laravel/vendor/elasticsearch/elasticsearch/src/Elasticsearch/ConnectionPool/StaticNoPingConnectionPool.php:51 No alive nodes found in your cluster
太解决了,我需要重置完整的服务器。
我想要解决方案,因为我的elasticsearch服务
我是在linux环境下工作的新手,我也在linux上的一个php项目上工作。当我需要php文件时,我遇到了一个问题。我有两个名为test.php和database.php的php文件。这两个文件都在/var/www/TEST/中。
这是database.php中的代码
<?php echo("You have included the database"); ?>
这是test.php中的代码
<?php require("/var/www/TEST/database.php");?>
然后,当我使用firefox浏览到test.php