EduArn is your learning hub for AI, Cloud Computing, and DevOps tools and technologies. Explore detailed guides, practical examples, and real-world use cases of artificial intelligence platforms, cloud services, automation tools, CI/CD pipelines, containers, Kubernetes, infrastructure as code, and modern IT solutions. Learn how emerging technologies are transforming software development, deployment, and business operations while building your technical skills for the future.
In this post we are going to learn: 1. How to publish static website in AWS 2. How to create custom Amazon Virtual Private Cloud (VPC) and only one public SubNet 3. How to create Amazon Key 4. How to create Security Group 5. How to create Elastic Compute Cloud (EC2) 6. How to install httpd and run 7. How to place simple html file in /var/www/html directory 8. Running the Website by http://IPofServer.
Assuming: 1. You have AWS account as free for one year or paid. 2. Windows or other PC where you can open the AWS Console 3. Internet connectivity 4. Understanding of English 5. and others
Architecture of this Solution
Logging into your AWS account.
Choose the AWS region from top right corner, in which region you want to publish your website. I'm selecting N.Virginia Select the VPC under Networking & Content Delivery domain.
VPC screen will appears with details about VPC. Click on the Your VPC
Click on the Create VPC
After watching my below video you will able to run one page static website as mentioned below.
For more details see below video:
Note: this post is not design for HA, RD, and Multi AZ's support as consider for initial sharing with help of manual activity. Good to have automated with respective tools.
Note: delete all your AWS resource whatever create in above video else it will be chargeable if not in free. Please like and share if you can!!!
How to configured and use local git repository in Eclipse with java project, step by step example, code and tutorials. Clone, Git, Repository, DVCS, Programming, Computer, Software, Branches, Tag, Remote, Local, .gitignore, Commit, SHA, id, master, HEAD, origin, Index, push, pull, fetch and about git.
How to configured and use the remote git repository in Eclipse with Java project, step by step example, code and tutorials. Clone, Git, Repository, DVCS, Programming, Computer, Software, Branches, Tag, Remote, Local, .gitignore, Commit, SHA, id, master, HEAD, origin, Index, push, pull, fetch and about git, How to.
Package Arch Version Repository Size
======================================================================================================================================================
Installing:
git-all noarch 1.7.1-3.el6_4.1 base 16 k
Installing for dependencies:
emacs-git noarch 1.7.1-3.el6_4.1 base 40 k
git x86_64 1.7.1-3.el6_4.1 base 4.6 M
git-cvs noarch 1.7.1-3.el6_4.1 base 84 k
git-email noarch 1.7.1-3.el6_4.1 base 41 k
git-gui noarch 1.7.1-3.el6_4.1 base 216 k
git-svn noarch 1.7.1-3.el6_4.1 base 95 k
gitk noarch 1.7.1-3.el6_4.1 base 132 k
perl-Git noarch 1.7.1-3.el6_4.1 base 28 k
<?xml version='1.0' encoding='utf-8'?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <tomcat-users> <!-- NOTE: By default, no user is included in the "manager-gui" role required to operate the "/manager/html" web application. If you wish to use this app, you must define such a user - the username and password are arbitrary. --> <!-- NOTE: The sample user and role entries below are wrapped in a comment and thus are ignored when reading this file. Do not forget to remove <!.. ..> that surrounds them. --> <role rolename="tomcat"/> <role rolename="role1"/> <user username="tomcat" password="tomcat" roles="tomcat"/> <user username="both" password="tomcat" roles="tomcat,role1"/> <user username="role1" password="tomcat" roles="role1"/> <role rolename="admin"/> <role rolename="admin-gui"/> <role rolename="admin-script"/> <role rolename="manager"/> <role rolename="manager-gui"/> <role rolename="manager-script"/> <role rolename="manager-jmx"/> <role rolename="manager-status"/> <user name="admin" password="adminadmin" roles="admin,manager,admin-gui,admin-script,manager-gui,manager-script,manager-jmx,manager-status" /> </tomcat-users>
4. Start tomcat /etc/init.d/tomcat start 5. Access the Web Interface http://server_IP_address:8080 or http://127.0.0.1:8080
Logging with root user and perform bellow command:
1. For java:
su -c "yum install java-1.8.0-openjdk"
2. For javac:
su -c "yum install java-1.8.0-openjdk-devel"
Video:
[root@vagrant-centos65 tutorialbyexample.com]# su -c "yum install java-1.8.0-openjdk"
Loaded plugins: fastestmirror, versionlock Setting up Install Process Loading mirror speeds from cached hostfile epel/metalink | 27 kB 00:00 * base: mirror.as29550.net * epel: epel.besthosting.ua * extras: anorien.csc.warwick.ac.uk * updates: anorien.csc.warwick.ac.uk base | 3.7 kB 00:00 extras | 3.4 kB 00:00 updates | 3.4 kB 00:00 updates/primary_db | 3.3 MB 00:03 Resolving Dependencies --> Running transaction check ---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.71-1.b15.el6_7 will be installed --> Processing Dependency: java-1.8.0-openjdk-headless = 1:1.8.0.71-1.b15.el6_7 for package: 1:java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64 --> Processing Dependency: xorg-x11-fonts-Type1 for package: 1:java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64 --> Processing Dependency: libpng12.so.0(PNG12_0)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64 --> Processing Dependency: libjvm.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64 --> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64 --> Processing Dependency: libjli.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64 --> Processing Dependency: libjava.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64 --> Processing Dependency: libasound.so.2(ALSA_0.9.0rc4)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64 --> Processing Dependency: libasound.so.2(ALSA_0.9)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64 --> Processing Dependency: fontconfig for package: 1:java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64 --> Processing Dependency: libpng12.so.0()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64 --> Processing Dependency: libjvm.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64 --> Processing Dependency: libjpeg.so.62()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64 --> Processing Dependency: libjli.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64 --> Processing Dependency: libjava.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64 --> Processing Dependency: libgif.so.4()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64 --> Processing Dependency: libawt.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64 --> Processing Dependency: libasound.so.2()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64 --> Processing Dependency: libXtst.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64 --> Processing Dependency: libXrender.so.1()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64 --> Processing Dependency: libXi.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64 --> Processing Dependency: libXext.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64
--> Running transaction check ---> Package alsa-lib.x86_64 0:1.0.22-3.el6 will be installed ---> Package fontconfig.x86_64 0:2.8.0-5.el6 will be installed --> Processing Dependency: freetype >= 2.1.4 for package: fontconfig-2.8.0-5.el6.x86_64 --> Processing Dependency: libfreetype.so.6()(64bit) for package: fontconfig-2.8.0-5.el6.x86_64 ---> Package giflib.x86_64 0:4.1.6-3.1.el6 will be installed --> Processing Dependency: libSM.so.6()(64bit) for package: giflib-4.1.6-3.1.el6.x86_64 --> Processing Dependency: libICE.so.6()(64bit) for package: giflib-4.1.6-3.1.el6.x86_64 ---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.71-1.b15.el6_7 will be installed --> Processing Dependency: tzdata-java >= 2014f-1 for package: 1:java-1.8.0-openjdk-headless-1.8.0.71-1.b15.el6_7.x86_64 --> Processing Dependency: jpackage-utils for package: 1:java-1.8.0-openjdk-headless-1.8.0.71-1.b15.el6_7.x86_64 ---> Package libXext.x86_64 0:1.3.2-2.1.el6 will be installed ---> Package libXi.x86_64 0:1.7.2-2.2.el6 will be installed ---> Package libXrender.x86_64 0:0.9.8-2.1.el6 will be installed ---> Package libXtst.x86_64 0:1.2.2-2.1.el6 will be installed ---> Package libjpeg-turbo.x86_64 0:1.2.1-3.el6_5 will be installed ---> Package libpng.x86_64 2:1.2.49-2.el6_7 will be installed ---> Package xorg-x11-fonts-Type1.noarch 0:7.2-11.el6 will be installed --> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.2-11.el6.noarch --> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.2-11.el6.noarch --> Processing Dependency: mkfontdir for package: xorg-x11-fonts-Type1-7.2-11.el6.noarch --> Processing Dependency: mkfontdir for package: xorg-x11-fonts-Type1-7.2-11.el6.noarch --> Running transaction check ---> Package freetype.x86_64 0:2.3.11-15.el6_6.1 will be installed ---> Package jpackage-utils.noarch 0:1.7.5-3.14.el6 will be installed ---> Package libICE.x86_64 0:1.0.6-1.el6 will be installed ---> Package libSM.x86_64 0:1.2.1-2.el6 will be installed ---> Package ttmkfdir.x86_64 0:3.0.9-32.1.el6 will be installed ---> Package tzdata-java.noarch 0:2015g-2.el6 will be installed ---> Package xorg-x11-font-utils.x86_64 1:7.2-11.el6 will be installed --> Processing Dependency: libfontenc.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.2-11.el6.x86_64 --> Processing Dependency: libXfont.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.2-11.el6.x86_64 --> Running transaction check ---> Package libXfont.x86_64 0:1.4.5-5.el6_7 will be installed ---> Package libfontenc.x86_64 0:1.0.5-2.el6 will be installed --> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================================================== Installing: java-1.8.0-openjdk x86_64 1:1.8.0.71-1.b15.el6_7 updates 190 k Installing for dependencies: alsa-lib x86_64 1.0.22-3.el6 base 370 k fontconfig x86_64 2.8.0-5.el6 base 186 k freetype x86_64 2.3.11-15.el6_6.1 base 361 k giflib x86_64 4.1.6-3.1.el6 base 37 k java-1.8.0-openjdk-headless x86_64 1:1.8.0.71-1.b15.el6_7 updates 32 M jpackage-utils noarch 1.7.5-3.14.el6 base 60 k libICE x86_64 1.0.6-1.el6 base 53 k libSM x86_64 1.2.1-2.el6 base 37 k libXext x86_64 1.3.2-2.1.el6 base 35 k libXfont x86_64 1.4.5-5.el6_7 updates 137 k libXi x86_64 1.7.2-2.2.el6 base 37 k libXrender x86_64 0.9.8-2.1.el6 base 24 k libXtst x86_64 1.2.2-2.1.el6 base 19 k
libfontenc x86_64 1.0.5-2.el6 base 24 k libjpeg-turbo x86_64 1.2.1-3.el6_5 base 174 k libpng x86_64 2:1.2.49-2.el6_7 updates 182 k ttmkfdir x86_64 3.0.9-32.1.el6 base 43 k tzdata-java noarch 2015g-2.el6 updates 177 k xorg-x11-font-utils x86_64 1:7.2-11.el6 base 75 k xorg-x11-fonts-Type1 noarch 7.2-11.el6 base 520 k
[root@vagrant-centos65 tutorialbyexample.com]# java Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options include: -d32 use a 32-bit data model if available -d64 use a 64-bit data model if available -server to select the "server" VM The default VM is server.
-cp -classpath A : separated list of directories, JAR archives, and ZIP archives to search for class files. -D= set a system property -verbose:[class|gc|jni] enable verbose output -version print product version and exit -version: Warning: this feature is deprecated and will be removed in a future release. require the specified version to run -showversion print product version and continue -jre-restrict-search | -no-jre-restrict-search Warning: this feature is deprecated and will be removed in a future release. include/exclude user private JREs in the version search -? -help print this help message -X print help on non-standard options -ea[:...|:] -enableassertions[:...|:] enable assertions with specified granularity -da[:...|:] -disableassertions[:...|:] disable assertions with specified granularity -esa | -enablesystemassertions enable system assertions -dsa | -disablesystemassertions disable system assertions -agentlib:[=] load native agent library , e.g. -agentlib:hprof see also, -agentlib:jdwp=help and -agentlib:hprof=help -agentpath:[=] load native agent library by full pathname -javaagent:[=] load Java programming language agent, see java.lang.instrument -splash: show splash screen with specified image See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details.
java-1.8.0-openjdk-devel:
[root@vagrant-centos65 bin]# su -c "yum install java-1.8.0-openjdk-devel"Loaded plugins: fastestmirror, versionlock Setting up Install Process Loading mirror speeds from cached hostfile * base: mirror.as29550.net * epel: epel.besthosting.ua * extras: anorien.csc.warwick.ac.uk * updates: anorien.csc.warwick.ac.uk Resolving Dependencies --> Running transaction check ---> Package java-1.8.0-openjdk-devel.x86_64 1:1.8.0.71-1.b15.el6_7 will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================================================== Installing: java-1.8.0-openjdk-devel x86_64 1:1.8.0.71-1.b15.el6_7 updates 10 M Transaction Summary =============================================================================================================================================================================================== Install 1 Package(s) Total download size: 10 M Installed size: 40 M Is this ok [y/N]: y Downloading Packages: java-1.8.0-openjdk-devel-1.8.0.71-1.b15.el6_7.x86_64.rpm | 10 MB 00:08 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : 1:java-1.8.0-openjdk-devel-1.8.0.71-1.b15.el6_7.x86_64 1/1 Verifying : 1:java-1.8.0-openjdk-devel-1.8.0.71-1.b15.el6_7.x86_64 1/1 Installed: java-1.8.0-openjdk-devel.x86_64 1:1.8.0.71-1.b15.el6_7 Complete!
[root@vagrant-centos65 bin]# [root@vagrant-centos65 bin]# [root@vagrant-centos65 bin]# javac Usage: javac where possible options include: -g Generate all debugging info -g:none Generate no debugging info -g:{lines,vars,source} Generate only some debugging info -nowarn Generate no warnings -verbose Output messages about what the compiler is doing -deprecation Output source locations where deprecated APIs are used -classpath Specify where to find user class files and annotation processors -cp Specify where to find user class files and annotation processors -sourcepath Specify where to find input source files -bootclasspath Override location of bootstrap class files -extdirs Override location of installed extensions -endorseddirs Override location of endorsed standards path -proc:{none,only} Control whether annotation processing and/or compilation is done. -processor [,,...] Names of the annotation processors to run; bypasses default discovery process -processorpath Specify where to find annotation processors -parameters Generate metadata for reflection on method parameters -d Specify where to place generated class files -s Specify where to place generated source files -h Specify where to place generated native header files -implicit:{none,class} Specify whether or not to generate class files for implicitly referenced files -encoding Specify character encoding used by source files -source Provide source compatibility with specified release -target Generate class files for specific VM version -profile Check that API used is available in the specified profile -version Version information -help Print a synopsis of standard options -Akey[=value] Options to pass to annotation processors -X Print a synopsis of nonstandard options -J Pass directly to the runtime system -Werror Terminate compilation if warnings occur @ Read options and filenames from file