e2lc5's blog

e2lc5's blog

mysql配置问题

  • show global variables like ‘%lower_case%’;

    1
    2
    3
    4
    5
    6
    +------------------------+-------+
    | Variable_name | Value |
    +------------------------+-------+
    | lower_case_file_system | ON |
    | lower_case_table_names | 0 |
    +------------------------+-------+

    此状态为区分大小写

  • 编辑 /etc/mysql/mysql.conf.d/mysqld.cnf
    增加 lower_case_table_names=1

  • 再次查看

    1
    2
    3
    4
    5
    6
    +------------------------+-------+
    | Variable_name | Value |
    +------------------------+-------+
    | lower_case_file_system | OFF |
    | lower_case_table_names | 1 |
    +------------------------+-------+

1
2
3
4
5
6
7
show session variables where variable_name ='wait_timeout' or variable_name = 'interactive_timeout';

-- 默认值 28800 8小时

set global wait_timeout = 31536000;

set global interactive_timeout = 31536000;

安装工具

yum-utils

1
sudo yum install -y yum-utils

添加repo

1
sudo yum-config-manager  --add-repo   https://download.docker.com/linux/centos/docker-ce.repo

安装Docker

1
sudo yum install docker-ce

启用Docker-ce

1
service docker start

创建用户和用户组

1
2
3
4
5
6
7
groupadd sftp #创建组
useradd -g sftp -s /sbin/nologin -M sftpuser
passwd sftpuser
cd /home
mkdir sftpuser
chown root:sftp sftpuser
chmod 755 sftpuser

修改 vi /etc/ssh/sshd_config

可以先备份一下

1
cp /etc/ssh/sshd_config /etc/ssh/sshd_config_bak

修改sshd_config

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# override default of no subsystems
#Subsystem sftp /usr/libexec/openssh/sftp-server
Subsystem sftp internal-sftp #添加这1个

# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# PermitTTY no
# ForceCommand cvs server

#Match User sftp
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
ChrootDirectory /home/sftpuser

重启服务

1
systemctl restart sshd

验证

1
2
sftp sftpuser@127.0.0.1 
>sftp

已知问题

重启服务后会导致SecureCRT无法访问

备份原始的yum源

1
2
# cd /etc/yum.repos.d
# cp CentOS-Base.repo CentOS-Base.repo.bak

下载对应版本的repo文件

1
# wget -O CentOS-Linux-BaseOS.repo http://mirrors.aliyun.com/repo/Centos-8.repo

清除旧的yum缓存并生成新的yum缓存,这个过程会有点慢

1
2
# yum clean all
# yum makecache

更新,这一步不是必要的

1
# yum update -y

安装最新Git客户端后无法拉去更新任何仓库

  • 报错 no matching host key type found git

解决方法

  • .ssh 新建config文件
    1
    2
    3
    Host *
    HostkeyAlgorithms +ssh-rsa
    PubkeyAcceptedKeyTypes +ssh-rsa

龙珠TV版全集链接:
https://pan.xunlei.com/s/VM_YsOPv2pQ5n5JlExNtm1uMA1
提取码:f2ng(可在线观看)
龙珠GT全集链接:
https://pan.xunlei.com/s/VM_YsWSe7iE0NKH5Vj5i50NnA1
提取码:czfc
龙珠改全集链接:
https://pan.xunlei.com/s/VM_YsdEzhnLnNPa1qoIPdiXhA1
提取码:dm4t
龙珠Z蓝光全集链接:
https://pan.xunlei.com/s/VM_Yskh3hnLnNPa1qoIPdkDqA1
提取码:3k5x
龙珠剧场版20部全集链接:
https://pan.xunlei.com/s/VM_Yt081YIZeeBj5snaCqxcwA1
提取码:45vb
龙珠改布欧篇全集链接:
https://pan.xunlei.com/s/VM_YtFko7iE0NKH5Vj5i5AIKA1
提取码:z9te
龙珠超日语中字链接:
https://pan.xunlei.com/s/VMT-8s7LevEdvrnzcMMNw4gcA1
提取码:xg7z

C:\Users\zhanghuiqiang\AppData\Roaming\JetBrains\IntelliJIdea2021.2\options\jdk.table.xml

  • ionic+cordova常用命令
    ** 添加平台
    ionic cordova run android -l

** 编译
ionic cordova build android -l

0%