tar 分卷压缩与解压缩

分卷压缩

举例:将10G大小的log文件2017.log打包压缩并分割成多个100m的文件

# 分卷压缩gz

# tar zcf - 2017.log |split -d -b 100m - logs.tar.gz.
 

# 生成文件: logs.tar.gz.00 logs.tar.gz.01

# 分卷压缩bz2

# tar jcf - 2017.log |split -d -b 100m - logs.tar.bz2.

# 生成文件: logs.tar.bz2.00 logs.tar.bz2.01

最后要提醒但是那两个”-”不要漏了,那是tar的ouput和split的input的参数

或者直接打包压缩 一个目录也可以 

tar vczf - SUSE | split -d -b 2048m - SUSE.tar.gz
SUSE代表当前目录

标签

手动升级Drupal的步骤

https://www.drupal.org/docs/updating-drupal/updating-drupal-core-manually

PXE defaluts files

default vesamenu.c32


label install1
menu label ^Install Ubuntu 18.04.5 Desktop
menu default
kernel ubuntu1804/vmlinuz
append initrd=ubuntu1804/initrd boot=casper netboot=nfs nfsroot=192.168.1.11:/netboot/nfs/ubuntu1804/ splash toram ---

label install2
menu label ^Install Ubuntu 18.04.5 Server

kernel ubuntu1804/vmlinuz
append initrd=ubuntu1804/initrd boot=casper netboot=nfs nfsroot=192.168.1.11:/netboot/nfs/ubuntu1804server/ splash toram ---

标签

下载Ubuntu 18.04 网络安装目录

下载Ubuntu 18.04 网络安装目录

wget -c -r -np -k -L -p http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/installer-amd64/current/images/netboot/


以下两个国内的地址此命令无效 

wget -c -r -np -k -L -p https://mirrors.bfsu.edu.cn/ubuntu/dists/bionic-updates/main/installer-amd64/current/images/netboot/

wget -c -r -np -k -L -p http://mirrors.163.com/ubuntu/dists/bionic-updates/main/installer-amd64/current/images/netboot/

标签

Ubuntu18.04+RTX2080+cuda10+tensorflow 安装驱动和下载地址

Ubuntu 18.04修改root 密码

sudo passwd 修改为新的root密码 之后 su - 为root就可以了

标签

在Vmware ESXi 主机上关闭无响应的虚拟机电源或者重新启动

  • 在 ESX 主机上关闭虚拟机电源。
  • 虚拟机无响应,且无法停止或终止。
  • 无法访问或解锁虚拟机上的文件。
  • 在关闭虚拟机后,vCenter Server 显示虚拟机已启动且正在运行。

  • 不指示虚拟机已关闭。

  • 无法在虚拟机中编辑属性。

  • 会显示以下错误中的一个或多个:
    • Soap error 999. The operation is not allowed in current state.
    • The attempted operation cannot be performed in the current state (Powered Off).
    • The request refers to an object that no longer exists or has never existed

 Purpose

本文提供了关闭(如果需要)或停止无响应的虚拟机的正确顺序。

标签

在 SUSE Linux 上安装 PostgreSQL 10.x

SUSE Linux Enterprise Server 12SP5 (PostgreSQL) 10.12

SUSE Linux Enterprise Server 12SP3 (PostgreSQL) 10.8

linux-137:/usr/local # zypper install postgresql-server postgresql
linux-137:/usr/local # psql --version
psql (PostgreSQL) 10.12

linux-137:/home # chown postgres:postgres ./psqldata/

linux-137:/home # su postgres
postgres@linux-137:/home> initdb -D /home/psqldata/
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

标签

Rome Wasn't Built in a Day

Rome Wasn't Built in a Day

标签

安装Apache和PHP7 在SUSE Linux Enterprise Server

 

zypper in apache2

zypper in apache2-mod_php7

Apache的默认文档根目录是/srv/www/htdocs/目录 , 而 Centos7 是/var/www/html

配置文件是/etc/apache2/httpd.conf。

配置存储在的/etc/apache2/conf.d /目录。

vi /etc/apache2/default-server.conf
Options All
控制目录访问

systemctl restart apache2
 

标签
订阅