본문 바로가기

program life/server

AWS 서버 SSH 셋팅 접속

AWS  서버 SSH 셋팅 접속

Setting up SSH


1. Connecting to your instance

ssh -i /your-path/your-key.pem ec2-user@your-ip-address


2. Changing permissions on your pem file
sudo chmod 600 /your-path/your-key.pem


3. Update

sudo yum update


4. Can install list check

- php

yum list | grep php

- mysql

yum list | grep mysql

- apache

yum list | grep apache

-mbstring

yum list | grep mbstring


4. Install

yum install program-name


mysql-server 

apache-ivy

php 

php-mbstring

php-mysql

 

5. Service start

/etc/init.d/httpd start

/etc/init.d/mysqld start


6. Auto start Service

chkconfig

chkconfig httpd on

chkconfig mysqld on


7. PhpMyadmin 설치

-download

wget http://www.sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/4.4.6/phpMyAdmin-4.4.6-all-languages.tar.bz2

-unzip

tar -jxf phpMyAdmin-4.4.6-all-languages.tar.bz2 -C /var/www/html

mv phpMyAdmin-4.4.6-all-languages phpmyadmin

rm -rf phpMyAdmin-4.4.6-all-languages.tar.bz2

yum --enablerep=epel install phpmyadmin


7. Web 경로

cd /var/www/html