查看“Fwconsole commands支持FreePBX-13 以上版本”的源代码
←
Fwconsole commands支持FreePBX-13 以上版本
跳转至:
导航
、
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:用户
您可以查看并复制此页面的源代码:
'''fwconsole commands (13+)''' "fwconsole" is the Linux command that controls FreePBX 13+ from the Linux command prompt. To access the command prompt, log-in to the machine where you installed FreePBX/Asterisk using your "root" username and password. You can do so by accessing the keyboard of the machine where you installed FreePBX, or remotely using an SSH client such as Putty. Then type one of the following "fwconsole" commands: * [ Command List] * [ Stop/Start] * [ Chown] * [ Reload] * [ Unlock] * [ Database] '''Command List''' * chown Change ownership of files * context Shows the specified context from the dialplan * cx Shows the specified context from the dialplan * dbug Stream files for debugging * extip Get External IP * help Displays help for a command * list Lists commands * m Run a mysql Query: * ma Module Administration * motd Prints MOTD * mysql Run a mysql Query: * r Reload Configs * reload Reload Configs * restart Start Asterisk and run other needed FreePBX commands * session Manage Session * set View and update settings * setting View and update settings * start Start Asterisk and run other needed FreePBX commands * stop Stop Asterisk and run other needed FreePBX commands * trunks Enable and disable trunks from the command line * unlock Unlock Session '''Stop/Start''' http://wiki.freepbx.org/download/attachments/37912685/stopstart.gif This is how FreePBX starts asterisk and any other processes it need. You should always start and restart asterisk with the amportal command not the service asterisk or /etc/init.d/asterisk commands fwconsole stop fwconsole start '''Chown''' http://wiki.freepbx.org/download/attachments/37912685/chown.gif '''''''''fwconsole chown''' - This will change ownership of all files and directories that FreePBX needs to be owned by the apache user. '''Reload''' http://wiki.freepbx.org/download/attachments/37912685/reload.gif '''fwconsole reload''' - This will perform a reload of all the dialplan in Asterisk and all the modules in asterisk. This is the same as pressing the "Apply Changes" button in the GUI of FreePBX '''Unlock''' http://wiki.freepbx.org/download/attachments/37912685/unlock.gif '''fwconsole u xxxxxxxxxxxxxxxx'''- The fwconsole u command will unlock the GUI login of FreePBX to let you into the FreePBX GUI without the username and password. This is handy if you lost or misplaced your FreePBX GUI username or password and need to get into the GUI to change or setup a new user. You need to replace the xxxxxxx with your PHP session ID. Follow the steps below. * Bring up the main login page to FreePBX in your browser. Such as [http://192.168.0.2/admin http://192.168.0.2/admin] * Do a "ctrl a" to highlight the whole page and look to the left center of the screen for some text. This is your unique php session ID. Copy this into your clipboard. http://wiki.freepbx.org/download/attachments/37912685/unlockselect.gif * Go into the linux CLI and type the following command replacing the session ID below with your own. * <nowiki>[root@localhost ~]# fwconsole u ppnr8l1vle32s3q8b79s4n1sp7</nowiki> * Please wait... * session unlocked! <nowiki>[root@localhost ~]# </nowiki> * Go refresh your browser page and it will log you in this one time automatically for you based on that php session ID. Now you can go add or change the FreePBX admin users. '''Database''' '''fwconsole m''' This will log you to pass queries into the mysql database as the FreePBX user automatically for you based on the username and password for MySQL in /etc<nowiki>/freepbx.co</nowiki>nf <nowiki>[root@localhost ~]# fwconsole m 'SELECT * FROM trunks;'</nowiki> +---+--------+-------+------------+-----+--+--+-----+---------------------+--+--+-----+-----+ | 1 | | dahdi | | | | | 555 | g0 | | | off | off | | 3 | fpbx-2 | sip | 4805001104 | off | | | | fpbx-2-Dz2RzUvGHZCR | | | off | off | | 2 | fpbx-1 | sip | 4805001104 | off | | | | fpbx-1-Dz2RzUvGHZCR | | | off | off | +---+--------+-------+------------+-----+--+--+-----+---------------------+--+--+-----+-----+
返回至
Fwconsole commands支持FreePBX-13 以上版本
。
导航菜单
个人工具
登录
命名空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
合作伙伴
FreePBX官方
IPPBX软硬件
SIP 终端话机
SBC
语音网关,Sangoma语音板卡
工具
链入页面
相关更改
特殊页面
页面信息