概述
非原创,转自http://hi.baidu.com/brian/item/e7452ac21519e43d0931c6ec
Asterisk 1.4如何卸载
第1步:stop asterisk
[root@noc src]# ps -ef|grep asterisk
root 10131 1 0 17:21 pts/0 00:00:00 /bin/sh /usr/sbin/safe_asterisk
root 10186 10131 0 17:21 pts/0 00:00:00 /usr/sbin/asterisk -f -vvvg -c
root 10291 8615 0 17:22 pts/0 00:00:00 grep asterisk
[root@noc src]#
[root@noc src]# kill -9 10186
[root@noc src]# kill -9 10131
[root@noc src]#
[root@noc src]# ps -ef|grep asterisk
root 10319 8615 0 17:22 pts/0 00:00:00 grep asterisk
第2步 卸载DAHDI & Asterisk
卸载DAHDI:
使用lsmod 查DAHDI安装模块,使用modprobe -r module卸载,注意要卸载关联的use的模块.
卸载Asterisk
[root@noc asterisk-1.4.30]# make uninstall
for x in astman smsq stereorize streamplayer aelparse muted; do rm -f $x /usr/sbin/$x; done
for x in agi-test.agi eagi-test eagi-sphinx-test jukebox.agi; do rm -f /var/lib/asterisk/agi-bin/$x ; done
make[1]: Nothing to be done for `uninstall'.
make[1]: Nothing to be done for `uninstall'.
rm -f /usr/lib/asterisk/modules/*
rm -f /usr/sbin/*asterisk*
rm -f /usr/sbin/astgenkey
rm -f /usr/sbin/autosupport
rm -rf /usr/include/asterisk
rm -rf /var/lib/asterisk/firmware
rm -f /usr/share/man/man8/asterisk.8
rm -f /usr/share/man/man8/astgenkey.8
rm -f /usr/share/man/man8/autosupport.8
rm -f /usr/share/man/man8/safe_asterisk.8
make -C sounds uninstall
make[1]: Entering directory `/usr/src/asterisk-1.4.30/sounds'
rm -rf /var/lib/asterisk/sounds
rm -rf /var/lib/asterisk/moh
make[1]: Leaving directory `/usr/src/asterisk-1.4.30/sounds'
+--------- Asterisk Uninstall Complete -----+
+ Asterisk binaries, sounds, man pages, +
+ headers, modules, and firmware builds, +
+ have all been uninstalled. +
+ +
+ To remove ALL traces of Asterisk, +
+ including configuration, spool +
+ directories, and logs, run the following +
+ command: +
+ +
+ make uninstall-all +
+-------------------------------------------+
[root@noc asterisk-1.4.30]# make uninstall-all
for x in astman smsq stereorize streamplayer aelparse muted; do rm -f $x /usr/sbin/$x; done
for x in agi-test.agi eagi-test eagi-sphinx-test jukebox.agi; do rm -f /var/lib/asterisk/agi-bin/$x ; done
make[1]: Nothing to be done for `uninstall'.
make[1]: Nothing to be done for `uninstall'.
rm -f /usr/lib/asterisk/modules/*
rm -f /usr/sbin/*asterisk*
rm -f /usr/sbin/astgenkey
rm -f /usr/sbin/autosupport
rm -rf /usr/include/asterisk
rm -rf /var/lib/asterisk/firmware
rm -f /usr/share/man/man8/asterisk.8
rm -f /usr/share/man/man8/astgenkey.8
rm -f /usr/share/man/man8/autosupport.8
rm -f /usr/share/man/man8/safe_asterisk.8
make -C sounds uninstall
make[1]: Entering directory `/usr/src/asterisk-1.4.30/sounds'
rm -rf /var/lib/asterisk/sounds
rm -rf /var/lib/asterisk/moh
make[1]: Leaving directory `/usr/src/asterisk-1.4.30/sounds'
rm -rf /usr/lib/asterisk
rm -rf /var/lib/asterisk
rm -rf /var/lib/asterisk
rm -rf /var/spool/asterisk
rm -rf /etc/asterisk
rm -rf /var/log/asterisk
[root@noc asterisk-1.4.30]#
附一个如何卸载asterisk 1.2的:
第一步:先停止你的asterisk
# asterisk -rx ’stop now’然后要验证一下是否真的被停了.
# ps aux|grep “asterisk”|grep -v grep
如果有输出信息
# killall -9 asterisk
第二步:如果你装了zaptel驱动,你需要把你的zaptel驱动删除掉,如果你没装,那就跳过这一步吧.
# lsmod | grep zaptelzaptel
213028 4 zttranscode,ztdummycrc_ccitt
2113 1 zaptel
如果你看到以上信息,那行,你得把这些都 Remove掉
modprobe -r zaptel
modprobe -r zttranscode
到现在.这些模块都被你删除了哈.
然后你再来看看,
# lsmod | grep zaptel
第三步:
到安装目录下,make uninstall
附一个如何卸载asterisk 1.8:
[root@localhost asterisk-1.8.7.1]# make uninstall
rm -f "/usr/lib/asterisk/modules/"*
rm -f "/usr/sbin/"*asterisk*
rm -f "/usr/sbin/astgenkey"
rm -f "/usr/sbin/autosupport"
rm -rf "/usr/include/asterisk"
rm -rf "/var/lib/asterisk/firmware"
rm -f "/usr/share/man/man8/asterisk.8"
rm -f "/usr/share/man/man8/astgenkey.8"
rm -f "/usr/share/man/man8/autosupport.8"
rm -f "/usr/share/man/man8/safe_asterisk.8"
make -C sounds uninstall
make[1]: Entering directory `/usr/src/asterisk-1.8.7.1/sounds'
rm -rf "/var/lib/asterisk/sounds"
rm -rf "/var/lib/asterisk/moh"
make[1]: Leaving directory `/usr/src/asterisk-1.8.7.1/sounds'
+--------- Asterisk Uninstall Complete -----+
+ Asterisk binaries, sounds, man pages, +
+ headers, modules, and firmware builds, +
+ have all been uninstalled. +
+ +
+ To remove ALL traces of Asterisk, +
+ including configuration, spool +
+ directories, and logs, run the following +
+ command: +
+ +
+ make uninstall-all +
+-------------------------------------------+
[root@localhost asterisk-1.8.7.1]# make uninstall-all
rm -f "/usr/lib/asterisk/modules/"*
rm -f "/usr/sbin/"*asterisk*
rm -f "/usr/sbin/astgenkey"
rm -f "/usr/sbin/autosupport"
rm -rf "/usr/include/asterisk"
rm -rf "/var/lib/asterisk/firmware"
rm -f "/usr/share/man/man8/asterisk.8"
rm -f "/usr/share/man/man8/astgenkey.8"
rm -f "/usr/share/man/man8/autosupport.8"
rm -f "/usr/share/man/man8/safe_asterisk.8"
make -C sounds uninstall
make[1]: Entering directory `/usr/src/asterisk-1.8.7.1/sounds'
rm -rf "/var/lib/asterisk/sounds"
rm -rf "/var/lib/asterisk/moh"
make[1]: Leaving directory `/usr/src/asterisk-1.8.7.1/sounds'
rm -rf "/usr/lib/asterisk"
rm -rf "/var/lib/asterisk"
rm -rf "/var/lib/asterisk"
rm -rf "/var/spool/asterisk"
rm -rf "/etc/asterisk"
rm -rf "/var/log/asterisk"
[root@localhost asterisk-1.8.7.1]#
最后
以上就是彪壮手链为你收集整理的如何卸载Asterisk 1.8 &1.4 & 1.2的全部内容,希望文章能够帮你解决如何卸载Asterisk 1.8 &1.4 & 1.2所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复