- 从百度网盘下载rlwrap,文件很小,大约250K。链接地址见下面。
链接:https://pan.baidu.com/s/1Y1BFjSKaDCirkdwi9C2dUg
提取码:1234 - 将文件放到GBase 8s的bin目录下(如我的文件位置)
[gbasedbt@train ~]$ which rlwrap
/opt/gbase/bin/rlwrap
如果rlwrap没有可执行的权限,需要对其赋权。
[gbasedbt@train ~]$ chmod +x /opt/gbase/bin/rlwrap3.配置.bash_profile,使用alias命令,为dbaccess配置一个别名。
[gbasedbt@train ~]$ cat /home/gbasedbt/.bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=/home/gbasedbt/anaconda3/bin:$PATH:$HOME/.local/bin:$HOME/bin export PATH source /home/gbasedbt/profile.gbaseserver alias dbaccess='rlwrap dbaccess' [gbasedbt@train ~]$4.配置完成后,使用source命令使倒置文件生效。
[gbasedbt@train ~]$ source /home/gbasedbt/.bash_profile [gbasedbt@train ~]$5.完成。可以再次进入dbaccess,看是不是光标可以上下左右移动。上下光标可以查看历史命令,左右光标可以在输入文本中移动位置。
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




