Installing the Klocwork Server package on Unix
Installing the Klocwork Server package on UnixThis page provides instructions for installing the Klocwork Server package using the installer. Before you beginUpgrading? See Upgrading from a previous version. Where do I get the software? Download the packages from Klocwork Support. Typically, only one or two users in an organization have access to Klocwork Developer Network. If you don't have access, you can register for a new account. You need a license. See Get a license if you don't already have one. Running two versions of the Klocwork Servers If you will be running two sets of the Klocwork Servers, for example to test the Klocwork 2018.1 Servers while users continue to access your existing servers, you must run them on different projects_root directories. Check the system requirements Refer to the System requirements for a list of required packages and dependencies. Installation notes
Note: Due to MySQL limitations, the projects_root directory should not be located on NFS. It has a special file locking implementation which is not fully supported by MySQL. See also the warning in the MySQL documentation.
Running the installation packageRun the following command: kw-server-installer.18.1.x.x.<platform>.sh [options] <install_directory> [<component ...>]
where
Command-line options for the Server package
Arguments for Server components
Add Klocwork to your PATHOn Unix, we recommend adding <klocwork_install>/bin to your PATH. Otherwise, you need to execute commands from <klocwork_install>/bin. Copy the license fileCopy your license file to the following location:
The license file must have the extension .lic. Note: See Customizing licensing for licensing options such as using your organization's license server.
Start the serversStart the servers with kwservice start: kwservice --projects-root <projects_root> start
Example kwservice --projects-root /space/klocwork/projects_root start You see messages indicating that the servers have been started, showing the server host name and port number and the path to the projects_root. For example: Using projects root: /space/klocwork/projects_root Local Host is: serverxyz.com [13.1.1.142] Starting License Server [started on serverxyz.com:27000] (projects root is /space/klocwork/projects_root) Starting Database Server [started on serverxyz.com:3306] (projects root is /space/klocwork/projects_root) Starting Klocwork Server [started on serverxyz.com:8080] (projects root is /space/klocwork/projects_root) Important: If you create a script to start the Klocwork servers automatically, do not name your script 'klocwork' as it will interfere with existing processes.
Log in to Klocwork Static Code AnalysisAfter starting the Klocwork servers, Klocwork Static Code Analysis is accessible from a browser using the URL of the Klocwork server hostname and the Klocwork server port chosen during the install (for example, server21:8080). By default, the person who installed Klocwork is set as the Klocwork administrator, and is given the Projects root admin role. Initially, the Basic Authentication access control method is used, so no password is needed to log in. For example, if the user account used during the installation was ‘jsmith’, to log in to Static Code Analysis with the administrator role, use the credentials:
username: jsmith password: <empty>For more details on security and authentication methods, see Security and permissions. |