/images/avatar.png

Mulinux运维

OpenVZ虚机Centos6.5安装gitlab报错

执行gitlab-ctl reconfigure后报错: 1 2 3 4 5 6 7 8 9 10 [execute] cat: error: permission denied on key 'net.bridge.bridge-nf-call-ip6tables' error: permission denied on key 'net.bridge.bridge-nf-call-iptables' error: permission denied on key 'net.bridge.bridge-nf-call-arptables' /etc/sysctl.d/*.conf: No such file or directory net.ipv4.ip_forward = 0 net.ipv4.tcp_syncookies = 1 ================================================================================

linux下screen使用

安装 yum install -y screen 使用 1 2 3 4 5 6 7 screen sh lanmp.sh #创建一个新的screen来执行脚本 Ctrl+a+d #暂时断开screen会话 screen -ls #查看ScreenID screen -r 18262 #切换到

typecho更换域名

改成使用二级域名blog.mulinux.com 1 2 3 UPDATE `qdm123767534_db`.`typecho_options` SET `value` = 'http://blog.mulinux.com' WHERE `typecho_options`.`name` = 'siteUrl' AND `typecho_options`.`user` =0; UPDATE `typecho_contents` SET text = REPLACE(text, 'http://www.mulinux.com', 'http://blog.mulinux.com') WHERE INSTR(text,'http://www.mulinux.com') > 0; UPDATE `typecho_contents` SET text = REPLACE(text, 'www.mulinux.com', 'blog.mulinux.com') WHERE INSTR(text,'www.mulinux.com') > 0;

iptables

通过nat表映射实现共享上网 开启共享上网 (1)把 /etc/sysctl.conf 中的net.ipv4.ip_forward = 1 ,改成等于1 (2)执行 iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth0 -j MASQUERADE

Esxcli常用命令

常用命令 1 2 3 4 5 6 7 8 9 10 11 esxcli network nic list 查看网卡信息 esxcli network ip route ipv4 list 查看路由(ipv4) esxcli network ip dns server list 查看 dns esxcli network ip interface ipv4 get 查看ip配置(ipv4) esxcfg-route 查

Centos7安装jupyter并配置多个Python版本

安装python 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 useradd mds passwd mds vi /etc/ssh/sshd_config systemctl sshd restart systemctl restart sshd vi /etc/ssh/sshd_config systemctl restart sshd passwd root systemctl status firewalld systemctl disable firewalld vi /etc/selinux/config yum install epel-release yum install

rsync server/client配置

服务端 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 mkdir /etc/rsyncd vi /etc/rsyncd/rsyncd.conf uid = root gid