~ rsync server for centos ~

Post on (2017.05.08) |rsync | No Comments
yum -y install rsync
nano /etc/rsyncd.conf

 # any name you like

[backup]
# destination directory for copy

path = /home/backup
# hosts you allow to access

hosts allow = 10.0.0.30
hosts deny = *
list = true
uid = root
gid = root
read only = false
[[email protected] ~]# mkdir /home/backup

[[email protected] ~]# systemctl start rsyncd

[[email protected] ~]# systemctl enable rsyncd 

 

~ cwrsync for windows Clients ~

Post on (2017.05.08) |rsync | No Comments

install cwRsync
open <bin> folder create file <known_hosts>
open cmd
move to the install folder

ssh-keygen -q -t rsa -f cwrsync -N ""

"cwrsync" will be the ssh public and private key file name

ssh -i {privateKeyName} {user}@{SERVERIP} -o UserKnownHostsFile=./known_hosts

and press <yes> to save the hosts

Then Connection is OK

Create a file named as "syncServer.cmd"

@ECHO OFF
SETLOCAL

H:
cd H:\cwRsync\bin

SET CWRSYNCHOME=H:\cwRsync\bin
SET HOME=%CWRSYNCHOME%

rsync --perms -arHz '/cygdrive/c/Users/{USER}/workspace/icfServer/src/' --progress --delete -e'./ssh -i ./cwrsync -o UserKnownHostsFile=./known_hosts' {user}@{HOST IP}:/home/folder/

PAUSE

 

640GB SATA non-raid HDD

4TB SATA RAID-1

m5p SATA SSD non-raid HDD

M.2 Raid-0 128GBx2 M8P

DDR4 RAM DISK

mysql> stop slave;
Query OK, 0 rows affected (0.00 sec)

mysql> set global sql_slave_skip_counter=2;
Query OK, 0 rows affected (0.00 sec)

START SLAVE;

SHOW SLAVE STATUS \G;

 

如果Slave DB出現以下情況。

Relay log read failure: Could not parse relay log event entry. The possible reasons are: the master's binary log is corrupted (you can check this by running 'mysqlbinlog' on the binary log), the slave's relay log is corrupted (you can check this by running 'mysqlbinlog' on the relay log), a network problem, or a bug in the master's or slave's MySQL code. If you want to check the master's binary log or slave's relay log, you will be able to know their names by issuing 'SHOW SLAVE STATUS' on this slave.

先記住Master_Log_File,Exec_Master_Log_Pos

stop slave;

CHANGE MASTER TO MASTER_HOST='{SERVERIP}', MASTER_PORT={PORT}, MASTER_USER='{USER}', MASTER_PASSWORD='{PASSWORD}' ,  master_log_file='mysql-bin.000002' , master_log_pos=326554769 ;
Query OK, 0 rows affected (0.07 sec)

START SLAVE;

SHOW SLAVE STATUS \G;

 

如只會顯示1234567890

Fixing the 3d text always on top layer problem,

左邊係我地常出現的情況,右手邊係我地想要既情況

以下方法不能使用預設FONT,要import 字型入去,我用勘亭流做例子

將字型IMPORT入去ASSET內,在inspector的character 轉成unicode,再Create editable copy

甘生了一個字型texture出來

之後在ASSET Folder Create 新既shader

Shader "GUI/3D Text Shader" {
	Properties{
		_MainTex("Font Texture", 2D) = "white" {}
	_Color("Text Color", Color) = (1,1,1,1)
	}

		SubShader{
		Tags{ "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" }
		Lighting Off Cull Off ZWrite Off Fog{ Mode Off }
		Blend SrcAlpha OneMinusSrcAlpha
		Pass{
		Color[_Color]
		SetTexture[_MainTex]{
		combine primary, texture * primary
	}
	}
	}
}

之後在ASSET Folder Create 新既Material

New Material 內Shader部份用GUI->3D Text shader 即係剛剛加入的Shader

然後Texture 加入剛剛做出來的Font Texture

然後去3D Text Object , Mesg Renderer內materials 由Font Texture 改為new material,甘就可以了

1491965784579

Set the character Size to 0.03 and increase the Font size

1491965592307
1491965603898

yum remove mariadb mariadb-server

rm -rf /var/lib/mysql 

rm /etc/my.cnf

Optional step: rm ~/.my.cnf

 

Go to options->Text Editor->C#->Setting(Show Line number)

1490246361695 1490246335934

« Previous Page | Next Page »
晴晴兔的少女回憶 =3=~ All rights reserved.