_master_host \ "$ssh _start_vip \"; Exit 0; } else {usage (); Exit 1; }} # A simple system call, enable the VIP on the new master sub Start_vip () {' ssh $new _master_ssh_user\@ $new _mas Ter_host \ "$ssh _start_vip \"; # A Simple System "call" Disable the VIP on the Old_master sub Stop_vip () {' ssh $orig _master_ssh_user\@ $orig _mast Er_host \ "$ssh _stop_vip \"; } Sub Usage {print "Usage:master_ip_failover–command=start|stop|stopssh|status–orig_master_host=host–orig_master_i P
/M02/83/DA/ Wkiol1d-fisrztqyaae3obxqws0129.png-wh_500x0-wm_3-wmp_4-s_2998259665.png "alt=" Wkiol1d-fisrztqyaae3obxqws0129.png-wh_50 "/>Use Ntpdate to synchronize the system time with the NTP server and write to the hardware clock, the Ntpdate service starts from the boot.Ntpdate 0.centos.pool.ntp.orgHwclock-wChkconfig ntpdate on650) this.width=650; "title=" Qq20160707164638.png "src=" http://s4.51cto.com/wyfs02/M01/83/DA/ Wkiol1d-fvrjxtihaacrtlswtzo178.png-wh_500x0-wm_3-wmp_4-s_2912137538.png "a
How do you setup/remove/modify cluster synchronization services daemon (cssd) on a non-RAC system (init.css d )?
Each of the localconfig operations need to be run as root$ ORACLE_HOME refers to the home used by ASM
Setup/Add==============
If the CSS is missing either due to specifically excluding it at install time... or it was later removed
$ ORACLE_HOME/bin/lo
Tags: User erro mysql tps row dev error ati rateMySQL Cluster setup-multi-Master modeThis article uses the Galera build MySQL cluster, realizes each MySQL is the main server, does not have the master-slave division.Environment:Three mysql5.7 servers.To install the MySQL cluster:Preparation before installation:# echo ' 192.168.1.2 mysql1 ' >>/etc/hosts# echo ' 192
[hadoop@hadoop01. ssh]$ Cat id_dsa.pub.hadoop03 >> Authorized_keysDistribute the Authorized_keys on the master host to each slave host:[email protected]. ssh]$ SCP Authorized_keys [email protected]:/home/hadoop/.ssh/authorized_keys[hadoop@ Hadoop01. ssh]$ SCP Authorized_keys [email protected]:/home/hadoop/.ssh/Authorized_keysTo install the JDK:sudo tar-xvf jdk-7u55-linux--R root:root jdk1.7.0_55JDK1.7.0_55 is generated after successful installation, confirming that the directory permission is d
# Priority change after script execution: 5 means priority +5;-5 is priority-5}Vrrp_instance Vi_a {State MASTER # Lord This value is master, from top to backupInterface eth0VIRTUAL_ROUTER_ID 50 # This value must be consistent between master and slavePriority 100Advert_int 1Authentication {# Authentication two parameter values, master and slave must also be consistentAuth_type PASSAuth_pass Yiban}Track_script {Chk_http_port}virtual_ipaddress {192.168.78.220}}5 Start keepalivedEnsure network upti
protocol, shutting it down can disconnectIptables-a input-p icmp-j DROPHost View:Ifconfig PS aux |grep nginx tail/var/log/ha_logFrom Machine view:Ifconfig PS aux |grep nginx tail/var/log/ha_logHost Open ICMP protocoliptables-d input-p icmp-j drop-d DeleteAnd on the same way to view, will find the host and the user's services automatically switched back;You can also stop the host's Heartbeat service Test View:/etc/init.d/heartbeat stopIn fact, the configuration of a variety of highly available s
Tomcat/webapps directory, remember not to change the name of the War package2. Add the slf4j,commons-loggin.jar to the apache-tomcat-7.0.42\webapps\solr\web-inf\lib . The 2 jar packages are missing from Solr 's own war package3. Configure Solr.home. add such a section to Web. XML below apache-tomcat-7.0.42\webapps\solr\web-infChange the E:\solr_home to your own directory, and then copy the solr-4.4.0 \EXAMPLE\SOLR to your ${solr_home}4. do the same for all nodes.5. Modify the ${solr_home}/solr
other nodes have not yet started;
4 Starting the Data node
Enter each data node, that is, the NDB1 and NDB2 directories, respectively: Ndbd-c localhost:1186
Start a second data node in the same way
PS: If you are prompted that a folder does not exist, create a new folder in that directory, and then restart it;
5 starting the MySQL service node
The same access to the MySQL Service node directory is the Mysqld1 and mysqld2 directories, executed: Mysqld.exe--defaults-f
example, if you create a web app and deploy it to Tomcat (multi-application), the default rule is to add a prefix to the project name in the URI to access it. For example, we assume that the project is named shopping, giving it a separate domain name: shopping.website.com. Then the default URL needs shopping.website.com/shopping to be OK, now it needs to be set to shopping.website.com. How to use Nginx configuration, to achieve our goal? In the nginx.conf configuration, add the rewr
[program:anuoapc]command=dotnet AnuoApc.Web.dll; Command directory=/root/aspnetcore/anuoapc/to run the program; The directory autorestart=true the command execution; If the program quits unexpectedly automatically restarts the Stderr_logfile=/var/log/anuoapc.err.log; Error log file Stdout_logfile=/var/log/anuoapc.out.log; Output log file environment=aspnetcore_environment=production; Process environment variable User=root; The user identity of the process execution stopsignal=int6. Copy the fil
({addshard: "shardtwo.mongodb.local:27018", Name: "Shardtwo"})
>>db.runcommand ({addshard: "shardthree.mongodb.local:27018", Name: "Shardthree"})As far as possible, the Shard server avoids the change of IP address of the server in the way of domain name resolution4. Start the Shard and add the slice key to the database>>db.runcommand ({"enablesharding": "Mc_visit"})
>>db.runcommand ({"Shardcollection": "MC_VISIT.MC _visit "," key ": {" Visitdate ":-1," Virus ": 1}})5, no data in the case of mod
.png " alt= "Wkiol1vartur2iezaalcbilsdlw740.jpg"/>See the above information, congratulations, Master-slave has been built successfully.9. TestingCreate a database in mastermysql> CREATE DATABASE Leedb;Viewing the database in slavemysql> show databases;You can see that the leedb in master has been automatically synced to slave. All possible future database changes in masterwill automatically sync to the slave. Of course, MySQL can filter the database or the data table to synchronize, you can choo
can also directly on the left to choose a source you think fast, I prefer 163.com.Problem:Parsing host mirrors.163.com ... Failed: unknown name or service. Wget: Unable to resolve host address "mirrors.163.com"Workaround:
Log in Root
Enter/etc/resolv.confVim/etc/resolv.conf
Modify content below (change DNS address to Google Domain name server)NameServer 8.8.8.8NameServer 8.8.4.4
Problem:Workaround:/etc/ssh//etc/ssh/permitrootlogin prohibit - Permitrootlogin y
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.