Skip to main content

Posts

Showing posts from February, 2021
IPFS powers the Distributed Web A peer-to-peer hypermedia protocol designed to preserve and grow humanity's knowledge by making the web upgradeable, resilient, and more open. The web of tomorrow needs IPFS today IPFS aims to surpass HTTP in order to build a better web for all of us. Today's web is inefficient and expensive HTTP downloads files from one server at a time — but peer-to-peer IPFS retrieves pieces from multiple nodes at once, enabling substantial bandwidth savings. With  up to 60% savings for video,  IPFS makes it possible to efficiently distribute high volumes of data without duplication. Today's web can't preserve humanity's history The average lifespan of a web page is 100 days  before it's gone forever. The medium of our era shouldn't be this fragile. IPFS makes it simple to set up resilient networks for mirroring data, and thanks to content addressing, files stored using IPFS are automatically versioned. Today's web is centralized, limit

Check Server Port Open or not

[Username@<Server> ~]$ nmap -p 8101 <Target Server> Starting Nmap 5.51 ( http://nmap.org ) at 2020-12-08 02:01 MST Nmap scan report for <Target Server> (xxxxx) Host is up (0.00076s latency). PORT     STATE SERVICE 8101/tcp open  unknown Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds [Username@<Server> ~]$

Starting and Stopping MAXDB

 /maxdb/programs/bin Procedure Starting the Database (Transfer to the ONLINE Operational State) Call Database Manager CLI, log on as operator DBM with password DBM, connect to the database DEMODB, and transfer the database to the ONLINE operational state: [root@<Server> bin]# ./dbmcli -u superdba,Password -d SDB db_online OK [root@<Server> bin]# Stopping the Database (Transfer to the OFFLINE Operational State) Call Database Manager CLI, log on as operator DBM with password DBM, connect to the database DEMODB, and transfer the database to the OFFLINE operational state: ./dbmcli -u superdba,Password -d SDB  db_offline OK Displaying the Current Operational State of the Database Call Database Manager CLI, log on as operator DBM with password DBM, connect to the database DEMODB, and display the operational state of the database: ./dbmcli -u superdba,Password -d SDB  db_state OK State ONLINE [root@<Server> bin]# OK OFFLINE

Increase Swap in Azure Instances

[root@<Server> ~]# vi /etc/waagent [root@<Server> ~]# vi /etc/waagent.conf ResourceDisk.SwapSizeMB=14336 <Enable this Parameters> ResourceDisk.EnableSwap=y [root@<Server> ~]# systemctl restart waagent [root@<Server> ~]# free -h               total        used        free      shared  buff/cache   available Mem:            27G        1.9G         11G        141M         14G         24G Swap:           15G          0B         15G

SSH Trust Between Servers

 jsmith@local-host$ [Note: You are on local-host here] jsmith@local-host$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/jsmith/.ssh/id_rsa):[Enter key] Enter passphrase (empty for no passphrase): [Press enter key] Enter same passphrase again: [Pess enter key] Your identification has been saved in /home/jsmith/.ssh/id_rsa. Your public key has been saved in /home/jsmith/.ssh/id_rsa.pub. The key fingerprint is: 33:b3:fe:af:95:95:18:11:31:d5:de:96:2f:f2:35:f9 jsmith@local-host Step 2: Copy the public key to remote-host using ssh-copy-id jsmith@local-host$ ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host jsmith@remote-host's password: Now try logging into the machine, with "ssh 'remote-host'", and check in: .ssh/authorized_keys