数据库
mysql
close update safe model
1 | SET SQL_SAFE_UPDATES = 0; |
linux
命令相关
scp传送文件
1 | scp -P27580 ROOT.war root@192.168.111.23:/root |
如果需要对应端口 使用-P参数 P要大写
查看系统版本
1 | lsb_release -a |
结果1
2
3
4
5LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.9 (Final)
Release: 6.9
Codename: Final
重启
1 | shutdown -r now |
文件相关
环境变量设置文件:/etc/profile
mac命令
开启sshd服务
1 | /usr/sbin/sshd -f /etc/ssh/sshd_config |