There's an installation guide for running a JIRA Server under Windows or Linux / Mac (
see Installing JIRA applications)
For local testing there's an SDK, which starts a JIRA test instance and can be used to develop JIRA Plugins (see Set up the Atlassian Plugin SDK and Build a Project)