2016年9月5日星期一

office scan, trend security, osx 停止和启动

趋势的杀毒软件,非常消耗机器资源,在osx上面,如何停止和启动他们呢?

首先,sudo bash。

如果要停止服务,运行如下命令:
launchctl unload /Library/LaunchDaemons/com.trendmicro.tmsm.plugin.plist
launchctl unload /Library/LaunchDaemons/com.trendmicro.icore.wp.plist
launchctl unload /Library/LaunchDaemons/com.trendmicro.icore.main.plist
launchctl unload /Library/LaunchDaemons/com.trendmicro.icore.av.plist
launchctl unload /Library/LaunchDaemons/com.trendmicro.tmsm.launcher.plist


launchctl disable system/com.trendmicro.tmsm.plugin
launchctl disable system/com.trendmicro.icore.wp
launchctl disable system/com.trendmicro.icore.main
launchctl disable system/com.trendmicro.icore.av
launchctl disable system/com.trendmicro.tmsm.launcher


killall TmLoginMgr
killall UIMgmt
killall MainUI
killall iCoreService
killall iCoreService_av
killall iCoreService_wp
killall iCoreService_tmsm

如果要启动服务,运行如下命令:
launchctl enable system/com.trendmicro.tmsm.plugin
launchctl enable system/com.trendmicro.icore.wp
launchctl enable system/com.trendmicro.icore.main
launchctl enable system/com.trendmicro.icore.av
launchctl enable system/com.trendmicro.tmsm.launcher

launchctl load /Library/LaunchDaemons/com.trendmicro.tmsm.plugin.plist
launchctl load /Library/LaunchDaemons/com.trendmicro.icore.wp.plist
launchctl load /Library/LaunchDaemons/com.trendmicro.icore.main.plist
launchctl load /Library/LaunchDaemons/com.trendmicro.icore.av.plist
launchctl load /Library/LaunchDaemons/com.trendmicro.tmsm.launcher.plist

cd "/Library/Application Support/TrendMicro/TmccMac"
open TmLoginMgr.app/

好了,以后可以在需要的时候打开这个杀毒软件,不需要的时候,就关闭吧。