About a week ago Debian 8 installed with full disk encryption, and even on the new btrfs file system. Out of curiosity, Google found an article with btrfs speed tests. And this article says, they say, this FS is rarely superior in ext4 speed. (Further…)
Rubric: Notebook
Other administration notes not included in other categories.
Error ssh: reverse mapping for getaddrinfo for hostname [127.0.0.1] failed - POSSIBLE BREAK-IN ATTEMPT!
Yesterday the namecheap dns servers, to which some of my domains were delegated, were inaccessible for a certain period of time. At the same time there was a problem: do not connect to the server from filezilla via sftp.
How to create a database and user MySQL
If you don’t have any convenient administration panel installed on your server and you need to add a user and a mysql database to create the site, you can do it through the console.
Useful netstat flags
Just recently, I found out about some useful netstat flags. Before that, it was too lazy to deal with her, read the manual. :) Therefore, rarely used.
And so, here is a list of some useful, at my discretion, flags. They can be specified both separately and grouped (-atunp), when you run the net stat in the console.
How to disable InnoDB in MySQL
If you do not need to use InnoDB storage for your site databases, you can disable this type of storage to save server resources.
(Further…)
How to remove the database and user mysql
Having abandoned the convenient panel to manage the server, I was faced with the need to remove the databases and users of mysql. After all, before something was done through the socket, and - manually.
How to install i386 libraries on amd64 system
It's great that Debian has support for multiarchitectures. Suppose some application works only on 32-two bit systems, and a 64-bit one is installed on the server. Simply install the necessary libraries for the i386 architecture and continue to work with the application.
It is done this way: (more ...)
Nginx rewrite rule examples
Redirect to url with slash
Some CMS for sites may open pages with a slash at the end, and without it, if the engine does not redirect itself. For example, the page http://example.net/page and http://example.net/page/ from the point of view of the visitor will be one. But for search engines, these are two different pages, and slash is to blame for everything. So duplicate content is bad.
How to create a self-signed certificate
Create a self-signed certificate with two commands. It may be useful to administer the site via https, for example.
1. Create a key.
# openssl genrsa -out server.key 2048
2. Create a certificate. The domain example.com should be replaced with yours.
# openssl req -new -x509 -key server.key -out server.crt -days 3650 -subj /CN=example.com
Transferring mysql databases to another folder or section
In some cases, it may be necessary to move the mysql database from the default directory (/ var / lib / mysql) to another directory or even to a separate partition. For example, to protect databases from damage, in case the file system on the primary partition is damaged.