How to uninstall mongoDB in CentOS

Depends which version of MongoDB are you using. Normally can remove by using yum. [code lang=”bash”] yum remove mongo-10gen mongo-10gen-server [/code] or [code lang=”bash”] yum remove mongo-10gen-2.2.3 mongo-10gen-server-2.2.3 [/code]

MongoDB Error: exception in initAndListen std::exception: boost::filesystem::exists: Permission denied: “/sys/devices/system/node/node1”

I found this error while installed yum install mongo-10gen-2.2.3 mongo-10gen-server-2.2.3 in CentOS 6.4 64bit Wed Oct 16 16:19:08 [initandlisten] MongoDB starting : pid=22457 port=27017 dbpath=/var/lib/mongo 64-bit host=xxxxxxx.net Wed Oct 16 16:19:08 [initandlisten] exception in initAndListen std::exception: boost::filesystem::exists: Permission denied: “/sys/devices/system/node/node1”, terminating Wed Oct 16 16:19:08 dbexit: Wed Oct 16 16:19:08 [initandlisten] shutdown: going to close Continue reading “MongoDB Error: exception in initAndListen std::exception: boost::filesystem::exists: Permission denied: “/sys/devices/system/node/node1””

Install pngcrush for Centos 6

Important update © juzhax.com CentOS 6 is end-of-life. The original RepoForge HTTP RPM link below is historical and should not be used as an installation recommendation. On a supported Linux distribution, search trusted configured repositories for pngcrush and install the signed package if available. Do not install an unverified legacy RPM or disable signature checks. Continue reading “Install pngcrush for Centos 6”

lftp command for mirroring FTP

What this command does © juzhax.com The historical example uploads a local directory to a remote server using reverse mirroring. Plain FTP is not encrypted, and credentials supplied on the command line can be exposed in history or process listings. Prefer SFTP or properly configured FTPS, use securely managed credentials and a trusted host, and Continue reading “lftp command for mirroring FTP”

Script for optimizing images in a directory (recursive) in Linux

Safety update © juzhax.com The original 2013 script below is retained for reference, not recommended for unattended use. Its unquoted file iteration breaks on whitespace, shared temporary filenames can collide, and metadata removal can discard orientation or color information. Work on a backup, use null-delimited file iteration and unique temporary files, retain necessary metadata, and Continue reading “Script for optimizing images in a directory (recursive) in Linux”