VIKHOST Tech Blog
Useful Technical Articles, Notes and Instructions.
How to add additional IP address

How to add additional IP address

Centos 7 - How to add additional IP address — For adding additional IP address to your server running CentOS, you need to do the following.. 1. Connect via ssh to our server. Create file /etc/sysconfig/network-scripts/ifcfg-eth0:0 with the following content: DEVICE=eth0:0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.11
NETMASK=255.255.255.255
(IPADDR and NETMASK data use those that you received when ordering an IP address) 2. It can be done using next commands. Go to the network-scripts directory: cd /etc/sysconfig/network-scripts/. Then create a new file: # nano ifcfg-eth0:0 3. After that, restart the network service: service network restart We execute ifconfig, we see that eth0:0 has ...
Read more
How to disable NetworkManager on CentOS

How to disable NetworkManager on CentOS

How to disable NetworkManager on CentOS — Below you can find how to disable NetworkManager service. 1. Command how to check interfaces are managed by NetworkManager # nmcli device status Mentioned command displays table with lists all network interfaces along with their STATE. If Network Manager is not controlling an interface, its STATE will be listed as unmanaged. Any other value indicates the interface is under Network Manager control. 2. How to stop the NetworkManager service: # systemctl stop NetworkManager 3. For disabling the NetworkManager service permanently: # systemctl disable NetworkManager 4. For confirming that NetworkManager service has been disabled ...
Read more
http_status_code | VIKHOST

HTTP Status Codes

HTTP - Status Codes - Server Response Code it is server response 3-digit integer, the first digit it is defines the class of response and the last two digits do not have any categorization role. Below you can find the most popular the Server Response Codes: 1XX Informational 100 Continue - This is a kind of confirmation from the server that the initial request has been successfully accepted, you can continue the actions that you have started (for example, scanning). 101 Switching Protocols The server switches protocol. 102 Processing - the request is received by the server, and at ...
Read more
How to make password entry in the terminal visible

How to make password entry in the terminal visible

How to make password entry in the terminal visible — Each time when you use sudo, the terminal asks you to enter the user password. This is a great security measure! But the terminal does not offer any visual feedback when entering the password. This is often confusing. Adding such a relationship is quite simple, as a result of which we will see “an asterisk” when entering. Open the terminal (often by pressing Ctrl + Alt + T) and enter: # sudo vi / etc / sudoers Find the line: # Defaults env_reset and replace it with: # Defaults env_reset,pwfeedback ...
Read more