yum groupinstall "Development Tools" -y
yum install gcc open-ssl-devel bzip2-devel libffi-devel -y
mkdir downloads
cd downloads
wget https://www.python.org/ftp/python/3.10.4/Python-3.10.4.tgz
https://www.python.org/ftp/python/3.14.0/Python-3.14.0a7.tgz
tar -xzf Python-3.10.4.tgz
cd Python-3.10.4
./configure --prefix=/usr/local --enable-optimizations
make altinstall
Categories
Create a new git repo
echo "# myclubProj" >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin https://github.com/username/myProj.git git push -u origin main
…or push an existing repository from the command line
git remote add origin https://github.com/username/myProj.git git branch -M main git push -u origin main
Categories
CEPH–zap disk
yum install gdisk
lvscan
lvremove /dev/ceph....
sgdisk --zap-all /dev/sdb
After installing ngxinx using yum install, create a prometheus config
touch /etc/nginx/conf.d/prometheus.conf
emacs /etc/nginx/conf.d/prometheus.conf
Add the following to prometheus.conf
server {
listen 80;
listen [::]:80;
server_name prometheus.local;
location / {
proxy_pass http://localhost:9090/;
}
}
Restart nginx, now you should be able to access http://prometheus.local
Add HTTPS support
The cert was done with mkcert and the files moved to a directory in /etc/nginx/mkcerts. Change the port to 9090 to load the prometheus site, port 3000 points to grafana.
server {
listen 80;
listen 443 ssl;
ssl_certificate /etc/nginx/mkcerts/prometheus2.local.pem;
ssl_certificate_key /etc/nginx/mkcerts/prometheus2.local-key.pem;
server_name prometheus2.local;
location / {
proxy_pass http://localhost:3000/;
}
}
Add Basic Authentication to prometheus
First install
yum install httpd-tools
Now create the password
htpasswd -c /etc/nginx/.htpasswd username
Now modify /etc/nginx/conf.d/prometheus.conf
server {
listen 80;
listen 443 ssl;
ssl_certificate /etc/nginx/mkcerts/prometheus2.local.pem;
ssl_certificate_key /etc/nginx/mkcerts/prometheus2.local-key.pem;
auth_basic "Protected Area";
auth_basic_user_file /etc/nginx/.htpasswd;
server_name prometheus2.local;
location / {
proxy_pass http://localhost:9090/;
}
}
Restart prometheus