分类 默认 下的文章

有时候为了桌面简洁,对桌面的快捷方式进行搬迁。可搬迁过程中,桌面图标不见了或缺失了。这是因为桌面图标缓存的问题。这时候需要重新刷新

@echo off
taskkill /f /im explorer.exe
CD /d %userprofile%AppDataLocal
DEL IconCache.db /a
start explorer.exe
echo

新建bat文件 可以用新建文本.然后改尾缀方法 如1.txt改为1.bat 复制以上命令进去保存即可 也可通过以下附件解压

刷新桌面图标.bat

刷新桌面图标.zip

作者:猫偶尔会吃草
链接:https://www.jianshu.com/p/ec091197f741
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

解决方法:
http.conf文件添加以下代码
IndexOptions Charset=UTF-8
重启Apache

顺利解决!

【Windows环境】

这里介绍后台守护进程打开方式

start /d php think worker

【linux环境】

[debug 调试模式] ctrl+c退出或关闭会话则关闭服务

[daemon 后台守护进程] 参数后加 -d

开启workman

php think worker (这里不需要start)

停止workman

php think worker stop

重载workman

php think worker reload

重启workman

php think worker restart

查看workman状态

php think worker status

查看workman连接数

php think worker connections


开启workman服务

php think worker:server

关闭workman服务
php think worker:server stop

Workerman[start.php] start in DEBUG 调试模式 远程会话关闭则关闭

看了下thinkphp6 里面的完全手册 命令

think worker start -d (其实这里是错误的) 我一直进入都是Debug模式

正确的命令应该是: 开启 不需要再添加start

think worker -d (进入守护进程模式) 远程会话关闭继续可以链接

操作系统 centos 7.6
Tags:linux php加入系统变量 永久

1.打开文件
vi /etc/profile
2.在文件尾部添加以下代码
[i]
export PATH=/www/server/php/72/bin:$PATH
[esc]
[:wq]
3.生效配置
source /etc/profile
4.查看更改后的变量值
echo $PATH

【7.2.18】
说明:此实例是在宝塔面板基础上进行安装扩展(原先我使用了apache2.8+php7.2.18+mysql5.6.27)

1.下载扩展

wget https://www.php.net/distributions/php-7.2.18.tar.gz

2.解压文件

tar -xvf php-7.2.18.tar.gz
3.打开目录

cd php-7.2.18/ext/fileinfo

4.直接执行以下命令 找不到 whice phpnize
/www/server/php/72/bin/phpize
返回:
Configuring for:
PHP Api Version: 20170718
Zend Module Api No: 20170718
Zend Extension Api No: 320170718
5.初始化配置
./configure --with-php-config=/www/server/php/72/bin/php-config
6.出现报错
make: * No targets specified and no makefile found. Stop.
virtual memory exhausted: Cannot allocate memory
显示内存不足 对于我的1GB小主机 使用不了 这时候需要创临时空间
解决办法:内存不足, 在linux下增加临时swap空间

参考《在linux下增加临时swap空间》
https://blog.csdn.net/qq_32642039/article/details/78070813?locationNum=7&fps=1

step 1:
  #sudo dd if=/dev/zero of=/home/swap bs=64M count=16
  注释:of=/home/swap,放置swap的空间; count的大小就是增加的swap空间的大小,64M就是块大小,这里是64MB,所以总共空间就是bs*count=1024MB.这里分配空间的时候需要一点时间,等待执行完毕。
  
step 2:
  # sudo mkswap /home/swap (可能会提示warning: don’t erase bootbits sectorson whole disk. Use -f to force,不用理会)
  注释:把刚才空间格式化成swap各式
step 3:
  #sudo swapon /home/swap
  注释:使刚才创建的swap空间

7.直接安装
make && make install

显示:

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:

  • add LIBDIR to the `LD_LIBRARY_PATH' environment variable
    during execution
  • add LIBDIR to the `LD_RUN_PATH' environment variable
    during linking
  • use the `-Wl,--rpath -Wl,LIBDIR' linker flag
  • have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for

more information, such as the ld(1) and ld.so(8) manual pages.

8.配置扩展

vi /www/server/php/72/etc/php.ini
添加以下:
extension = /www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/fileinfo.so