Last active
April 25, 2018 12:57
-
-
Save worldofprasanna/68c72bd803233a89ba2eb0eea9788966 to your computer and use it in GitHub Desktop.
Useful commands to be shown in crescent college
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
# Install jekyll | |
gem install jekyll bundler | |
# Create new site and serve it | |
jekyll new crescent-college-website | |
cd crescent-college-website | |
jekyll serve | |
# git commands | |
git clone <repo-url> | |
git add <file> | |
git commit -m"message" | |
git push origin master | |
# Access remote server | |
ssh -i <key file> user@hostname | |
scp -i <key file> file-to-transfer user@hostname:<path in remote machine> | |
# Install httpd | |
sudo yum update -y | |
sudo yum install -y httpd24 | |
sudo service httpd start | |
# copy the crescent files | |
cd /var/www/html/ | |
cp /tmp/website.zip . | |
unzip website.zip | |
# AWS CLI | |
aws ec2 describe-instance-status --instance-ids <instance-id> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment