Linux 命令

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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值