随笔分类 -  linux

摘要:更换成阿里云 替换后的格式文档 阅读全文
posted @ 2019-06-13 14:38 扶摇上青天 阅读(1726) 评论(0) 推荐(0)
摘要:首先查看你LINUX的版本 笔者的版本是: centos7.5 更换为阿里云镜像源 https://opsx.alibaba.com/mirror 打开,找到你对应的版本, 点击帮助 复制脚本 执行命令更新源 执行到此处就遇到以下错误 解决以上问题 更换后的CentOS Epel.repo 执行以 阅读全文
posted @ 2019-06-13 14:14 扶摇上青天 阅读(4249) 评论(0) 推荐(0)
摘要:1. 在mac上没有找到好用的shell图形界面的软件,但也是有办法的,使用ssh公钥达到互相有无目的 2.场景是mac连A(linux,以下简称A)服务器 3.登陆mac shell ,按command+空格,输入:terminal.app 4.生成密钥和公钥 5.登陆A服务器 6.在mac上设置 阅读全文
posted @ 2018-08-10 11:45 扶摇上青天 阅读(338) 评论(0) 推荐(0)
摘要:server { listen 80; server_name localhost; return 301 https://$host$request_uri; } server { listen 443 ssl; server_name m.com.cn; #... } 阅读全文
posted @ 2017-12-30 15:44 扶摇上青天 阅读(604) 评论(0) 推荐(0)
摘要:-A INPUT -i lo -j ACCEPT #允许本机内部访问,即回环 -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT #允许本机访问外部 -A INPUT -p icmp -m icmp --icmp-type 8 -j ACC 阅读全文
posted @ 2017-12-26 15:32 扶摇上青天 阅读(340) 评论(0) 推荐(0)
摘要:1: 关闭系统高级防火墙firewalld 2:编辑iptables配置文件 必备 3.使其生效 4.关闭selinux 阅读全文
posted @ 2017-12-26 15:26 扶摇上青天 阅读(504) 评论(0) 推荐(0)
摘要:在linux环境下,使用svn co (即svn checkout) 报svn: Authorization failed错误, 使用svn co svn://localhost/temp.cc /data/temp.cc 时还是报:svn: Authorization failed 请更换帐号再次 阅读全文
posted @ 2017-12-25 12:06 扶摇上青天 阅读(5073) 评论(0) 推荐(0)
摘要:server{}配置 server{ #端口配置 listen 80; #域名配置 server_name laravel.cc; index index.php index.html index.htm; #站点配置到public root /data/wwwroot/lara... 阅读全文
posted @ 2017-10-12 14:37 扶摇上青天 阅读(838) 评论(0) 推荐(0)
摘要:第一步:登陆linux,在终端登陆mysql 第二步:查询系统用户列表并进行添加用户 第三步:验证是否可以远程登陆 youname 表示用户名 -h 后面跟远程ip地址 附: 如果实现在更改mysql用户密码: 如果实现删除mysql用户名: 创建数据库by utf8编码 阅读全文
posted @ 2017-08-24 14:29 扶摇上青天 阅读(10902) 评论(2) 推荐(1)
摘要:source /ect/sysconfig/i18n 立即生效 阅读全文
posted @ 2017-06-21 17:45 扶摇上青天 阅读(3931) 评论(0) 推荐(0)
摘要:繁杂的命令,以下准备写好的sh,拷贝https.sh文件,设置执行权限:chmod u+x https.sh #./https.sh 1.输入你要自签名的域名地址或任意名称 2.输入一个KEY即密钥,任意字符串,最好长度32位为好 3.4次输入相同的key即可 当前目录下会生成四个文件: #cd n 阅读全文
posted @ 2017-06-14 10:48 扶摇上青天 阅读(393) 评论(0) 推荐(0)
摘要:groupadd www-data 添加组 useradd phpcomposer -g www-data 添加用户并加入组中 passwd phpcomposer 添加密码 usermod -g phpcomposer www-data 修改组 passwd phpcomposer -l 锁定帐号 passwd phpcomposer -u 释放帐号 userdel phpcomposer 删... 阅读全文
posted @ 2017-04-06 13:44 扶摇上青天 阅读(151) 评论(0) 推荐(0)
摘要:rsync -az --exclude-from=/data/sh/exclude_www.test.txt --delete /data/wwwroot/www.test.cc/ root@ip:/data/wwwroot/www.test.cc/ exclude_www.test.txt: .s 阅读全文
posted @ 2017-03-16 17:01 扶摇上青天 阅读(143) 评论(0) 推荐(0)
摘要:#启动php-fpm服务 #配置nginx.conf 再配置 再编辑: 阅读全文
posted @ 2017-03-16 16:37 扶摇上青天 阅读(661) 评论(0) 推荐(0)
摘要:开启rewrite 日志 error_log /data/log/nginx/error.log notice; 位于最外层,大约在文件的前几行 再在http{}括号里增加一行:rewrite_log on; 重写的日志将写入/data/log/nginx/error.log 关键代码 在http{ 阅读全文
posted @ 2017-03-01 15:51 扶摇上青天 阅读(7426) 评论(0) 推荐(0)
摘要:每二天执行一次: 0 0 */2 * * command #注意分,时不能为星*,否则每分钟执行 每天零晨01,03执行: 0 01,03 * * * command 每2小时执行一次 0 */2 * * * command 每周日的零晨3点执行 0 03 * * 7 command 注:分,时区必 阅读全文
posted @ 2017-02-17 16:26 扶摇上青天 阅读(174) 评论(0) 推荐(0)
摘要:svn实现自动更新 阅读全文
posted @ 2017-01-03 10:13 扶摇上青天 阅读(1986) 评论(0) 推荐(0)
摘要:与下面的参数有关 nginx: fastcgi_connect_timeout fastcgi_read_timeout fastcgi_send_timeout php-fpm:request_terminate_timeout php.ini:default_socket_time 阅读全文
posted @ 2016-12-05 09:22 扶摇上青天 阅读(1169) 评论(0) 推荐(0)
摘要:安装pdo_mysql cd /usr/local/src/php-5.4.0/ext/pdo_mysql/ /usr/local/php/bin/phpize # /usr/local/php为php安装后的目录 ./configure --with-php-config=/usr/local/p 阅读全文
posted @ 2016-11-14 11:23 扶摇上青天 阅读(3247) 评论(0) 推荐(0)
摘要:下载mysql:http://down1.chinaunix.net/distfiles/mysql-5.5.21.tar.gz 下载cmake:https://cmake.org/files/v3.7/cmake-3.7.0-rc2.tar.gz 1.先安装cmake编辑工具:#./configu 阅读全文
posted @ 2016-10-24 17:03 扶摇上青天 阅读(158) 评论(0) 推荐(0)