小笔记

linux挂载windows ntds文件格式

342 mount -t ntfs -o nls=utf8 umask=000 /dev/sdb1 /var/ftp/pub/
343 mount -t ntfs /dev/sdb1 /var/ftp/pub/
344 yum search fuse-ntfs
345 yum search ntfs
346 yum install ntfs-3g.x86_64 ntfs-3g-devel.x86_64 -y
347 mount.ntfs-3g /dev/sdb1 /var/ftp/pub/
406 yum search ntfs
407 yum install -y ntfsprogs.x86_64

 

 

local7.* /data/rsyslog/switch.log

:fromhost-ip,isequal, "10.0.0.25" /data/rsyslog/cisco25.log
:fromhost-ip,isequal, "10.0.0.12" /data/rsyslog/cisco12.log

 

log[/data/rsyslog/h3c/switch.log,up|down,,,skip,,]

 

 

1.  ({HOST.NAME1}:{ITEM.KEY1}): {ITEM.VALUE1}

{ALERT.SENDTO}
{ALERT.SUBJECT}
{ALERT.MESSAGE}

 

文字转字符

yum install -y figlet

 

 

ALTER USER 'root'@'localhost' IDENTIFIED BY '新密码';


GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '1234' WITH GRANT OPTION;   #允许远程登录

flush privileges;   #刷新

使用mysql实现增删改查的功能。。。

常用命令

 

rsync -aSvHC 192.168.0.234::ccd /etc/openvpn/ccd

 

 

ps -ef|grep "$PROC"|grep -v grep|awk '{if($1=="'$USER'"){print $2}}'|wc -l

 


nmcli con del em2
nmcli con del em3
nmcli con del em4
nmcli con del em1

nmcli con add type team con-name team0 ifname team0 config '{ "runner”: {"name": "loadbalance"}}'
nmcli con add type team con-name team1 ifname team1 config '{ "runner”: {"name": "loadbalance"}}'

nmcli con add type team-slave con-name em3 ifname em3 master team0
nmcli con add type team-slave con-name em1 ifname em1 master team0
nmcli con add type team-slave con-name em2 ifname em2 master team1
nmcli con add type team-slave con-name em4 ifname em4 master team1

TEAM_CONFIG="{\"runner\": {\"name\": \"lacp\", \"active\": true, \"fast_rate\":true, \"tx_hash\": [\"eth\", \"ipv4\", \"ipv6\"]},\"link_watch\":{\"name\": \"ethtool\"}}"
IPADDR=10.100.102.26
NETMASK=255.255.255.0
GATEWAY=10.100.102.254

 

posted @ 2017-11-07 14:43  *奥特*  阅读(218)  评论(0编辑  收藏  举报