Author: admin

SSH ??????????? ?? ?????.

????????? ??? ?????? ??????? ? ?????????????????? ???????? ?? *nix ????????, ???? ????? ?? ???????? ??? ?? ???????, ? ?? ?????? ???? ??????, ???????. ??????? ?????? ??? ??????????/??????? ?? ?????????????? ?????????.
?????? ?? ???? ??????????? ?????????????, ????? ?????? ???????? ssh ??????????? ??? ?????? ?? ?????, ??? ???????? ?????? ? ???????? ????????????.
?????????? ? ?????? ???? ??? ? ??? ? ???????? ???????? ??????.
? ???????? ?? ??????? CentOS (??? ???????????? ????? ???????)
(далее…)

????????? ????? ???????? ?????????? VSFTPD

?? ?????? CentOS 6.5 ???? ??????????? VestaCP ? ???????????? php-fpm + nginx
??? ??????????? ? ??? FileZilla ???????? ??? ???????? ??????????:
????????? ????? ???????? ??????????

????? ???:
??????? ?? ?????? ?? ssh
? ????? /etc/vsftpd/vsftpd.conf ???????????? ??????

1
"pasv_address"
1
/etc/init.d/vsftpd restart

??????!

MySQL ?????????

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//???????? ??
mysqladmin -u USER -pPASSWORD create NEWDATABASE 
// ???????? ?????? ?? 
mysqlshow -u USER -pPASSWORD 
//?????
mysqldump -u USER -pPASSWORD DATABASE > /path/to/file/dump.sql 
//????? ? ??????????
mysqldump -u USER -pPASSWORD DATABASE | gzip > /path/to/outputfile.sql.gz 
//????? ? ????????? ????
mysqldump -u USER -pPASSWORD DATABASE | gzip > `date +/path/to/outputfile.sql.%Y%m%d.%H%M%S.gz` 
//???????? ?????? ? ??
mysql -u USER -pPASSWORD DATABASE < /path/to/dump.sql 
//???????? ?????? ?????? ? ??
gunzip < /path/to/outputfile.sql.gz | mysql -u USER -pPASSWORD DATABASE 
// ??????? ????????? ??? ??????
mysqldump --no-data - u USER -pPASSWORD DATABASE > /path/to/file/schema.sql 
//????? ????? ??? ?????????? ??????
mysqldump -u USER -pPASSWORD DATABASE TABLE1 TABLE2 TABLE3 > /path/to/file/dump_table.sql

????????? nginx+phpfpm+eaccelerator+memcache ?? FreeBSD

????? ?????? FreeBSD 10.2

??????? ??????? ?????

1
 portsnap fetch update

????????????? ?????????? ?????? nginx ?? ??????:

1
 cd /usr/ports/www/nginx
1
 make install clean

????????? ? ????????????:

1
 echo 'nginx_enable=YES' >> /etc/rc.conf

WWW-??????????: /usr/local/www/nginx/
???? ????????????: /usr/local/etc/nginx/nginx.conf
???? ??????: /var/log/nginx-error.log
???? ???????: /var/log/nginx-access.log
?????? PHP-FPM (??????? ? php 5.3 ????? ?? ????? php-fpm ?????????????)

1
2
cd /usr/ports/lang/php56
make install clean

(далее…)