PIXNET Logo登入

echochio

跳到主文

echochio的部落格跳到主文歡迎光臨echochio在痞客邦的小天地 ,我是一個(C/P)收集工程師^ ^ 所以想要跟(C/P)同好收集內容 因此有需要(C/P)下面程式語法的同好請來和我交流, 分享相片

部落格全站分類:數位生活

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 5月 10 週三 201715:59
  • nslcd 連 AD


先用 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) 人氣(669)

  • 個人分類:其他
▲top
  • 5月 09 週二 201708:51
  • SASL 連 AD

安裝 SASL
# yum install -y cyrus-sasl
(繼續閱讀...)
文章標籤

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

  • 個人分類:其他
▲top
  • 5月 08 週一 201713:46
  • openldap proxy 連 AD 測試


安裝 ldap
# yum install -y  openldap openldap-clients openldap-servers
(繼續閱讀...)
文章標籤

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

  • 個人分類:其他
▲top
  • 5月 04 週四 201711:07
  • openldap client 連 AD 測試

測試連 AD 搞不通 ....最後 ....這樣通了 .....
AD : 192.168.0.200
LDAP port : 389
user : tw\chio
password : P@ssw0rd
(繼續閱讀...)
文章標籤

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

  • 個人分類:其他
▲top
  • 4月 26 週三 201715:21
  • unsigned.apk 自簽成 signed.apk

undefined
要先安裝 java jdk
再來 產生 key
(繼續閱讀...)
文章標籤

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

  • 個人分類:其他
▲top
  • 4月 26 週三 201713:36
  • Docker image 非常大用 AUFS

CentOS 的 kernel 不支援 aufs 
裝上後 docker 就可用 aufs 了
(繼續閱讀...)
文章標籤

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

  • 個人分類:其他
▲top
  • 4月 25 週二 201716:58
  • Docker image 大於10 G .....

# 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) 人氣(141)

  • 個人分類:其他
▲top
  • 4月 25 週二 201715:39
  • ESXI 的 CentOS7 Extend HDD

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) 人氣(188)

  • 個人分類:其他
▲top
  • 4月 25 週二 201713:44
  • meteor-android-build in docker

看到 人家做的 meteor-android-build 
我將 android 模擬器也包進去 .....編譯出來 ....測了一下可用
(繼續閱讀...)
文章標籤

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

  • 個人分類:其他
▲top
  • 4月 25 週二 201708:42
  • Android emulator in docker

來做個 Android emulator
之前寫 Android 都是用模擬器 . 現在用 Docker 來做了
(繼續閱讀...)
文章標籤

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

  • 個人分類:其他
▲top
«1...10111232»

10% CPU 挖礦中

個人資訊

echochio
暱稱:
echochio
分類:
數位生活
好友:
累積中
地區:

熱門文章

  • (7,161)win7 升級到 win10 後不能用 sysprep 換  SID 處理方式
  • (6,589)Win10 裝 microsoft office 2010 starter
  • (5,116)AD網域主機故障時5大角色轉移+移轉移DNS 兩大角色
  • (1,578)tw.archive.ubuntu.com 連不上
  • (1,153)Windows Update時卻出現錯誤代碼 80004002。可試試下列方式:
  • (505)背景安裝微軟修補程式
  • (411)nginx proxy + keepalived HA
  • (252)AD網域主機故障時5大角色轉+移轉移DNS 兩大角色 ---- linux 的 zentyal
  • (225)Windows 做 HA ...NLB ...複寫會讓 NLB 失效 ....可以做但不要在 DC 做
  • (58)Zentyal DC 正常退出 DC

文章分類

toggle 雜七雜八 (1)
  • 其他 (257)
toggle 程式 (5)
  • C (2)
  • Android (7)
  • mysql (1)
  • vbscript (1)
  • shell (3)
  • 工具 (5)
  • 相片 (4)
  • 未分類文章 (1)

最新文章

  • php mssql connect
  • nginx 加網頁基本認證
  • Execl 自動抓良品與不良倉,已訂未進
  • 米動錶盤修改圖文教學
  • linux shell 下用 gdrive 備份資料
  • 註冊的 Domain 網站 , 用 github
  • 免費個人網域 + 個人DNS + 個人郵件 + 個人網頁
  • 網路找的 -- 100個最簡單的Excel巨集指令
  • Windows 7 的 多人遠端桌面 RDP
  • 該升級了 ........

最新留言

  • [22/10/14] 訪客 於文章「筆電, 電腦裝混碟(HDD+SSD) 安...」留言:
    感谢...
  • [22/01/25] Jake 於文章「AD網域主機故障時5大角色轉移+移轉移D...」留言:
    能否請問一下最後兩步驟 轉移DNS是如何做的呢? 看完還是不...
  • [20/05/07] Pei Ting Yeh 於文章「無線 AP 刷機 (ASUS RT-N1...」發表了一則私密留言
  • [18/09/13] echochio 於文章「Centos 7 安裝 OCS (OCS...」留言:
    https://github.com/OCSInventor...
  • [18/08/30] 訪客 於文章「Centos 7 安裝 OCS (OCS...」留言:
    盼复,感谢。...
  • [18/08/30] 訪客 於文章「Centos 7 安裝 OCS (OCS...」留言:
    补充:当执行systemctl status httpd....
  • [18/08/30] 訪客 於文章「Centos 7 安裝 OCS (OCS...」留言:
    我按照教程安装了,执行systemctl status ht...
  • [18/07/11] paco 於文章「VMware-converter...」留言:
    你好我想請問一下 echo "ALL:ALL" >> /e...
  • [14/06/20] Found the solution 於文章「Centos 6.4 ==> Coros...」留言:
    Your step-by-step is totally r...
  • [14/06/19] Packets conflict  於文章「Centos 6.4 ==> Coros...」留言:
    Hello, When I try to yum in...

動態訂閱

文章精選

文章搜尋

誰來我家

參觀人氣

  • 本日人氣:
  • 累積人氣: