iRedmail 用 dovecot sieve ...放在 user 的 sieve 目錄下 
dovecot.sieve 內容 

echochio 發表在 痞客邦 留言(0) 人氣()

將原本的服務的 port 例如 443 改成 4443
再由 nginx proxy 去瀏覽 4443 然而對外的是 nginx 443 port , nginx 用 http/2.0

echochio 發表在 痞客邦 留言(0) 人氣()

先下載 linux 的 mega tools
https://megatools.megous.com/builds/megatools-1.9.98.tar.gz

echochio 發表在 痞客邦 留言(0) 人氣()


 
登入 https://console.developers.google.com/

echochio 發表在 痞客邦 留言(0) 人氣()


先用 YUM 裝套件
# rpm -qa |grep ldap
nss-pam-ldapd-0.8.13-8.el7.x86_64
openldap-clients-2.4.40-13.el7.x86_64
openldap-2.4.40-13.el7.x86_64

echochio 發表在 痞客邦 留言(0) 人氣()

安裝 SASL
# yum install -y cyrus-sasl

echochio 發表在 痞客邦 留言(0) 人氣()


安裝 ldap
# yum install -y  openldap openldap-clients openldap-servers

echochio 發表在 痞客邦 留言(0) 人氣()

測試連 AD 搞不通 ....最後 ....這樣通了 .....
AD : 192.168.0.200
LDAP port : 389
user : tw\chio
password : P@ssw0rd

echochio 發表在 痞客邦 留言(0) 人氣()

undefined
要先安裝 java jdk
再來 產生 key

echochio 發表在 痞客邦 留言(0) 人氣()

CentOS 的 kernel 不支援 aufs 
裝上後 docker 就可用 aufs 了

echochio 發表在 痞客邦 留言(0) 人氣()

# docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 1.12.6
Storage Driver: devicemapper
 Pool Name: docker-253:0-1442840884-pool
 Pool Blocksize: 65.54 kB
 Base Device Size: 10.74 GB
 Backing Filesystem: xfs
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 11.8 MB
 Data Space Total: 107.4 GB
 Data Space Available: 107.4 GB
 Metadata Space Used: 581.6 kB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.147 GB
 Thin Pool Minimum Free Space: 10.74 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 Deferred Deletion Enabled: false
 Deferred Deleted Device Count: 0
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.135-RHEL7 (2016-11-16)
Logging Driver: journald
Cgroup Driver: systemd
Plugins:
 Volume: local
 Network: null host bridge overlay
Swarm: inactive
Runtimes: docker-runc runc
Default Runtime: docker-runc
Security Options: seccomp
Kernel Version: 4.10.12-1.el7.elrepo.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
Number of Docker Hooks: 2
CPUs: 4
Total Memory: 3.859 GiB
Name: test
ID: LGE5:GXJG:DW5K:BZJP:USBV:NUXR:75ZI:DRNN:57TT:OCY4:J2BZ:2IB6
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Username: echochio
Registry: https://index.docker.io/v1/
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
Insecure Registries:
 127.0.0.0/8
Registries: docker.io (secure)

echochio 發表在 痞客邦 留言(0) 人氣()

ESXI CentOS7 Extend HDD 紀錄一下 32G --> 320G
# fdisk -l
Disk /dev/sda: 34.4 GB, 34359738368 bytes, 67108864 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
............
# ls /sys/class/scsi_device/
1:0:0:0  2:0:0:0
# echo 1 > /sys/class/scsi_device/1\:0\:0\:0/device/rescan
# echo 1 > /sys/class/scsi_device/2\:0\:0\:0/device/rescan
# ls  /sys/class/scsi_host/
host0  host1  host2
# echo "- - -" > /sys/class/scsi_host/host0/scan
# echo "- - -" > /sys/class/scsi_host/host1/scan
# echo "- - -" > /sys/class/scsi_host/host2/scan
# fdisk -l
Disk /dev/sda: 343.6 GB, 343597383680 bytes, 671088640 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
........
#  fdisk /dev/sda
Welcome to fdisk (util-linux 2.23.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): n
Partition type:
   p   primary (2 primary, 0 extended, 2 free)
   e   extended
Select (default p): p
Partition number (3,4, default 3):
First sector (67108864-671088639, default 67108864):
Using default value 67108864
Last sector, +sectors or +size{K,M,G} (67108864-671088639, default 671088639):
Using default value 671088639
Partition 3 of type Linux and of size 288 GiB is set
Command (m for help): t
Partition number (1-3, default 3):
Hex code (type L to list all codes): 8e
Changed type of partition 'Linux' to 'Linux LVM'
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
# partprobe -s
/dev/sda: msdos partitions 1 2 3
]# pvcreate /dev/sda3
  Physical volume "/dev/sda3" successfully created.
[root@test ~]#  vgdisplay
  --- Volume group ---
  VG Name               centos
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               31.51 GiB
  PE Size               4.00 MiB
  Total PE              8066
  Alloc PE / Size       8055 / 31.46 GiB
  Free  PE / Size       11 / 44.00 MiB
  VG UUID               1jjmr9-Q026-XcEp-5661-wTYl-Ollk-kXUSv8
[root@test ~]#  vgextend centos /dev/sda3
  Volume group "centos" successfully extended
  ]# lvdisplay
  --- Logical volume ---
  LV Path                /dev/centos/swap
  LV Name                swap
  VG Name                centos
  LV UUID                WEJ3jH-Q3cV-0dY5-b1wa-W06A-C270-hRuiKD
  LV Write Access        read/write
  LV Creation host, time localhost, 2015-08-18 12:32:57 +0800
  LV Status              available
  # open                 2
  LV Size                2.00 GiB
  Current LE             512
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     8192
  Block device           253:1
  --- Logical volume ---
  LV Path                /dev/centos/root
  LV Name                root
  VG Name                centos
  LV UUID                VQ6mxx-SUC4-OO2c-6bN2-vuzD-Hvwi-06jpwr
  LV Write Access        read/write
  LV Creation host, time localhost, 2015-08-18 12:32:57 +0800
  LV Status              available
  # open                 1
  LV Size                29.46 GiB
  Current LE             7543
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     8192
  Block device           253:0
]# lvextend /dev/centos/root /dev/sda3
  Size of logical volume centos/root changed from 29.46 GiB (7543 extents) to 317.46 GiB (81270 extents).
  Logical volume centos/root successfully resized.
 xfs_info /dev/mapper/centos-root
meta-data=/dev/mapper/centos-root isize=256    agcount=4, agsize=1931008 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=0        finobt=0 spinodes=0
data     =                       bsize=4096   blocks=7724032, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=0
log      =internal               bsize=4096   blocks=3771, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
[root@test ~]# xfs_growfs /dev/mapper/centos-root
meta-data=/dev/mapper/centos-root isize=256    agcount=4, agsize=1931008 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=0        finobt=0 spinodes=0
data     =                       bsize=4096   blocks=7724032, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=0
log      =internal               bsize=4096   blocks=3771, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
data blocks changed from 7724032 to 83220480
[root@test ~]# df -h
Filesystem               Size  Used Avail Use% Mounted on
/dev/mapper/centos-root  318G   16G  302G   6% /

echochio 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。