摘要:vi /etc/hosts.allow # hosts.allow This file contains access rules which are used to # allow or deny connections to network services that # either use
阅读全文
摘要:1.定义shell脚本:rename_file.sh #!/bin/bashbasepath=$(cd `dirname $0`; pwd) #获取当前脚本所在的路径cd $basepath #修改以999999.sld结尾的文件为`data+%N`.sld结尾的随机数文件,其中`data+%N`为
阅读全文
摘要:①无提示无法通过/var/lib/mysql/mysql.sock连接数据库; [root@proeim mysql]# mysql -uxxx -pxxx -Dxxx -A ERROR 2002 (HY000): Can't connect to local MySQL server throug
阅读全文
摘要:一、ip和端口都转发(跨机器) 将140.207.3.110(内网是192.168.0.139)服务器 端口为11450的数据转发到 192.168.0.138的1145端口上面去。 1.部署服务器192.168.0.138服务器的网关地址为192.168.0.139,这样两台两台机器就能通讯了;
阅读全文
摘要:1.创建用户 -bash-4.1# useradd fdp #创建用户-bash-4.1# passwd fdp #给指定用户增加密码Changing password for user fdp.New password: #录入密码,比如fdp123456BAD PASSWORD: it is W
阅读全文