Nowadays, cloud computing is one of the most up-to-date topics conducted by many researchers. The specialists and researchers try to create a new generation of data centers using virtual machines to supply the network service virtually and dynamically. These services will lead everyone to access their required application worldwide via the Internet. Furthermore, the number of datacenters (DC) is growing exponentially. Therefore, a novel concept called green computing has been raised to decrease the negative effect of data centers to protect the environment. Green cloud computing solutions strive to reduce carbon dioxide emissions, energy, power, and water consumption that are harmful to the environment. In this paper, the approaches moving toward green computing are investigated and categorized to help the researchers and specialists in cloud computing expand green cloud computing and improve the environment quality. The "green cloud computing" has been searched in this survey. We have searched ACM, IEEE, Elsevier, and Springer and surveyed the papers between 2010 and 2022. This paper is a holistic survey useful for researchers who work on green cloud computing and its environmental influence. This paper can lead researchers to move toward green computing to protect the environment against these days' environmental issues. These days, environmental issues like climate change make this subject more important than before.