Linux

UB、RH、LD、FB……

Avoid website hijacking by malicious domain names

The server of R0uter's blog rejected the embedding of the site

I accidentally found a batch of websites today,Such as http://b6x.net/ Now when you click on this website, it will display "www.logcg.com refused to connect.”,When I clicked on it for the first time, I was stunned...he actually copied my entire website? !

This is a series of three-digit domain name websites,Are similar operations。

and many more,I found out that[……]

Click link to continue reading...

zsh enable bash * Asterisk wildcard function

Recently I found that the server is very slow every time apt upgrade,The reason,There are still a lot of unused kernels that have to be regenerated every time,Encountered a problem while cleaning up,*Number matching does not take effect,You must manually enter the full kernel name each time to uninstall it。

Found after stepping on the pit,It turned out to be because I used zsh,and zsh The default is not supported * No. wildcard! It’s easy to turn on this feature[……]

Click link to continue reading...

Supervisor will use your Python program becomes Services

Many of my friends are using Flask framework to write a small server,Easy and fast,But also a key to run,Very comfortable。but,If you really want your service to be deployed on the server,Then you will find that there are some homework to do,This article,We mainly talk about how to write the program into a service on the server instead of the terminal in the execution of the command。

If we write a Python web application,[……]

Click link to continue reading...

Use ClamAV and Linux Malware Detection (LMD) Protect your servers

Use CalmAV scan / home

This article originated inR0uter's Blog,ClickView original

 

Normal,Speaking of viruses, Trojans,People will probably think of Windows,In fact, as long as the operating system,There will be loopholes,So long as the operating system was used,Then some people will take advantage of this loophole to develop malware (such as viruses, Trojans)。In short,Since the Windows operating system users is far greater than macOS[……]

Click link to continue reading...

Ubuntu ultra-fast server deployment wireguard

New out of a lot of people want to try Wireguard,Here VPN over the wall in the end it is appropriate for us to discuss not,Let's look at how fast service from a wireguard on vps。Many people have heard of this service particularly complex to configure,So discouraged,Actually quite simple。

The environment

Here I use the latest ubuntu 18.04.2 To configure,First you have to have a[……]

Click link to continue reading...

Chsh -s mismatch with how to shell the rescue?

With the wrong default environment is not terrible,Well matched back like a big deal。

Obviously,He says such things there is no story。

In short,If you find that your vps One day suddenly can not log in,The content is not being given no authority,But the certificate is to determine the right - then you might be wrong with the last exit before the shell。At this time, even if you use the console to log on,After logging will find a flash[……]

Click link to continue reading...

Fail2Ban protection of Nginx Advanced Configuration Services

existAfter purchasing a VPS you should spare security measuresAs we mentioned with fail2ban To protect ssh ,So even without changingsshPort (default is22),Also can be done to avoid brute force password,of course,We have opened the credentials to log in and closed the ssh password login option,But with fail2ban Kill those who keep trying to make us feel bot is also a pleasant thing[……]

Click link to continue reading...

letsencrypt tool renamed certbot

Today Gerber drop-off certificate expired,I have written beforeHow to add https support with letsencrypt to blog,And teach you to write a regular update service at the end of the article,So you do not own every three months to update the manual。

but,If your certificate to expire,So in fact letsencrypt robot will send you a reminder email,The general content like this:[……]

Click link to continue reading...