This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define upstream blocks for each microservice | |
upstream user_service { | |
server user-service-container-ip:8001; # Replace with the IP address of the user-service container and its actual port | |
} | |
upstream product_service { | |
server product-service-container-ip:8002; # Replace with the IP address of the product-service container and its actual port | |
} | |
upstream order_service { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://networklessons.com/uncategorized/extend-lvm-partition |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
tomcat: | |
image: tomcat:8.0-alpine | |
container_name: tomcat | |
ports: | |
- '8080:8080' | |
volumes: | |
- tomcatDir:/usr/local/tomcat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
iptables -F | |
iptables -X | |
iptables -t nat -F | |
iptables -t nat -X | |
iptables -t mangle -F | |
iptables -t mangle -X | |
iptables -P INPUT ACCEPT | |
iptables -P FORWARD ACCEPT | |
iptables -P OUTPUT ACCEPT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global credential.helper osxkeychain |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
ext.kotlin_version = '1.6.10' | |
repositories { | |
google() | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:4.1.0' | |
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -c 3des-cbc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# smartctl -a -d megaraid,"(X)" /dev/sd"(X)" | |
The first X is the disk number so it should be something like megaraid,0 for the first disk and 1 for the second and so on, while the second X is the variable for the virtual drive like /dev/sda is the first VD and SDB will be the second and so on.. | |
If this did not work for you then, kindly provide me the login details of your server to follow up. | |
https://kb.leaseweb.com/products/dedicated-server/troubleshooting-hard-disk-and-raid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zend_extension=xdebug.so | |
xdebug.remote_autostart = 1 | |
xdebug.remote_enable = 1 | |
xdebug.remote_handler = dbgp | |
xdebug.remote_host = 127.0.0.1 | |
xdebug.remote_log = /tmp/xdebug_remote.log | |
xdebug.remote_mode = req | |
xdebug.remote_port = 9005 #if you want to change the port you can change |