Environmental effects on local active galactic nuclei