[root@openEuler ~]# vi /etc/profile HISTSIZE=1000 if [ "$HISTCONTROL" = "ignorespace" ] ; then export HISTCONTROL=ignoreboth else export HISTCONTROL=ignoredups fi export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL for i in /etc/profile.d/*.sh /etc/profile.d/sh.local ; do if [ -r "$i" ]; then if [ "${-#*i}" != "$-" ]; then . "$i" else . "$i" >/dev/null fi fi done unset i unset -f pathmunge if [ -n "${BASH_VERSION-}" ] ; then if [ -f /etc/bashrc ] ; then # Bash login shells run only /etc/profile # Bash non-login shells run only /etc/bashrc # Check for double sourcing is done in /etc/bashrc. . /etc/bashrc fi fi export LANG=en_US.UTF-8 export GPHOME=/opt/opengauss3.0/install/om export PATH=$GPHOME/script/gspylib/pssh/bin:$GPHOME/script:$PATH export LD_LIBRARY_PATH=$GPHOME/script/gspylib/clib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=$GPHOME/lib:$LD_LIBRARY_PATH export PYTHONPATH=$GPHOME/lib export PATH=/root/gauss_om/omm/script:$PATH 如何操作能够把把最后两个LD_LIBRARY_PATH参数注释掉重启
时间: 2024-04-07 11:33:10 浏览: 128
C++OpenCV3源代码RGB三色直方图的绘制
你可以通过编辑文件`/etc/profile`来注释掉最后两个`LD_LIBRARY_PATH`参数并重启系统。请按照以下步骤进行操作:
1. 使用命令行编辑器(如vi、nano等)打开文件`/etc/profile`。
```shell
vi /etc/profile
```
2. 在文件中找到以下两行:
```shell
export LD_LIBRARY_PATH=$GPHOME/script/gspylib/clib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$GPHOME/lib:$LD_LIBRARY_PATH
```
3. 将这两行前面添加注释符号`#`,即注释掉这两行:
```shell
# export LD_LIBRARY_PATH=$GPHOME/script/gspylib/clib:$LD_LIBRARY_PATH
# export LD_LIBRARY_PATH=$GPHOME/lib:$LD_LIBRARY_PATH
```
4. 保存文件并退出编辑器。
5. 重启系统,以使更改生效。你可以使用以下命令重启:
```shell
sudo reboot
```
这样,最后两个`LD_LIBRARY_PATH`参数将被注释掉,并在系统重启后生效。
阅读全文