Today, we need to build an apscheduler environment in the test environment. I finally downloaded its dependencies, installed it, and ran the code.
It was found that there is no postgresql client in this test environment. . embarrassment! ?
So go to download the client's rpm package and its dependencies.
Use the command in a non-root account:
rpm2cpio ctags-5.8-2.el6.x86_64.rpm |cpio -idvm #Unzip this rpm package to the current directory, the usr directory will appear
export LD_LIBRARY_PATH=$HOME/**/usr/postgresql/lib # Set the environment variable in ~/.bashrc to point to the lib in the just unzipped usr directory
finally. Just source .bashrc
Although not pure operation and maintenance personnel, but a lot of knowledge of operation and maintenance is really broad