[root@iZ254lfyd6nZ ~]# cd / [root@iZ254lfyd6nZ /]# ls bin boot dev etc home lib lib64 lost+found media mnt opt proc root sbin selinux srv sys tmp usr var [root@iZ254lfyd6nZ /]# cd usr [root@iZ254lfyd6nZ usr]# ls bin etc games include lib lib64 libexe…
MySQL远程访问 1.编辑mysql配置文件,把其中bind-address = 127.0.0.1注释了 vi /etc/mysql/mysql.conf.d/mysqld.cnf 2.使用root进入mysql命令行,执行如下2个命令,示例中mysql的root账号密码:root grant all on *.* to root@'%' identified by 'root' with grant option; flush privileges; 3.重启mysql /etc/init…
redis作为一个高速数据库,在互联网上,必须有对应的安全机制来进行保护,方法有2,如下. 1.比较安全的办法是采用绑定IP的方式来进行控制. 请在redis.conf文件找到如下配置 # If you want you can bind a single interface, if the bind option is not # specified all the interfaces will listen for incoming connections. # # bind 127.0…