在对php进行安装的过程中出现如下错误: 1.报错信息: 1 checking for known struct flock definition... configure: error: Don't know how to define struct flock on this system, set --enable-opcache=no 2.解决办法: 1 2 3 4 vim /etc/ld.so.conf.d/local.conf # 编辑库文件 /usr/local/lib
前提: 系统环境:Linux,服务器:阿里云轻量应用服务器 背景: 阿里云轻量应用服务器自带 mysql5.7,但是没有配置环境变量,因此直接输入 mysql -u root -p 将提示 command not found. 解决: cat /etc/profile # System wide environment and startup programs, for login setup # Functions and aliases go in /etc/bashrc # It's NO