System Preferences -> Sharing. Make sure none of the boxes to the left have a check in them. Although you might want to keep Printer Sharing on if you have several machines that need to access one or more printers.
Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.