mysqldump -uroot -pjingdong339 cwhljwomen>d.sql
tar -cjvf cwhljwomen.tar application/ library/ uploads/ faviconcx.ico index.php plugins/ themes/ viewhelpers/ .htaccess d.sql --exclude=library/Zend
Putty
cd /var/www/html/bafnw
cd .. 去上一层目录
Ls
Pwd 显示现在的目录
mkdir blfnw_org 创建blfnw_org目录
Ls -al 查看目录所有者
修改目录所有者 chown www -R blfnw_org
wget http://www.blfnw.org/blfnw.tar
Tar -xjvf blfnw.tar 解压缩文件
chown www:www-users -R ./* ./.* 修改全部文件的用户组
mysql -hrdsfvh65316748354844.mysql.rds.aliyuncs.com -uwomen -pwomenjingle30201 bafnw_org<d.sql
chmod 2750 -R ./* 修改全部文件的权限
chmod 770 -R uploads/ 修改uploads 写入权限
Service httpd restart
检查Linux系统上FTP服务是否开启:
1.通过查询提供FTP服务的进程是否存在
[root@localhost root]#ps -ef | grep ftp
#并未找到任何包含ftp关键字的进程信息,可判断服务未开启。
2.通过查询是vsftpd服务是否存在
[root@localhost root]#service vsftpd status
#vsftpd是最常见的FTP服务器,发现stopped状态即为关闭。
3.开启Linux上的FTP服务
[root@localhost root]# service vsftpd start
Starting vsftpd for vsftpd: [ OK ]
#再次查看发现已经处于启动状态:
[root@localhost root]# service vsftpd status
vsftpd (pid 4510) is running...
导出数据库
mysqldump -h host -u user -p dbname>data.sql