linux:digitalocean
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:digitalocean [2015/04/16 09:34] – [secure ssh in sshd_config] admin | linux:digitalocean [2022/10/29 16:15] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 60: | Line 60: | ||
</ | </ | ||
- | ===== 2. copy data from hostgator to Digitalocean ===== | + | ===== 2. Copy data from hostgator to Digitalocean ===== |
==== create backup file for web and database on Hostgator ==== | ==== create backup file for web and database on Hostgator ==== | ||
=== backup web === | === backup web === | ||
Line 72: | Line 72: | ||
</ | </ | ||
==== copy data to Digitalocean with scp ==== | ==== copy data to Digitalocean with scp ==== | ||
+ | (To run scp, you must install openssh-clients both client and server) | ||
* check ssh connect: <code bash> | * check ssh connect: <code bash> | ||
ssh -p 2222 anhvc@192.232.218.215 | ssh -p 2222 anhvc@192.232.218.215 | ||
- | | + | </ |
* scp<code bash> | * scp<code bash> | ||
scp -P 2222 anhvc@192.232.218.215: | scp -P 2222 anhvc@192.232.218.215: | ||
scp -P 2222 anhvc@192.232.218.215: | scp -P 2222 anhvc@192.232.218.215: | ||
- | | + | </ |
===== 3.Import database and config to run web on DigitalOcean ===== | ===== 3.Import database and config to run web on DigitalOcean ===== | ||
==== Import database ==== | ==== Import database ==== | ||
* create database:< | * create database:< | ||
mysqladmin create babyshopvn; | mysqladmin create babyshopvn; | ||
- | | + | </ |
* Import database:< | * Import database:< | ||
mysql -f --default-character-set=utf8 -uroot babyshopvn < babyshopvn.sql | mysql -f --default-character-set=utf8 -uroot babyshopvn < babyshopvn.sql | ||
- | | + | </ |
==== config httpd ==== | ==== config httpd ==== | ||
=== check location of httpd config file === | === check location of httpd config file === | ||
Line 132: | Line 133: | ||
</ | </ | ||
</ | </ | ||
- | === Create | + | === create |
Create helloworld.php in / | Create helloworld.php in / | ||
<code php> | <code php> |
linux/digitalocean.1429176859.txt.gz · Last modified: 2022/10/29 16:15 (external edit)