随笔分类 -  linux

摘要:今天在服务器上git pull是出现以下错误: error: Your local changes to the following files would be overwritten by merge: application/config/config.php application/cont 阅读全文
posted @ 2018-04-03 18:15 cqingt 阅读(1380) 评论(0) 推荐(0)
摘要:# 重定向 http 到 https server { listen 80; server_name www.domain.com; rewrite ^(.*)$ https://$server_name$1 permanent; } server { listen 443; server_name www.domain.com; ... 阅读全文
posted @ 2018-02-10 22:49 cqingt 阅读(866) 评论(0) 推荐(0)
摘要:1.安装mysql sudo apt install mysql-server 2.安装nginx和php #添加nginx和php的ppa源 sudo apt-add-repository ppa:nginx/stable sudo apt-add-repository ppa:ondrej/ph 阅读全文
posted @ 2018-02-03 11:29 cqingt 阅读(2192) 评论(0) 推荐(2)
摘要:在LINUX中,周期执行的任务一般由cron这个守护进程来处理[ps -ef|grep cron]。cron读取一个或多个配置文件,这些配置文件中包含了命令行及其调用时间。cron的配置文件称为“crontab”,是“cron table”的简写。 一、cron服务 cron是一个linux下 的定 阅读全文
posted @ 2018-01-29 10:43 cqingt
摘要:ab是apache自带的一个很好用的压力测试工具,当安装完apache的时候,就可以在bin下面找到ab 我们可以模拟100个并发用户,对一个页面发送1000个请求 ./ab -n1000 -c100 http://www.cnblogs.com/pick/ 其中-n代表请求数,-c代表并发数( 详 阅读全文
posted @ 2016-11-08 15:24 cqingt 阅读(277) 评论(0) 推荐(0)
摘要:http_load是基于linux平台的性能测试工具,它体积非常小,仅100KB。它以并行复用的方式运行,可以测试web服务器的吞吐量与负载。 一、安装http_load A、进入/usr/local目录下创建man文件夹,并赋予权限; [root@localhost ~]#cd /usr/loca 阅读全文
posted @ 2016-11-08 15:04 cqingt 阅读(13429) 评论(1) 推荐(1)
摘要:原文出处:http://www.cnblogs.com/wangtongphp/p/3784597.html 1、将文件checkout到本地目录 svn checkout path(path是服务器上的目录) 例如:svn checkout svn://192.168.1.1/pro/domain 阅读全文
posted @ 2016-03-02 18:04 cqingt