crazyoptimist
open-menucloseme
Posts
About
githubmailrss
  • How to Setup LAMP Stack on Centos 7 - Right Way

    calendarDec 25, 2019 · 1 min read  ·
    Share on: twitterfacebooklinkedincopy

    Today I am going to follow up the procedures to setup standard LAMP stack on CentOS 7. For the latest version of phpMyAdmin: 1rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY* 2yum -y install epel-release For MariaDB: 1yum -y install mariadb-server mariadb 2systemctl enable --now mariadb 3mysql_secure_installation For Apache: …


    Read More
  • How to Install Letsencrypt Certbot for Apache on Centos 7

    calendarDec 20, 2019 · 1 min read  ·
    Share on: twitterfacebooklinkedincopy

    Simply follow this script below: 1yum install epel-release -y 2yum install certbot python-certbot-apache mod_ssl -y 3certbot --apache Create a cron job which renews certification once a week. 1crontab -e 10 0,12 * * * python -C 'import random; import time; time.sleep(random.random() * 3600)' && certbot …


    Read More
  • How to Setup a Reverse Proxy With Nginx on Centos 7

    calendarDec 20, 2019 · 1 min read  ·
    Share on: twitterfacebooklinkedincopy

    First off, install nginx on the server machine. 1yum update 2yum install epel-release 3yum install nginx Edit the nginx config file then. 1cd /etc/nginx/nginx.conf 2vim nginx.conf Edit the file like this: 1server_name domain.com; If you are not going to use domain name, a public ip address would also work instead of …


    Read More
  • How to Deploy Your Nodejs App on Centos 7

    calendarDec 20, 2019 · 1 min read  ·
    Share on: twitterfacebooklinkedincopy

    PM2 is a process manager for nodejs apps. It daemonizes apps built with nodejs, which means run-as-service. Let’s install PM2 using npm. 1npm install -g pm2@latest Now you can start your app using pm2 like so: 1pm2 start app.js Next, register the app as startup process. 1pm2 startup systemd 2pm2 save You can check the …


    Read More
  • How to Configure Virtual Hosts on Centos 7 Apache Server

    calendarDec 20, 2019 · 1 min read  ·
    Share on: twitterfacebooklinkedincopy

    Prerequisites for a vhost setup: 1chown -R apache:apache /path_to/site_root Set the permission of the root directory to 755, you may already know. 🙂 Well, let’s create a vhost config file before you edit it. 1cd /etc/httpd/conf.d 2vim domain_name.conf Now, grab this content to your config file: 1<VirtualHost …


    Read More
  • How to Fix OpenVPN Socket Bind Failure

    calendarDec 6, 2019 · 1 min read  ·
    Share on: twitterfacebooklinkedincopy

    I recently came up with this error on one of my OpenVPN servers. "OpenVPN - Socket bind failed on local address [AF_INET] IP:#portnum: Cannot assign requested address" Let me share how I did fix it. First off, check this openvpn’s default init script : [email protected] 1sudo grep After …


    Read More
  • How to Auto-Login to a Linux Server Using Public Key

    calendarNov 19, 2019 · 1 min read  ·
    Share on: twitterfacebooklinkedincopy

    This is a manual version of ssh-copy-id command. Let’s say that we are logging in to server named B from a local machine named A. First off, generate authentication key pair without passphrase on the local machine A: 1ssh-keygen -t rsa Now you got a public key of your local machine, of which path is: 1cd ~/.ssh 2cat …


    Read More
  • How to Login Using PPK File With SSH

    calendarNov 19, 2019 · 1 min read  ·
    Share on: twitterfacebooklinkedincopy

    In some situations, you are given only a ppk file for access to a cloud server. You know, however, it's for Putty on windows, not for OpenSSH client which might be the most familiar to you.🤔 I am gonna introduce a method to convert a ppk file into a pem file so that you can login to the linux server with ssh command …


    Read More
  • How to Install OpenVPN Server on Any Distro of Linux

    calendarNov 17, 2019 · 1 min read  ·
    Share on: twitterfacebooklinkedincopy

    Thanks to Stan's great work, it became so delightful to run your own secure and stable private VPN server. It's never been so easy. 👍 Download the installation script like this: 1wget https://raw.githubusercontent.com/Angristan/openvpn-install/master/openvpn-install.sh Change file permission to executable like this: …


    Read More
  • CI/CD Basic Tutorial With Codeship for DevOps Beginners

    calendarNov 8, 2019 · 2 min read  ·
    Share on: twitterfacebooklinkedincopy

    CI/CD Build History You might have ever been stuck in continuous deployment with codeship. Hacking principle of CI/CD is all the same in other platforms like CircleCI, Codefresh, TeamCity, etc. Okay, let’s get started. First off, connect your version control app such as github, gitlab or bitbucket to the Codeship.\ …


    Read More
    • ««
    • «
    • 2
    • 3
    • 4
    • 5
    • 6
    • »
    • »»

crazyoptimist

Software Engineer
Read More

Featured Posts

  • Automatic Https With Caddy - Extremely Easy
  • How to Deploy Next.js App to AWS EC2 in Production and Set up CI/CD with Github Actions
  • GPG Key in Git - Get Your Every Commit Verified
  • Deploy Your Web Apps in Just a Minute - Made With 💖 for Dockerists

Recent Posts

  • How to Assume IAM Role in AWS and Use It
  • How to Configure Remote SSH Connection to WSL 2
  • Automatic Https With Caddy - Extremely Easy
  • How to Deploy Next.js App to AWS EC2 in Production and Set up CI/CD with Github Actions
  • GPG Key in Git - Get Your Every Commit Verified
  • Deploy Your Web Apps in Just a Minute - Made With 💖 for Dockerists

Categories

DEVOPS 25 NETWORK 12 LINUX 7 GOLANG 4 DOCKER 3 JAVASCRIPT 3 VIM 3 PYTHON 1 TDD 1
crazyoptimist

Copyright 2019-  CRAZYOPTIMIST. All Rights Reserved

to-top