I'm new to clickhouse. I tried the clickhouse on both Ubuntu and MacOS. As for the ubuntu version, I know the server config.xml is under the /etc/clickhouse-server/ folder. However, on the Mac OS I cannot find the config.xml with the path with the quick start installation method provided here.
wget 'https://builds.clickhouse.com/master/macos/clickhouse'
chmod a+x ./clickhouse
./clickhouse
I know I can build a clickhouse to get the config file in the /etc/ folder. But I'm wondering where is the config.xml file if I choose to pre download the applicaion.
You can download this https://github.com/ClickHouse/ClickHouse/blob/master/programs/server/config.xml
and then run ./clickhouse -c config.xml
Or you can use brew (Intel and M1 both are supported) https://github.com/Altinity/homebrew-clickhouse
then files will be in /usr/local/
/usr/local/etc/clickhouse-server/
/usr/local/var/lib/clickhouse/
/usr/local/var/log/clickhouse-server/
/usr/local/bin/clickhouse-server
/usr/local/bin/clickhouse-client
Related
I installed mongodb in my mac and following is the way I installed. Where is my mongodb log file located?
$ tar xzf mongodb-osx-x86_64-2.2.3.tgz
$ sudo mv mongodb-osx-x86_64-2.2.3 /usr/local/mongodb
$ sudo mkdir -p /data/db
$ sudo chown 'whoami' /data/db
$ vim .bash_profile
export MONGO_PATH=/usr/local/mongodb
export PATH=$PATH:$MONGO_PATH/bin
Where is the settings file of mongodb located which stores all this information.
I installed mongo with brew, and it was located at /usr/local/var/log/mongodb/mongo.log
I found it by running
find / -name mongo.log
From the mongo shell you can find the path for data, log and config using:
db.serverCmdLineOpts()
As #dcrosta answered here: Sane defaults for MongoDB on OSX, MongoDB only have default values for the data path. All other locations shall be established by the user if desired.
In the installation process you posted here, can't see any command to set the log path so, in conclusion, your MongoDB is not saving any log file.
With the default mongodb-community homebrew installation on a Macbook Pro with Apple Silicon, the logs are with the rest of the homebrew services logs, at /opt/homebrew/var/log. I think the location is different with Intel silicon, but the concept should be the same.
I am installing openERP following the manual in [1]: http://netbeam.in/blog/install-openerp-on-mac-osx/
I execute the next command:
tar tvfz openerp-7.0-latest.tar.gz
Before is supossed that I will execute:
sudo mv openerp_XXXXXX to home directory
cd openerp_XXXXXXX
But I don´t know where is the path of openERP is installed.
Can you help me to end installing openERP?
I am use Mac OS Yosemite.
Thank you so much.
openerp is still inside the directory you extracted in step 6 (tar tvfz ....), but that directory is still located in your Downloads directory which isn't a good place to stay.
So they instruct you to move the openerp directory to your home directory: sudo mv openerp_xxxxxx /Users/<your-username>/ should be the right command. After that, the next command should be cd /Users/<your-username>/openerp_xxxxxx to go to the moved directory.
I'm trying to setup a cronjob for a regularly scheduled import of json data into a mongo database. To conduct the import, I have the following command in the Python script that the cronjob runs:
os.system("mongoimport --jsonArray --db %s --collection %s --file .../data.txt" %(db_name,collection_name))
However, the log file of the cronjob keeps displaying the following error:
sh: mongoimport: command not found
I think I need to call mongoimport with the full file path in the code, but I'm not sure where mongodb/mongod/mongoimport is installed on my system. whereis mongoimport, whereis mongodb, whereis mongod all return nothing.
I installed mongodb with Homebrew. Packages installed with Homebrew are located in /Library/Caches/Homebrew. However, in my system that folder only has a mongodb-2.6.4_1 tar file. Do I have to unpack this tar file to access mongoimport?
Thanks for your help.
As of June 2020,
I installed mongodb latest version using brew as per the documentation , and I faced the same issue command not found: mongoimport .
I had to to install mongodb-database-tools
brew install mongodb/brew/mongodb-database-tools
Then I could use mongoimport
Just adding this solution, incase it helps someone
Got the same issue, but I installed mongodb via Mac Port. Unfortunately, from version 3 of mongodb, these mongodb tools are maintained as a separate project, so I updated Mac port to latest version then installed mongo tools separately.
sudo port install mongo-tools
Hope this helps someone that installing mongodb by mac port.
If you installed MongoDB correctly you need to create a ~/.bash_profile and assign /usr/local/mongodb/bin to the $PATH environment variable
After that you should be able to access the mongoimport command
If you used brew for installation, mongod is in /usr/local/bin/ directory. Other utilities (mongoimport, mongoexport etc.) are in the same path. All you need to do is open another terminal.
Visit https://www.mongodb.com/download-center/community and you can download a tarball for MacOS, which contains all the tools including mongoimport.
Untar, add to you PATH and voilà!
Try using ./mongoimport or sudo ./mongoimport
After following all of these examples, I was able to use it that way from bash.
I'm working on the front end for a web app, but I'm trying to learn as much of the backend setup as I can as well. I am setting up redis on a new computer myself, but running into a few hiccups.
The wget command cannot be found, so I assume it Linux only? I am following these instructions to install redis on Mac OS 10.7. I have redis 2.0.0 installed, but while attempting to install 2.4.4 using the same commands, I am told redis-server, redis-cli, redis-benchmark cannot be found, and I can't copy them to /usr/local/bin.
I could not find an update command to bring redis up to the most recent version. I don't think it should be this difficult to install the most recent version on redis on Mac OS, but I can't see what I am doing wrong.
So far as I know, typing:
$ brew upgrade redis
should work, where $ indicates your command line. If it complains about HomeBrew not being installed, you can obtain that here. Brew is an excellent package manager, and a great way of taking care of your files.
If you're not using brew, then these steps will help you get up to date.
First, find the location of your installed redis-server instance before updating. In my case, it was in /usr/local/bin/, but it might also be in /usr/bin/. If it's not here, you can type which redis-server to find the location.
Next, download the redis tar file from https://redis.io/download, then install it from the directory it downloaded to:
cd Downloads
tar xzf redis-X.Y.Z.tar.gz
cd redis-X.Y.Z
make test
make
Next, we'll move the new installed redis to the location where the current instance is running:
sudo mv src/redis-server /usr/local/bin
sudo mv src/redis-cli /usr/local/bin
Now you should be ready to use redis-server and redis-cli in the new version.
PS - I also moved the redis-benchmark, redis-sentinel, redis-check-aof, and redis-check-dump files because they were also already in /usr/local/bin.
Ref: http://jasdeep.ca/2012/05/installing-redis-on-mac-os-x/
It would be better to follow this way.
$ brew update
$brew upgrade redis
Create a bash file...
cd ~
nano .update_redis
Go into the tmp directory and download the latest stable version
cd /tmp
wget http://download.redis.io/redis-stable.tar.gz
Decompress the files
tar xvzf redis-stable.tar.gz
Compile
cd redis-stable
make
Copy the bin programs
cp src/redis-cli /usr/bin/
cp src/redis-server /usr/bin/
cp src/redis-benchmark /usr/bin/
Set Permissions
chmod 755 /usr/bin/redis-cli
chmod 755 /usr/bin/redis-server
chmod 755 /usr/bin/redis-benchmark
Execute
bash .update_redis
I am trying to install Leiningen on mac os 10.6.4, following the instructions here - http://alexott.net/en/clojure/ClojureLein.html. The package is being downloaded, but lein command is not found. What could be the problem?
You need to copy the executable in a directory which is in your path (/usr/local/bin/), for instance.
Type echo $PATH to see the different directories.
You'll also need to make the file executable:
chmod 555 /usr/local/bin/lein