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
'program life > server' 카테고리의 다른 글
[GitLab] - Docker에 설치 (0) | 2020.05.25 |
---|---|
AWS 접속 Error - Host key verification failed (0) | 2019.08.13 |
GCP - Google Cloud Platform 무료 이용 방법 (4) | 2019.02.12 |
리눅스 MX 레코드 확인 (0) | 2017.07.10 |
리눅스 root 계정 비밀번호 변경 (0) | 2017.05.17 |