用xftp传,双击文件
[root@localhost ~]# ll total 97736 -rw-------. 1 root root 1485 Jul 9 12:48 anaconda-ks.cfg -rw-r--r--. 1 root root 100074288 Jul 12 17:16 nextcloud-19.0.3.tar.bz2
命令行传
[root@localhost ~]# yum install -y lrzsz [root@localhost ~]rz 接着双击要上传的文件 [root@localhost ~]# ll total 97736 -rw-------. 1 root root 1485 Jul 9 12:48 anaconda-ks.cfg -rw-r--r--. 1 root root 100074288 Jul 12 16:54 nextcloud-19.0.3.tar.bz2
如果发生乱码就用 rz -eb
原因:文件中包含控制字符
解决方法:使用 rz -eb -b:–binary 用binary的方式上传下载,不解释字符为ascii; -e:–escape 强制escape 所有控制字符,比如Ctrl+x,DEL等
将文件挪个地方
[root@localhost ~]# mv nextcloud-19.0.3.tar.bz2 /var/www/html/ [root@localhost ~]# cd /var/www/html/ [root@localhost html]# ll total 97736 -rw-r--r--. 1 root root 11 Jul 10 17:09 index.html -rw-r--r--. 1 root root 100074288 Jul 12 16:54 nextcloud-19.0.3.tar.bz2 [root@localhost html]# tar -jxvf nextcloud-19.0.3.tar.bz2 //解压缩 [root@localhost html]# ll total 97740 -rw-r--r--. 1 root root 11 Jul 10 17:09 index.html drwxr-xr-x. 13 nobody nobody 4096 Sep 9 2020 nextcloud -rw-r--r--. 1 root root 100074288 Jul 12 17:58 nextcloud-19.0.3.tar.bz2
linux系统下tarbz2解压命令是:tar -jxvf xxx.tar.bz2
linux系统下解压targz文件命令是:tar -zxvf xxx.tar.gz
Tar命令选项:
c:创建压缩文件
x:解压文件
v:显示进度.
f:文件名.
t:查看压缩文件内容.
j:通过bzip2归档
z:通过gzip归档
r:在压缩文件中追加文件或目录
W:验证压缩文件
[root@localhost ~]# yum install httpd -y [root@localhost ~]# systemctl start httpd [root@localhost ~]# systemctl stop firewalld.service [root@localhost ~]# setenforce 0 [root@localhost ~]# dnf install php* [root@localhost ~]# dnf -y install dnf-utils [root@localhost ~]# systemctl restart httpd 安装 MySQL [root@localhost ~]# yum -y install mysql [root@localhost ~]# yum install mysql-server mysql-devel 启动MySQL [root@localhost ~]# systemctl start mysqld.service 登录mysq [root@localhost ~]# mysql mysql> alter user 'root'@'localhost'IDENTIFIED BY 'password'; mysql> flush privileges; mysql> create database nextcloud; mysql> create user 'nextcloud'@'localhost' identified by 'password'; mysql> grant all on nextcloud.* to 'nextcloud'@'localhost'; mysql> flush privileges; mysql> quit