Run MeiliSearch in production: taking it to the next level

A quick introduction Hopefully, you already know that MeiliSearch (opens new window)is a powerful and fast open-source search engine built in Rust (opens new window). It was designed to provide users with a very useful and customizable search experience including out-of-the-box features such as typo-tolerance, filtering, and synonyms for any kind of project. Running a Meilisearch instance for testing… Continue reading Run MeiliSearch in production: taking it to the next level

How To Count Files in Directory on Linux

Count Files using tree An easy way of counting files and directories in a directory is to use the “tree” command and to specify the name of the directory to be inspected.

Git create empty branch

What’s wrong with the –orphan option? If you want a branch that is empty and have no history, this is the way to go… Then you can remove all the files you’ll have in the staging area (so that they don’t get committed): At this point you have an empty branch, on your machine. Before you can… Continue reading Git create empty branch

Git push existing repo to a new and different remote repo server?

Create a new repo at github. Clone the repo from fedorahosted to your local machine. git remote rename origin upstream git remote add origin URL_TO_GITHUB_REPO git push origin master Now you can work with it just like any other github repo. To pull in patches from upstream, simply run git pull upstream master && git push… Continue reading Git push existing repo to a new and different remote repo server?

Install LEMP stack on Ubuntu

1: 更新软件包 在安装LEMP stack之前,最好在Ubuntu 20.04操作系统上运行以下命令来更新存储库和软件包。 2: 安装 Nginx Web Server Nginx是一种高性能的Web服务器,如今非常流行。 它也可以用作反向代理和缓存服务器。 输入以下命令以安装Nginx Web服务器。 安装完成后,我们可以通过运行以下命令使Nginx在启动时自动启动。 然后使用以下命令启动Nginx: 现在查看其状态。 检查Nginx版本。 3: 安装 MariaDB Database Server MariaDB是MySQL的直接替代品。 它是由MySQL团队的前成员开发的,他们担心Oracle可能会将MySQL变成开源产品。 输入以下命令以在Ubuntu 20.04上安装MariaDB。 安装完成后,MariaDB服务器应自动启动。 使用systemctl检查其状态。 如果它没有运行,请使用以下命令启动它: 要使MariaDB在系统启动时自动启动,请运行: 接下来运行安装后安全脚本: 配置文件位置: 4: 安装 PHP 输入以下命令以安装PHP和一些常用扩展: 启动php-fpm 启用系统启动时自动启动php-fpm: 查看php-fpm状态 php.ini文件位置: php-fpm配置文件位置: 5: 创建 Nginx 主机 测试Nginx配置: 重载Nginx: 6: 测试 PHP 在网站根目录中创建一个phpinfo.php文件 将以下PHP代码粘贴到文件中: 保存并关闭文件。

How to convert .img to usable VirtualBox format

Select a virtual machine by clicking its name in the VirtualBox window Click the Machine menu at the top of the VirtualBox window, and click Settings Click the Storage category in the Settings window Right-click in the storage tree pane, and click Add Floppy Controller Right-click the Floppy Controller device, and click Add Floppy Device Click the Choose Disk button in the prompt window that appears… Continue reading How to convert .img to usable VirtualBox format