rabbit mq launchctl

###########################################################

# A startup item has been generated that will aid in
# starting rabbitmq-server with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo port load rabbitmq-server
###########################################################

http://www.rabbitmq.com/install-generic-unix.html

Run RabbitMQ Server

Start the Server
Invoke the sbin/rabbitmq-server shell script. This displays a banner message, and reports on progress in the startup sequence, concluding with the message “broker running”, indicating that the RabbitMQ broker has been started successfully.

You can also start the server in “detached” mode with rabbitmq-server -detached, in which case the server process runs in the background.

Configure the Server
The configuration file $RABBITMQ_HOME/etc/rabbitmq/rabbitmq-env.conf is used to override environment variables. You can customise the RabbitMQ environment by altering this file. Components may be configured, too, in the rabbitmq.config file.

 

 

dylib on Mac and install_name_tool

dylib을 쓰는 어플리케이션을 만들었을 때, 참조하는 lib path가 절대 경로로 들어가 애먹는 경우가 있을때…

install_name_tool -change {old path} {new path} {binary name}

하면 library 참조 경로를 수정할 수 있음…

belliny-on-air:tcmalloctest1 belliny$ otool -L test
test:
 /usr/local/lib/libtcmalloc.4.dylib (compatibility version 6.0.0, current version 6.0.0)
 /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
belliny-on-air:tcmalloctest1 belliny$ otool -L test
test:
 @executable_path/lib/libtcmalloc.4.dylib (compatibility version 6.0.0, current version 6.0.0)
 /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)

 

http://stackoverflow.com/questions/4677044/how-to-use-dylib-in-mac-os-x-c

http://ynniv.com/blog/2006/02/deploying-app-that-use-dylibs-on-mac.html