connections for the MARIADB database again, and you can see that the maximum number of connections is 214, not the 1000 we set.MariaDB [(None)]> show variables like ' max_connections '; +-----------------+-------+| variable_name | Value | +-----------------+-------+| max_connections | 214 | +-----------------+-------+This is because MARIADB has the default number of open files limit. You can adjust the number of open files by configuring/usr/lib/systemd/system/mariadb.service. Configure/usr/lib
1. In window, network--My own computer, you can view the shared file, indicating that window sharing is normal;2. When configuring a share in window, only super admin access is allowed, but I renamed the Super Administrator to Qidizi, not administrator, so I used the following command to connect in CentOS:When I enter the correct password, I still prompt this errorSmbclient-u qidizi-pcs/qidizi-l 192.168.1.1013. In the CMD in window input net user, the list of users is can be connected through th
We cannot start the network card, so we can only useIfup eth0 (eth0 refers to the network card)To start, but every time it feels so inconvenient. Hope to start the network card automaticallyBaidu search later found can be modified by modifying the network card (ifcfg-eth0) parameters to boot, that is, open the Ifcfg-eth0 fileType=Ethernetbootproto=Dhcpdefroute=Yespeerdns=yespeerroutes=yesipv4_ Failure_fatal=noipv6init=yesipv6_autoconf=Yesipv6_defroute=Yesipv6_peerdns =yesipv6_peerroutes=yesipv6_
Mongodb3.0.5 replica set setup and spring and Java connection replica set configuration details
First, the basic environment:
mongdb3.0.5 DatabaseSpring-data-mongodb-1.7.2.jarMongo-java-driver-3.0.2.jarlinux-redhat6.3Tomcat7
Second, build MongoDB replica set:
1. Install MongoDB on three Linux systems respectively (to avoid conflicts with the original MongoDB port on the machine, set to 57017):
192.168.
1, the following operation is carried out in CentOS 6.6. First setup enters, select Network Configuration "Tab key up and down, enter OK to enter "2, select the device configuration, the network configuration bar will automatically get the following * remove the DHCP, and then manually enter the IP address3, finally confirm OK return to the main interface save and exit (Savequit) return to the command line, restart the Network Service (service network
This paper describes the thinkphp connection database and the master-slave database setting method in detail, which is very practical in the development of thinkphp project. The implementation methods are as follows:
First, the project root directory to establish config.php
The code looks like this:
Second, set up project configuration file
The \home\conf\config.php file code is as follows:
The \admin\conf\config.php fil
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.