Notes
![]() ![]() Notes - notes.io |
*********
enabling sudo on linux
*************************
check weather suod comment is enable in linux machine or not
to check just type sudo
it will show some message else will show "sudo command doesnot exist"
# sudo
https://linuxize.com/post/sudo-command-in-linux/
https://developers.redhat.com/blog/2018/08/15/how-to-enable-sudo-on-rhel/
firstly lets create the user "prometheus" by using below command
# sudo useradd --no-create-home --shell /bin/false prometheus
lets create required prometheus directories by using below commands
# sudo mkdir /etc/prometheus
# sudo mkdir /var/lib/prometheus
lets make the created user the owner of the created directories
# sudo chown prometheus:prometheus /etc/prometheus
# sudo chown prometheus:prometheus /var/lib/prometheus
++++++++++
Install of both TimescaleDB and PostgreSQL via yum :
*****************************************************
sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
wget --content-disposition https://packagecloud.io/timescale/timescaledb/packages/el/7/timescaledb-postgresql-9.6-1.6.0-0.el7.x86_64.rpm/download.rpm
sudo yum install timescaledb-postgresql-9.6-1.6.0-0.el7.x86_64
The usual location of postgres.conf is /var/lib/pgsql/9.6/data/postgresql.conf for PostgreSQL 9.6
please Modify postgresql.conf to uncomment this line and add required libraries.
shared_preload_libraries = 'timescaledb'
Downloading Adapter:
wget https://github.com/timescale/prometheus-postgresql-adapter/releases/download/v0.6.0/prometheus-postgresql-adapter-0.6.0-linux-amd64.tar.gz
Starting Adapter:
./prometheus-postgresql-adapter -log.level=debug -leader-election.pg-advisory-lock-id=1 -leader-election.pg-advisory-lock.prometheus-timeout=6s
+++++++++++++
steps to download postgressDB
https://www.postgresql.org/download/linux/redhat/
Install the repository RPM:-----
yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
Install the client packages:----
yum install postgresql10
Install the client packages:------
yum install postgresql10-server
Optionally initialize the database and enable automatic start:---
/usr/pgsql-10/bin/postgresql-10-setup initdb
systemctl enable postgresql-10
systemctl start postgresql-10
https://uc.xyz/1uB02F?pub=link [el/7/timescaledb-postgresql-9.6-1.6.0-0.el7.x86_64.rpm - timescale/timescaledb · packagecloud] is good,have a look at it!
wget --content-disposition https://packagecloud.io/timescale/timescaledb/packages/el/7/timescaledb-postgresql-9.6-1.6.0-0.el7.x86_64.rpm/download.rpm
https://docs.timescale.com/latest/getting-started/installation/rhel-centos/installation-yum
https://docs.timescale.com/v0.12/getting-started/installation/linux/installation-yum
https://wiki.postgresql.org/wiki/YUM_Installation
https://packagecloud.io/timescale/timescaledb/packages/el/7/timescaledb-postgresql-9.6-1.6.0-0.el7.x86_64.rpm
http://rpm.pbone.net/index.php3/stat/4/idpl/52438144/dir/scientific_linux_7/com/kernel-3.10.0-957.5.1.el7.x86_64.rpm.html
pgdp for kernel-3.10.0-957.5.1.el7.x86_64
B1doEN~i=4-p5aqfKrc6?WJt
B1doEN~i=4-p5aqfKrc6?WJt
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team