摘要: CentOS 7安装配置ssh和sftp用以实现root用户登录 1. 安装openssh-server yum install -y openssl openssh-server 2. 打开配置文件 vi /etc/ssh/sshd_config 3. 修改配置文件,加入以下配置 PermitRo 阅读全文
posted @ 2020-08-14 16:28 renoside 阅读(517) 评论(0) 推荐(0) 编辑
摘要: CentOS 7安装配置iptables防火墙 1. 先检查是否安装了iptables service iptables status 2. 安装iptables yum install iptables-services 3. 停止并禁止firewall开机启动 # 记不清是否需要带.servic 阅读全文
posted @ 2020-08-14 16:26 renoside 阅读(110) 评论(0) 推荐(0) 编辑
摘要: Linux常用目录及其作用 /boot:放置linux系统启动时用到的一些文件 /dev:存放linux系统下的设备文件,访问该目录下某个文件,相当于访问某个设备,常用的是挂载光驱:mount /dev/cdrom/mnt /etc:系统配置文件存放的目录,不建议在此目录下存放可执行文件 /home 阅读全文
posted @ 2020-08-14 16:25 renoside 阅读(373) 评论(0) 推荐(0) 编辑
摘要: Mapper接口和*Mapper.xml之间参数传递的问题 使用@Param("")注解而不是@Value注解,表示需要传递的参数的名字 示例: java配置如下 int updateInfoByPrimaryKeyAndToken(@Param("id") String id, @Param("t 阅读全文
posted @ 2020-08-14 16:21 renoside 阅读(500) 评论(0) 推荐(0) 编辑