Here are the steps that I followed to disable IPv6 in my CentOS 7 minimal server. You can do it in two methods.