[LINUX] Commands often used in the terminal (EC2 server) (for your own viewing)

When logging in as ec2user

Terminal (local)

$ ssh -i [The name of the downloaded key].pem [email protected][Elastic IP associated with the created EC2 instance]
(Using the downloaded key, ec2-Login as user)

Launch Unicorn Rails

[[email protected] <Repository name>]$ bundle exec unicorn_rails -c config/unicorn.rb -E production -D

Check Unicorn error log

Terminal (EC2 server)

[[email protected] <Repository name>]$ less log/unicorn.stderr.log

How to close the Unicorn error log

Terminal (EC2 server)

:q!

Check the process

[[email protected] <Repository name>]$ ps aux | grep unicorn

Perform automatic deployment

$ bundle exec cap production deploy

Recommended Posts

Commands often used in the terminal (EC2 server) (for your own viewing)
Commands often used in the development environment during Python implementation
I tried to summarize the commands often used in business
Create your own Linux commands in Python
Disk-related commands often used in Ubuntu (memories)
Create your own Big Data in Python for validation
Use the CASA Toolkit in your own Python environment
A collection of commands frequently used in server management
I tried to summarize the code often used in Pandas
Settings often used in Jupyter
Frequently used commands in virtualenv