webOS
共 4 篇文章
MySQL配置HeartBeat实现心跳监控和浮动IP
1. 初始化环境配置 /sbin/chkconfig --add mysqld /sbin/chkconfig mysqld on ln -s /usr/local/mysql/bin/mysql /sbin/mysql ln -s /usr/local/mysql/bin/mysqladmin /sbin/mysqladmin echo "/usr/local/mysql/lib/mysql" >> /etc/ld.so.conf /sbin/ldconfig export PATH=$PATH:/usr/local/mysql/bin 2. 安装HeartBeat组件 rpm -ivh …
2011-03-02 22:56 · webOS · 防火墙 · J# · .net · MySQL · 虚拟机
在模拟器中使用代理
Howto proxy network connections in Emulator Get tsocks Since the emulator is running as x86, you can just copy over your tsocks files from your linux distro Fire up the emulator (palm-emulator) copy tsocks to Emulator -> /usr/local/bin scp -P 5522 /usr/bin/tsocks root@localhost:/usr/local/bin copy …
2011-02-23 11:44 · webOS · UP · Palm · Access · Linux · IDEA
[源代码]一个封装了系统服务的调用类ServiceRequestWrapper
ServiceRequestWrapper: A simple class that provides common service Mojo.Service.Request lifetime management logic, primarily this prevents garbage collection of request objects and their associated callbacks. Install: - Move service-request-wrapper.js into application source tree. - Include service…
2011-02-23 11:27 · webOS · json · Palm · prototype
[源代码]一个有用的链接管理器
var ConnectMgr = Class.create({ initialize:function() { this.connected = 0; this._checkConnection(); }, _checkConnection : function() { try { var controller = Mojo.Controller.stageController.activeScene(); controller.serviceRequest('palm://com.palm.connectionmanager/', { method: 'getstatus', parame…
2011-02-23 11:25 · webOS · Palm