上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: 1.nginx 安装 安装: $ yum install -y nginx 如果出现CentOS No package nginx available. 解决办法: 先安装epel: $ yum install epel-release 然后再安装nginx Centos6.8将/etc/nginx 阅读全文
posted @ 2020-04-17 10:07 ksy_c 阅读(123) 评论(0) 推荐(0)
摘要: 准备工作 VirtualBox的安装 下载地址:https://www.virtualbox.org/wiki/Downloads Vagrant的安装 下载地址:https://www.vagrantup.com/downloads.html PS:安装完后就可以在终端输入 vagrant 命令了 阅读全文
posted @ 2020-04-16 11:12 ksy_c 阅读(184) 评论(0) 推荐(0)
摘要: 前言 服务器每次重启,都需要手动启动一些服务,这不是一个程序员可以忍受的,难怪大家都喜欢写脚本。接下来三篇文章,分别记录一下nginx、tomcat和mysql的开机自启动配置。 systemd systemd简介 CentOS7已不再使用chkconfig管理启动项,而是使用systemd。关于s 阅读全文
posted @ 2020-04-08 17:01 ksy_c 阅读(277) 评论(0) 推荐(0)
摘要: 恢复内容开始 class Curl{ protected $c; public function __construct(){ $this->c = curl_init(); curl_setopt($this->c,CURLOPT_RETURNTRANSFER,1); //1表示获取返回的内容;0 阅读全文
posted @ 2018-05-07 20:14 ksy_c 阅读(448) 评论(0) 推荐(0)
摘要: /etc/hosts 配置: 127.0.0.1 localhost www.ismei.com 其他: 打开配置文件: /etc/apache2/sites-available$ ls -al /etc/apache2/sites-available$ sudo gedit 000-default 阅读全文
posted @ 2018-05-07 10:33 ksy_c 阅读(136) 评论(0) 推荐(0)
摘要: $url = "http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json&ip=117.25.13.123"; $res = file_get_contents($url); // echo $res; $res = json_de 阅读全文
posted @ 2018-05-07 10:28 ksy_c 阅读(248) 评论(0) 推荐(0)
摘要: <?php //绘制验证码(生成) $num=4; //验证码的长度 $str = getCode($num,0);// 使用下面的自定义函数,获取需要的验证码值 session_start(); $_SESSION['res'] = $str; //1. 创建一个画布、分配颜色 $width=$n 阅读全文
posted @ 2018-04-29 10:56 ksy_c 阅读(210) 评论(0) 推荐(0)
摘要: <?php $array =[ ['id'=>1,'pid'=>0,'name'=>'电视'], ['id'=>2,'pid'=>1,'name'=>'美式电视'], ['id'=>3,'pid'=>1,'name'=>'中式电视'], ['id'=>4,'pid'=>2,'name'= 阅读全文
posted @ 2018-04-23 12:30 ksy_c 阅读(97) 评论(0) 推荐(0)
摘要: $('#id_1').on('click',function(){ layer.msg('不开心',{icon:5}); //icon从0-6 }); $('#id_2').on('click',function(){ // layer.alert('不开心'); // layer.alert('见 阅读全文
posted @ 2018-04-22 16:29 ksy_c 阅读(202) 评论(0) 推荐(0)
摘要: 向左滑动 111会补到666后面,然后222等会往前 *{ padding: 0;margin: 0; } .content{ width: 612px; height: 60px; border: 1px solid #ccc; margin: 0 auto; overflow: hidden; 阅读全文
posted @ 2018-04-22 16:12 ksy_c 阅读(129) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 下一页