Friday, July 24, 2020

Weblogic 10.3.6 Installer Insufficient Disk Space

Weblogic 10.3.6 Installer fails with the insufficient disk space issue please use one of the following command to ignore disk space detection:


java -Dos.name=unix -jar wls1035_generic.jar

or

java -Xmx1024M -Dspace.detection=false -jar wls1035_generic.jar


Thursday, April 30, 2020

Disable Directory Listing Apache2

Edit the following file:

/etc/apache2/apache2.conf

Remove 'Indexes' from default root directory setting:

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>

Updated apache2.conf file:

<Directory /var/www/>
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>

Restart the apache2 server instance.

Thursday, March 5, 2020

SdkMan CLI

SDKMAN (Software Development Kit Manager CLI) is a tool for managing parallel Versions of multiple Software Development Kits on any Unix based system. It provides a convenient command line interface for installing, switching, removing and listing Candidates.

Installation:

 #curl -s "https://get.sdkman.io" | bash

 #source "$HOME/.sdkman/bin/sdkman-init.sh"

Check Version:

 #sdk versiokn

Development Kits
    Install:

     #sdk list <software> 
     #sdk list java

     #sdk install java 7.0.181-zulu
     #sdk install java 11.0.6.j9-adpt

     The installation could be find in: 
        <user.home>/.sdkman/candidates/

    Uninstall:
      #sdk uninstall java 7.0.181-zulu 
      
    User Version:
       #sdk use java 7.0.181-zulu 
      
    Default Version:
       #sdk default java 7.0.181-zulu 
    
    View Current Versions:
       #sdk current
    
    Upgrade Version:
       #sdk upgrade java
       #sdk upgrade
    
 for more reference http://sdkman.io


Thursday, January 2, 2020

Default Web Server on Mac

The web server can be started on my in any directory through the following command:

# python -m SimpleHTTPServer 8000

(port number can be changed) 

or the default apache server can also be started through: 

# sudo apachectl start

The default localhost folder located here: /Library/WebServer/Documents or as per
configuration in apache2 config files.

Default apache is installed in /etc/apache2/ with all
its configuration files (httpd.conf).

AWS EC2 - SSH locked with UFW

Need to update the instance's user data: 1. Stop the instance 2. Right click (windows) or ctrl + click (Mac) on the instance to open a c...