information-rights-management , o-s , security , web-services

SUDO quick Reference Guide

April 29, 2012

Usr/local/etc

Usr – OS

Usr – Alias (SUDO)

Web admin

Permissions to do

SUDO quick Reference Guide

sudo kill

sudo killall

sudo chown

sudo mkdir

sudo rmdir

mysql Status

serveradmin   status mysql

myaql Status

serveradmin   settings mysql

Start / Stop mysql

/usr/sbin/serveradmin   start mysql

/usr/sbin/serveradmin   stop mysql

To move a database to a new location:

sudo /usr/sbin/serveradmin stop mysql

sudo cp -Rp /oldpath/mysql /newpath/

sudo /usr/sbin/serveradmin settings mysql:databaseLocation = /newpath/mysql

sudo /usr/sbin/serveradmin start mysql

To change the database location:

sudo /usr/sbin/serveradmin stop mysql

sudo /usr/sbin/serveradmin settings mysql:databaseLocation = /path/to/new/ database/

sudo /usr/sbin/serveradmin start mysql

To set/change the root password:

sudo /usr/sbin/serveradmin stop mysql

sudo /usr/sbin/serveradmin settings mysql:rootPassword = password

sudo /usr/sbin/serveradmin start mysql

To start Tomcat:

$ sudo /Library/Tomcat/6.0/bin/startup.sh

Open Terminal and enter the following command.

$ sudo serveradmin settings web:IfModule:_array_id:mod_ssl.c:SSL PassPhraseDialog=builtin

Start Apache with the command:

$ sudo serveradmin start web

When prompted, enter the certificate passphrase.

To stop Web service:

$ sudo serveradmin stop web

To see if Web service is running:

$ sudo serveradmin status web

 To see complete Web service status:

$ sudo serveradmin fullstatus web

To view log paths:

$ sudo serveradmin command web:command = getLogPaths

To see if Web service is running:

$ sudo serveradmin status web

To see complete Web service status:

$ sudo serveradmin fullstatus web

To change several settings:

$ sudo serveradmin settings

web:setting = value

web:setting = value

web:setting = value

[…]

Control–D

To view a setting:

$ sudo serveradmin settings web:setting

www.bestitdocuments.com