On centos
Createa repo
[nginx]
name=nginx repo
baseurl=https://nginx.org/packages/centos/$releasename/$basearch/
gpgcheck=0
enabled=1
replace $releasename with 6 or 7 depending on your /etc/*release* file
Install epel-release for fedora
For
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo mkdir /etc/ssl/private
sudo chmod 700 /etc/ssl/private
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/nginx-selfsigned.key -out /etc/ssl/certs/nginx-selfsigned.crt
No comments:
Post a Comment