/opt
/opt is most often used for large third-party applications. It’s not uncommon to find /opt
empty on some systems and jam-packed on others. For example, by default, Oracle will
attempt to install itself in /opt. This directory doesn’t get all that much use on CentOS
systems, and on most of our servers it is still empty. Do not worry if you never have the
need to use this directory.
=========================================
/usr
This directory contains the vast majority of user software and is often the largest directory
on a machine. Although it’s good to know where your software actually resides, because
the default path includes /usr/bin (and /usr/sbin for root), most software “just works”
wherever you are located on the system.
相关推荐
Linux 的软件安装目录是也是有讲究的,正确的选择安装目录对系统管理是有益的,这里讲解一下程序安装目录/opt目录和/usr/local目录的区别。 一、opt目录 /opt目录用来安装附加软件包,是用户级的程序目录,可以理解...
runtime library [libssl.so.1.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in: /home/rw/anaconda3/lib 首先查看路径,可以看到返回结果中,第一个查找路径是anaconda的。 export $PATH bash: export...
本文将详细介绍如何通过`/usr/sbin/alternatives`命令以及相关配置,实现在不同的JDK版本之间的无缝切换。 #### 实现原理与步骤 1. **理解`/usr/sbin/alternatives`命令:** - `alternatives`是一个用于管理可选...
Failed to load core: /opt/Qt5.2.1/Tools/QtCreator/lib/qtcreator/plugins/QtProject/libCore.so: Cannot load library /opt/Qt5.2.1/Tools/QtCreator/lib/qtcreator/plugins/QtProject/libCore.so: (/usr/lib64/...
在 Linux 下,我们经常用到的四个应用程序的目录是/bin、/sbin、/usr/bin、/usr/sbin 。这四个目录的作用分别是: * /bin 目录:主要放置一些系统的必备执行档,例如cat、cp、chmod、df、dmesg、gzip、kill、ls、...
我这里是 usr/local/jdk/ 2)输入命令 chmod 777 jdk1.8.0_221/bin/java修改权限 3)再次输入 java -version 成功 总结 以上所述是小编给大家介绍的解决-BASH: /HOME/JAVA/JDK1.8.0_221/BIN/JAVA: 权限不够问题,...
cp -R -f /opt/upgrade_nginx/nginx /usr/local/nginx/sbin/ cp -R -f /opt/upgrade_nginx/nginx.sh /usr/local/nginx/sbin/ #给可执行文件nginx添加可执行权限 cd /usr/local/nginx/sbin/ chmod u+x nginx chmod u...
make[1]: Leaving directory `/usr/local/redis-5.0.0/src' make: * [all] Error 2 解决方法是安装 GCC 编译工具,使用以下命令: yum install gcc 二、os 版本 make 报错 在编译 Redis 时,可能会遇到 OS 版本...
nessus2023-04-10漏洞更新包all-2.0.tar.gz以把插件包上传到服务器后, 执行/opt/nessus/sbin/nessuscli update 插件包文件路径 .../usr/local/nessus/sbin/nessuscli fetch --register-offline nessus.license
/opt/gcc-4.6.4/configure --prefix=/usr/local/gcc-4.6.4 -enable-threads=posix -disable-checking -disable-multilib -enable-languages=c,c++ --with-gmp=/usr/local/gmp-4.2.3 --with-mpfr=/usr/local/mpfr-...
修改命令sudo gedit /usr/lib/python3/dist-packages/rosdistro/__init__.py 把68行http://raw.githubusercontent.com/ros 修改为file:///opt/rosdep 修改命令sudo gedit /usr/lib/python3/dist-packages/rosdep2/...
GNU_Linux编程指南_part2
zsh-opt-path 自动将~/opt/路径添加到$PATH 。.../home/user/opt/znc/bin:/home/user/opt/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin 版权 zsh-opt-path的版权归John Reese所有,2015年获得MIT许可。
RUN mkdir /usr/local/jdk WORKDIR /usr/local/jdk ADD jdk-8u211-linux-x64.tar.gz /usr/local/jdk ENV JAVA_HOME /usr/local/jdk/jdk1.8.0_211 ENV JRE_HOME /usr/local/jdk/jdk1.8.0_211/jre ENV PATH $JAVA_...
export PATH="/usr/local/opt/opencv@4/bin:$PATH" ``` 并运行: ``` source ~/.bash_profile 或 source ~/.zshrc ``` 4. **验证安装**:你可以通过运行以下命令来验证OpenCV4是否安装成功: ``` opencv_...
4. **设置环境**:可能需要更新系统路径,如`export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib`,确保系统能找到tslib库。 5. **校准触摸屏**:使用`ts_calibrate`命令启动触摸屏校准程序。用户根据屏幕上的...
### 解决usr/lib64/libstdc++.so.6 和 lib64/libc.so.6 版本过低的问题 在进行系统环境搭建时,尤其是安装像 MySQL 这样的大型软件包时,可能会遇到库文件版本不兼容的问题。本文将详细介绍如何解决 CentOS 7.0 下 ...
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib export LD_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib...