This file contains 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
ubuntu@ip-172-31-32-251:/var/www/crawler$ npm install | |
npm ERR! code EACCES | |
npm ERR! syscall mkdir | |
npm ERR! path /var/www/crawler/node_modules | |
npm ERR! errno -13 | |
npm ERR! Error: EACCES: permission denied, mkdir '/var/www/crawler/node_modules' | |
npm ERR! [Error: EACCES: permission denied, mkdir '/var/www/crawler/node_modules'] { | |
npm ERR! errno: -13, | |
npm ERR! code: 'EACCES', | |
npm ERR! syscall: 'mkdir', |
This file contains 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
my full solution was: | |
sudo chown -R $USER /var/www/html | |
sudo chown -R www-data:www-data /var/www/html/storage/framework |
This file contains 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
# Run the following to solve the The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied | |
sudo chown -R $USER:www-data storage | |
sudo chown -R $USER:www-data bootstrap/cache | |
chmod -R 775 storage | |
chmod -R 775 bootstrap/cache |
This file contains 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
upstream preprod-apim-am.wavemoney.io { | |
server localhost:3000; | |
} | |
upstream preprod-apim-gw.wavemoney.io { | |
server localhost:4000; | |
} | |
server { | |
listen 80; | |
server_name preprod-apim-am.wavemoney.io; |
This file contains 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
@Value("${oracle-db.datasource.dbSchema}") | |
private String dbSchema; |
This file contains 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
integrated-client: | |
agentIdMap: | |
AGENT: X112312 |
This file contains 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
import java.util.Map; | |
import org.springframework.boot.context.properties.ConfigurationProperties; | |
import org.springframework.stereotype.Component; | |
@Component | |
@ConfigurationProperties(prefix = "integrated-client") | |
public class AgentIdMapConfig { | |
private Map<String, Long> agentIdMap; |
This file contains 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
// Replace the port number with the port you used.The server_name should also be replaced with you domain name. | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
server_name example.com www.example.com ; | |
location / { | |
proxy_pass http://localhost:8080; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; |
This file contains 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
In order to enable Gzip compression on your NGINX web server, | |
first open your NGINX's default configuration file: sudo vim /etc/nginx/nginx.conf, | |
and replace the existing Gzip settings with the following: | |
nginx.conf (you can modify the settings below according to your needs) | |
# Enable Gzip | |
gzip on; | |
gzip_http_version 1.0; | |
gzip_comp_level 2; |
This file contains 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://marc.vos.net/howto/oracle-oci8/ |
NewerOlder