先前参考 如何 实现PHP多版本的 共存 和 切换? 实现了Linux(Ubuntu/CentOS)系统下,PHP多版本的切换,但是在 Mac OS 下,由于用户权限控制的比较严格,文章里提到的脚本运行失败(没达到预期效果)。后面采用了其他方式实现了 通过执行脚本自由切换PHP版本:
1、新建 2 个 .bash_profile 文件模板,文件名分别为
/Users/jianbao/.bash_profile_5.6
/Users/jianbao/.bash_profile_7.1
解决 Deepin 外接显示器分辨率异常的问题
到 adobe 官方下载 flash插件 flash_player_ppapi_linux
~/.config/google-chrome/PepperFlash下建个目录 23.0.0.185,把 libpepflashplayer.so、manifest.json 拷入
修改 /usr/share/applications/google-chrome.desktop,
把 Exec=/usr/bin/google-chrome-stable %U
改为 Exec=/usr/bin/google-chrome-stable %U --ppapi-flash-path=/home/用户名/.config/google-chrome/PepperFlash/23.0.0.185/libpepflashplayer.so --ppapi-flash-version=23.0.0.185
重启一下 chrome 就可以了!
1、安装SS
sudo apt-get install openssh-client # 用来登录别的机器的SSH sudo apt-get install openssh-server # 用来开放本机的SSH服务
Supervisor是用Python开发的一套通用的进程管理程序,能将一个普通的命令行进程变为后台daemon,并监控进程状态,异常退出时能自动重启。
VirtualBox 从 4.3.36 升级到 5.0.16 时,遇到 “共享文件夹挂载失败错误”:
/sbin/mount.vboxsf: mounting failed with the error: No such device
stackoverflow.com 上也有人遇到过这个问题:
http://stackoverflow.com/questions/...mounting-failed-with-the-error-no-such-device
./configure --with-mysql=/backup/mysql --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-curl --with-gd --enable-gd-native-ttf --with-apxs2=/usr/local/apache/bin/apxs --enable-sockets --with-iconv
make时提示:
..................................................... ext/iconv/.libs/iconv.o(.text+0x1738): In function `zif_iconv_mime_encode': /home/jjdai/work/zhupiter/php-5.2.0/ext/iconv/iconv.c:1017: undefined reference to `libiconv_open' ext/iconv/.libs/iconv.o(.text+0x1756):/home/jjdai/work/zhupiter/php-5.2.0/ext/iconv/iconv.c:1031: undefined reference to `libiconv_open'
操作步骤如下:
1、打开虚拟机中的 Ubuntu 系统;
2、安装“增强工具”
3、设置“共享文件夹”
1、下载
http://zookeeper.apache.org/releases.html
当前stable版是zookeeper-3.4.13
3、解压
tar –xzvf ./zookeeper-3.4.13.tar.gz
解压文件到 "/alidata/server/zookeeper/zookeeper-3.4"
4、复制 conf 目录下的 zoo_sample.cfg,并命名为 zoo.cfg