Reposync -g -l -d -m -repoid=centosplus -newest-only -download-metadata -download_path=/var/www/html/repos/centosplus # mkdir -p /var/reposync -g -l -d -m -repoid=base -newest-only -download-metadata -download_path=/var/www/html/repos/base Create the necessary directories (yum repositories) that will store packages and any related information. ![]() Step 2: Create Yum Local Repositoryĥ. Install the required packages for creating, configuring and managing your local repository. ![]() Iptables -A INPUT -p tcp -m state -state NEW -m tcp -dport 443 -j ACCEPTĬentOs 7 Commands: firewall-cmd -zone=public -permanent -add-service=httpįirewall-cmd -zone=public -permanent -add-service=httpsĤ. Confirm that your Nginx server is up and running, using the following URL if you see the default Nginx web page, all is well. yum install epel-releaseĢ. Once you have installed Nginx web server, you can start it for the first time and enable it to start automatically at system boot.ģ. Next, you need to open port 80 and 443 to allow web traffic to Nginx service, update the system firewall rules to permit inbound packets on HTTP and HTTPS using the commands belowĬentOS 6 Commands: sudo iptables -A INPUT -p tcp -m tcp -dport 80 -j ACCEPT
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |