A simplified table of contents for the API endpoints:
Let's break down the process in detail:
When NGINX starts up, it looks for configuration files in the /etc/nginx/sites-enabled
directory. By creating a symbolic link from the sites-available
directory to the sites-enabled
directory, you effectively enable the configuration file without duplicating it.
Here's a step-by-step explanation of creating the symbolic link:
-
Open a terminal or command prompt.
-
Use the following command to create the symbolic link:
Yes, you can create a separate configuration file for your React app in the /etc/nginx/sites-available
directory. Here's how you can do it:
Step 1: Create a new NGINX configuration file Run the following command to create a new configuration file for your React app:
sudo nano /etc/nginx/sites-available/my-react-app
This will open the Nano text editor with a new file.
-
Install Mongodb in server
-
Create/start multiple mongo servers (my be in different vm or in same server on different port)
mongod --port 2717 --dbpath ~/test/mongos/db1 --replSet myReplicaSet
mongod --port 2718 --dbpath ~/test/mongos/db2 --replSet myReplicaSet
mongod --port 2719 --dbpath ~/test/mongos/db3 --replSet myReplicaSet
-
Open up any mongo server shell (lets say “2717”) which will be your primary mongodb
mong --port 2717
-
Check status :
- install activemq :
brew install apache-activemq
- activate :
brew services start activemq
#!/bin/bash | |
# whoami -> MH Shifat | https://github.com/jspw | |
# date -> Tue 31 May 2022 10:29:08 PM +06 | |
LATEST_MAVEN_URL="https://dlcdn.apache.org/maven/maven-3/3.8.5/binaries/apache-maven-3.8.5-bin.tar.gz" | |
printf "Downloading "$MAVEN_FILE_NAME "...\n\n" | |
sudo wget $LATEST_MAVEN_URL |