Open the Messages app on your Mac
Click Messages in the menu bar
Select Settings or Preferences
Click the iMessage tab
Click Sign Out
Confirm when prompted
To disable iMessage notifications only, open System Settings
Click Notifications
Select Messages
Turn off Allow Notifications
