Latest

Execute process in system background

Linux 技巧:让进程在后台可靠运行的几种方法 在 IBM Bluemix 云平台上开发并部署您的下一个应用。现在就开始免费试用 我们经常会碰到这样的问题,用 telnet/ssh 登录了远程的 Linux 服务器,运行了一些耗时较长的任务, 结果却由于网络的不稳定导致任务中途失败。如何让命令提交后不受本地关闭终端窗口/网络断开连接的干扰呢?下面举了一些例子, 您可以针对不同的场景选择不同的方式来处理这个问题。 nohup/setsid/& 如果只是临时有一个命令需要长时间运行,什么方法能最简便的保证它在后台稳定运行呢? hangup 名称的来由 在 Unix 的早期版本中,每个终端都会通过 modem 和系统通讯。当用户 logout 时,modem 就会挂断(hang up)电话。 同理,当 modem 断开连接时,就会给终端发送 hangup 信号来通知其关闭所有子进程。 解决方法:

By icecube

Lenovo ThinkPad T420 to enable wireless to AP mode - updated

後來發現用NAT方式來轉送Wifi AP封包到Ethernet Port會有連線不連續的問題,所以又查了一下Debain/Ubuntu 平台下,正確的方法為何? 首先要設定/etc/network/interface , 設定系統將wlan0(ap)與 eth0透過虛擬的橋接介面br0 作router,這樣一來就可把NAT的script給拿掉了。以下設定要重開機才會生效。 vi /etc/network/interface auto lo br0 iface lo inet loopback # wireless wlan0 allow-hotplug wlan0 iface wlan0 inet manual iface eth0 inet manual iface br0 inet static       bridge_ports wlan0 eth0       address

By Phillips Hsieh

Setup Adaptec SATA RAUD HBA monitoring for Linux

長期以來一直使用Adaptec AAR-2410SA PCI SATA 4channel 作為 Linux File System Server硬硬資料保護,不過很困擾的是他的硬碟錯誤偵測不是很強還滿常需要人為介入作進一步問題的檢查,比如說硬碟壞軌,硬碟離線等。 必需加入遠端Monitor機制才能提早發現硬碟問題,在作了些功課後決定使用SNMP(sample network manager protocol)。 Drive部份直到CentOS6.3都還有內建aacraid的module。 Download appliance部份 http://ftp.dell.com/scsi-raid/afa-apps-snmp.2807420-a04.tar.gz Download ucd-snmp source code http://nchc.dl.sourceforge.net/project/net-snmp/ucd-snmp/4.2.7.1/ucd-snmp-4.2.

By icecube

Managing Microsoft Exchange Services with Windows Powershell in Exchange 2010

To Get all the MsExchange Services Startup Type to Disabled State Get-Service | where{$_.Name –Like ‘MSExchange*’} | set-Service –StartupType ‘Disabled’ To Get all the MxExchange Services Startup Type to  Automatic State Get-Service | where{$_.Name –Like ‘MSExchange*’} | set-Service –StartupType ‘Automatic’ (Starting and Stopping all Service in one Shot differs , scenario to scenario

By icecube