随笔分类 -  centos

摘要:由于某些工具需要,所以编译安装glibc-2.18,安装过程如下: 下载地址:http://ftp.gnu.org/gnu/glibc/ curl -O http://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.gz tar zxf glibc-2.18.tar.gz 阅读全文
posted @ 2022-07-24 11:54 王东波 阅读(563) 评论(0) 推荐(0)
摘要:1: 更新vm-tools yum -y install open-vm-tools 2: 执行挂载操作 vmhgfs-fuse .host:/ /mnt/hgfs 3: 重新进入./mnt / hgfs 即可看到共享文件夹 阅读全文
posted @ 2022-07-20 19:38 王东波 阅读(291) 评论(0) 推荐(0)
摘要:在编译安装 PHP 7.4 时,如果使用 --with-mbstring 参数,则需要安装 oniguruma。oniguruma 是一个处理正则表达式库,php7.4 中,mbstring 正则表达式处理功能对这个包有依赖。所以,安装 php7.4 前需要安装 oniguruma 和 onigur 阅读全文
posted @ 2021-08-30 10:50 王东波 阅读(564) 评论(0) 推荐(0)
摘要:猜测是CentOS图形管理中的NetworkManager接管了网络配置, 执行以下命令关闭、重启网络服务: ifconfig ens33 up systemctl stop NetworkManager systemctl disable NetworkManager ifup ens33 sys 阅读全文
posted @ 2021-08-04 10:39 王东波 阅读(14) 评论(0) 推荐(0)
摘要:在执行 cp -r frompath topath时,报错cp: cannot stat: frompath Permission denied。 百度,google都没有找到解决方案,无意中发现,原来是用户的问题。虽然我已经将/home/www目录的所有都改为了apache,但linux系统还是会 阅读全文
posted @ 2020-09-26 21:05 王东波 阅读(278) 评论(0) 推荐(0)
摘要:rm: cannot remove ‘/public/.user.ini’: Operation not permitted chattr -i .user.ini rm -f .user.ini 阅读全文
posted @ 2020-04-17 11:23 王东波 阅读(116) 评论(0) 推荐(0)
摘要:user('www-data') ->set('branch', 'master') ->set('deploy_path', '部署地址'); // Tasks desc('Deploy your project'); task('deploy', [ 'deploy:info', 'deploy:prepare', 'deploy... 阅读全文
posted @ 2019-07-24 12:53 王东波 阅读(161) 评论(0) 推荐(0)
摘要:安装 kernel-devel 阅读全文
posted @ 2019-06-06 11:11 王东波 阅读(790) 评论(0) 推荐(0)
摘要:1,下载nginx镜像 2,启动 3,创建本地目录 4,复制容器中的配置文件到本地目录 5,启动新容器 命令说明: -p 8082:80: 将容器的 80 端口映射到主机的 8082 端口。 --name runoob-nginx-test-web:将容器命名为 runoob-nginx-test- 阅读全文
posted @ 2019-05-12 12:26 王东波 阅读(127) 评论(0) 推荐(0)
摘要:1,可以通过yum直接安装 2,安装完成后查看端口是否已启用 发现没有5432端口 3,需要初始化一下postgresql 4,启动数据库服务 再查看端口,发现5432端口已启用 阅读全文
posted @ 2018-02-26 11:52 王东波 阅读(54) 评论(0) 推荐(0)
摘要:yum -y install gcc automake autoconf libtool make 阅读全文
posted @ 2018-01-23 15:39 王东波 阅读(77) 评论(0) 推荐(0)
摘要:yum install net-tools 阅读全文
posted @ 2018-01-23 15:32 王东波 阅读(80) 评论(0) 推荐(0)
摘要:第一步: 安装需要用到的库 yum -y install libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel 第二步: 进入到php的源码目录下的ext/gd目录(这里是源码目录,不是安装目录,注意区别) 1.首先执行: 阅读全文
posted @ 2017-11-21 13:12 王东波 阅读(164) 评论(0) 推荐(0)
摘要:3,配置 /etc/nginx/nginx.conf 阅读全文
posted @ 2017-11-21 10:51 王东波 阅读(55) 评论(0) 推荐(0)
摘要:总结下来主要有3种方法:1. 用ln将需要的so文件链接到/usr/lib或者/lib这两个默认的目录下边 2.修改LD_LIBRARY_PATH 3.修改/etc/ld.so.conf,然后刷新 add /where/you/install/lib 阅读全文
posted @ 2017-11-20 01:10 王东波 阅读(75) 评论(0) 推荐(0)
摘要:安装中遇到的问题 在运行 ./configure 时,提示: Please reinstall the libzip distribution 是因为 libzip 版本过低,编译升级 先卸载了原先的 libzip yum remove libzip # 下载 libzip 源码(去网站选择合适的版 阅读全文
posted @ 2017-11-20 00:51 王东波 阅读(939) 评论(0) 推荐(0)
摘要:使用命令下载: curl -sS https://getcomposer.org/installer | php -- --install-dir=安装路径 下载之后设置环境变量: mv composer.phar /usr/local/bin/composer 并修改权限,否则执行的时候会报错 c 阅读全文
posted @ 2017-11-20 00:50 王东波 阅读(184) 评论(0) 推荐(0)
摘要:1,下载,解压 2,编译配置 # 指定 php 安装目录 --prefix=/usr/local/php # 指定php.ini位置 --with-config-file-path=/usr/local/php/etc # mysql安装目录,对mysql的支持 --with-mysql=/usr/ 阅读全文
posted @ 2017-11-20 00:30 王东波 阅读(152) 评论(0) 推荐(0)
摘要:1,找出哪个包提供了ifconfig命令 2,通过输出,发现是net-tools提供了ifconfig命令 阅读全文
posted @ 2017-11-19 11:07 王东波 阅读(74) 评论(0) 推荐(0)
摘要:解压且指定目录 改变所有者 阅读全文
posted @ 2017-11-17 14:40 王东波 阅读(47) 评论(0) 推荐(0)