随笔分类 - CentOS命令
5-Zend Studio配置
摘要:0-将文件编码设置成utf-8 Window>Preferences>General>Content Types>Text Default encoding:utf-8 1-Zend Studio常用快捷键 智能提示:Alt+/ 复制当前行:Ctrl+Alt+向下键 删除当前行:Ctrl+D 块注释
阅读全文
4-Server安全配置
摘要:0-禁止root使用ssh登入 vim /etc/ssh/sshd_config寻找:PermitRootLogin yes改为:PermitRootLogin nosystemctl restart sshd.service 1-Apache站点目录配置 vim /etc/httpd/conf/h
阅读全文
3-PHP全部编码UTF-8
摘要:0-html <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <form accept-charset="UTF-8"></form> 1-css @CHARSET "UTF-8"; 2-js <script
阅读全文
2-MySQL数据库编码uft-8
摘要:mysql> show variables like 'character%'; mysql> show variables like 'collation%'; mysql> status; mysql> exit; vim /etc/my.cnf [mysqld]default-storage-
阅读全文
1-MySQL命令行
摘要:0、显示数据库 show databases; 1、选择数据库 use 数据库名; 2、显示数据库中的表 show tables; 3、显示数据表的结构 describe 表名; 4、显示表中记录 SELECT * FROM 表名; 5、建库 create database 库名; 6、建表 cre
阅读全文
0-systemctl开机启动项
摘要:防火墙:iptables Apache服务名称:httpd MySQL服务名称:mysqld VSFTP服务名称:vsftpd <!--CentOS7新指令--> 使某服务 自动启动 systemctl enable httpd.service 使某服务 不自动启动 systemctl disabl
阅读全文
浙公网安备 33010602011771号