随笔分类 -  Linux

摘要:2. 直接mysqldump 一.MYSQL的命令行模式的设置:桌面->我的电脑->属性->环境变量->新建->PATH=“;path\mysql\bin;”其中path为MYSQL的安装路径。二.简单的介绍一下命令行进入MYSQL的方法:1.C:\>mysql -h hostname -u use 阅读全文
posted @ 2022-11-21 17:05 pengcx 阅读(120) 评论(0) 推荐(0)
摘要:scp命令 来源:https://www.runoob.com/linux/linux-comm-scp.html 阅读全文
posted @ 2022-08-02 17:54 pengcx 阅读(41) 评论(0) 推荐(0)
摘要:在外部访问CentOS中部署应用时,需要通过防火墙管理软件,开端口,或者直接关闭防火墙进行解决(不建议)常用命令:systemctl start firewalld #启动systemctl stop firewalld #停止systemctl status firewalld #查看状态syst 阅读全文
posted @ 2022-08-02 10:36 pengcx 阅读(9296) 评论(0) 推荐(0)
摘要:1、查看nginx进程 ps -ef | grep nginx 2、yum erase nginx 3、yum install -y epel-release 4、再次安装 yum install -y nginx 5、nginx -v 6、systemctl enable nginx.servic 阅读全文
posted @ 2022-03-16 15:43 pengcx 阅读(121) 评论(0) 推荐(0)
摘要:例如node的项目,可以在location中做一个验证,然后使用 porxy_pass 反向代理模块实现。 location模块的匹配介绍 1.”=”前缀指令匹配,如果匹配成功,则停止其他匹配。 2.普通字符串指令匹配,顺序是从长到短,匹配成功的location如果使用^~,则停止其他匹配(正则匹配 阅读全文
posted @ 2022-02-24 16:19 pengcx 阅读(1103) 评论(0) 推荐(0)
摘要:centos7 yum安装php7.2 清除历史版本 安装源 安装扩展包 安装完成以后,启动服务 清除历史版本为了防止centos上面发生php冲突,先清除历史版 yum -y remove php* 安装源安装php72w,是需要配置额外的yum源地址的,否则会报错不能找到相关软件包。php高版本 阅读全文
posted @ 2021-11-18 11:26 pengcx 阅读(200) 评论(0) 推荐(0)
摘要:来源:https://www.cnblogs.com/caidingyu/p/11904277.html x509证书一般会用到三类文,key,csr,crt Key 是私用密钥openssl格,通常是rsa算法。 Csr 是证书请求文件,用于申请证书。在制作csr文件的时,必须使用自己的私钥来签署 阅读全文
posted @ 2021-10-21 17:27 pengcx 阅读(383) 评论(0) 推荐(0)
摘要:1、在配置文件目录下如:/usr/local/nginx/conf下创建黑名单文件ip.black(叫啥都行) 在文件内容写上列入黑名单的IP,格式为deny IP; #拒绝访问IP deny xxxxxxx; 2、在nginx.conf进行配置 阅读全文
posted @ 2020-07-09 11:09 pengcx 阅读(3594) 评论(0) 推荐(0)
摘要:1、killall php-fpm 2、systemctl start php-fpm 阅读全文
posted @ 2020-06-22 17:54 pengcx 阅读(1508) 评论(0) 推荐(0)
摘要:转载:https://yq.aliyun.com/articles/512132 1、下载源码包: wget http://www.openssl.org/source/openssl-1.0.2d.tar.gz 2、安装到/usr/local/ssl/目录下: tar zxvf openssl-1 阅读全文
posted @ 2020-06-03 15:00 pengcx 阅读(1590) 评论(0) 推荐(0)
摘要:1、/usr/local/webserver/nginx/conf/ 下 nginx.conf文件 server_name 改成你想要配置的域名 ps:文件路径不一定是上述路径,find / -name "nginx.conf" 命令可以找到对应文件 2、vim /etc/hosts 加上 ip地址 阅读全文
posted @ 2020-01-20 10:16 pengcx 阅读(917) 评论(0) 推荐(0)
摘要:[22-Sep-2015 14:29:00] WARNING: Nothing matches the include pattern '/usr/local/php/etc/php-fpm.d/*.conf' from /usr/local/php/etc/php-fpm.conf at line 阅读全文
posted @ 2020-01-17 14:40 pengcx 阅读(1097) 评论(0) 推荐(0)
摘要:关闭防火墙 进入linux,修改etc/hosts文件,添加一行:比如 mirrors.163.com 59.111.0.251 阅读全文
posted @ 2020-01-14 10:37 pengcx 阅读(11384) 评论(0) 推荐(0)
摘要:切换到拥有sudo权限的用户下。 输入命令"sudo vim /etc/sudoers"开始编辑/etc/sudoers文件。 找到"root ALL=(ALL) ALL"这一 行,在它下面添加"xxx ALL=(ALL) ALL"(这里的xxx是需要添加sudo权限的用户名),然后保存退出。因为是 阅读全文
posted @ 2020-01-13 09:47 pengcx 阅读(1106) 评论(0) 推荐(0)
摘要:来源:http://www.runoob.com/linux/linux-vim.html ps:刚刚进入vi/vim 是命令模式 一、命令模式 i 切换到输入模式,以输入字符。 x 删除当前光标所在处的字符。 : 切换到底线命令模式,以在最底一行输入命令。 二、输入模式 字符按键以及Shift组合 阅读全文
posted @ 2018-12-27 11:14 pengcx 阅读(2722) 评论(0) 推荐(0)
摘要:背景介绍 在用 VMware workstation 安装好虚拟机后,需要给虚拟机配置网络,配置网络的方法有桥接、NAT。 采用桥接的方法需要占据物理机网段的ip地址,可能会与物理机同一网段的其他机器的地址冲突。而采用NAT方法就不会存在这个问题。采用NAT配置的方法: https://www.51 阅读全文
posted @ 2018-11-05 14:38 pengcx 阅读(347) 评论(0) 推荐(0)
摘要:一、安装编译工具及库文件 yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel 二、首先要安装 PCRE PCRE 作用是让 Nginx 支持 Rewrite 功能。 1、下载 PCRE 安装包,(版本可以 阅读全文
posted @ 2018-08-16 16:15 pengcx 阅读(129) 评论(0) 推荐(0)
摘要:来源:https://jingyan.baidu.com/article/2d5afd692df18d85a3e28e4c.html 一、下载源码 1、cd /usr/local/src/ 2. 执行命令: wget http://cn2.php.net/distributions/php-5.6. 阅读全文
posted @ 2018-08-16 10:57 pengcx 阅读(181) 评论(0) 推荐(0)
摘要:yum install perl perl-devel cd /usr/local/src wget https://cdn.mysql.com//Downloads/MySQL-5.6/mysql-5.6.40-linux-glibc2.12-x86_64.tar.gz tar zxvf mysq 阅读全文
posted @ 2018-08-14 17:49 pengcx 阅读(117) 评论(0) 推荐(0)
摘要:1、shutdown -h 10 //计算机将在10分钟后关机,且会显示在登录用户的当前屏幕中 2、shutdown -h now //立即关机 3、shutdown -h 20:25 //系统会在20:25关机 4、shutdown -h +10 //10分钟后关机 5、shutdown -r n 阅读全文
posted @ 2018-08-14 10:01 pengcx 阅读(146) 评论(0) 推荐(0)