กรณีที่เจอ Message Box บน M$ Server
"The terminal server has exceeded the maximum number of allowed connections"
เปิด CMD ขึ้นมาครับ แล้วจัดคำสั่ง
mstsc /v:IP-Address-Server /admin
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6T2nP5Z2WKsfMVP-LR7hZQYVikeiBR5ADmGYKgpuVpjnWZFEheGWA0I9SYwbKFUx397gu8L2PCfXH0VDadmFIK_SQmyoQOvpSn8Y_ZARuZx2AuQaKoInsNfC22FZP6RAfPbqIPjpkYrkv/s640/rdp-exceeded-max-session-2.png)
.............................
a2enmod ratelimit2. ทำการ Configuration ระบุในส่วนของ URL ที่ต้องการ Limit Speed Download
vi /etc/apache2/conf-available/ratelimit.conf
a2enconf ratelimit4. ทำการ Restart Apache
service apache2 restart
root@linux:~#sudo apt-get update root@linux:~#sudo apt-get install apache2 apache2-utils -y
root@linux:~# htpasswd -c /etc/apache2/.htpasswd user-share New password: Re-type new password: Adding password for user user-share root@linux:~#
root@linux:~#/etc/init.d/apache2 restart * Restarting web server apache2 [ OK ] root@linux:~#
# docker-compose up -d
ERROR: In file './docker-compose.yml' service 'version' doesn't have any configuration options. All top level keys in your docker-compose.yml must map to a dictionary of configuration options.Check list:
# docker-compose --version docker-compose version 1.5.2, build unknownFixed Issue:
# curl -L https://github.com/docker/compose/releases/download/1.8.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose # chmod +x /usr/local/bin/docker-composeand Run docker-compose again.
qemu-img info {image-name}
root@ubuntu#qemu-img info hda.qcow2 image: hda.qcow2 file format: qcow2 virtual size: 20G (21474836480 bytes) disk size: 2.3G cluster_size: 65536 Format specific information: compat: 1.1 lazy refcounts: false refcount bits: 16 corrupt: false root@ubuntu# du -sh * 2.4G hda.qcow2 root@ubuntu#
qemu-img create -f qcow2 {image-name} {max-storage}
![]() |
Login UNetLab Shell |
wget -q -O- https://get.docker.com/ | bash
![]() |
Install Docker on UNetLab |
DOCKER_OPTS="-H=tcp://0.0.0.0:4243"
![]() |
Edit docker configure files |
vi /etc/hosts 172.20.1.50 ldp-ceph ldp-ceph.example.me 172.20.1.51 node01 node01.example.me 172.20.1.52 node02 node02.example.me 172.20.1.53 node03 node03.example.me
useradd -d /home/cephuser -m ceph-admin echo -e "ceph-admin\nceph-admin\n" | passwd ceph-admin echo "ceph-admin ALL = (root) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/ceph-admin chmod 0440 /etc/sudoers.d/ceph-admin echo -e 'Defaults:ceph-admin !requiretty\nceph-admin ALL = (root) NOPASSWD:ALL' | tee /etc/sudoers.d/ceph-admin chmod 440 /etc/sudoers.d/ceph-admin
vhv.enable = "true"
vhv.enable = "true"
vi /etc/nova/nova.conf #Fail instance boot if vif plugging fails vif_plugging_is_fatal = False #Number of seconds to wait for neutron vif vif_plugging_timeout = 0
[root@localhost ~]# ip link 1: lo:mtu 65536 qdisc noqueue state UNKNOWN mode DEFAU LT link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eno16777736:mtu 1500 qdisc pfifo_fast st ate UP mode DEFAULT qlen 1000 link/ether 00:0c:29:f4:fc:ef brd ff:ff:ff:ff:ff:ff 3: eno33554960:mtu 1500 qdisc pfifo_fast st ate UP mode DEFAULT qlen 1000 link/ether 00:0c:29:f4:fc:f9 brd ff:ff:ff:ff:ff:ff 4: eno50332184:mtu 1500 qdisc pfifo_fast st ate UP mode DEFAULT qlen 1000 link/ether 00:0c:29:f4:fc:03 brd ff:ff:ff:ff:ff:ff [root@localhost ~]#
vi /etc/default/grub [root@localhost ~]# cat /etc/default/grub GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet net.ifnames=0 biosdevname=0" GRUB_DISABLE_RECOVERY="true" [root@localhost ~]# [root@localhost ~]# grub2-mkconfig -o /boot/grub2/grub.cfg Generating grub configuration file ... Found linux image: /boot/vmlinuz-3.10.0-327.el7.x86_64 Found initrd image: /boot/initramfs-3.10.0-327.el7.x86_64.img Found linux image: /boot/vmlinuz-0-rescue-c03712fe3ce846b192279eaaa8531bc0 Found initrd image: /boot/initramfs-0-rescue-c03712fe3ce846b192279eaaa8531bc0.img done [root@localhost ~]#
[root@controller01 ~]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain 192.168.1.10 controller01 controller01.example.com [root@controller01 ~]# [root@controller01 ~]# hostnamectl Static hostname: controller01.example.com -------------------- hidden output-------------------------------------- Architecture: x86-64 [root@controller01 ~]#
[root@controller01 ~]# systemctl stop NetworkManager [root@controller01 ~]# systemctl disable NetworkManager [root@controller01 ~]# setenforce 0 [root@controller01 ~]# sed -i 's/enforcing/permissive/' /etc/selinux/config
TYPE="Ethernet" BOOTPROTO="static" IPADDR=192.168.1.10 PREFIX=24 GATEWAY=192.168.1.1 DNS1=192.168.1.1 NAME="eth1" DEVICE="eth1" ONBOOT="yes"
[root@controller01 ~]# yum -y install centos-release-openstack-mitaka epel-release