月度存档: 4 月 2023

virtualbox各个版本地址及增强包下载

http://download.virtualbox.org/virtualbox/

centos8下安装xampp保错Cannot load modules/mod_perl.so into server解决方案

centos8 下安装xampp保错Cannot load modules/mod_perl.so into server解决方案:
命令行输入:
sudo dnf install libnsl

httpd: Syntax error on line 522 of /opt/lampp/etc/httpd.conf: Syntax error on line 13 of /opt/lampp/etc/extra/httpd-xampp.conf: Cannot load modules/mod_perl.so into server: libnsl.so.1: cannot open shared object file: No such file or directory

ps:使服务器可以被外部地址访问,修改Xampp的两个配置文件

# vim etc/httpd.conf
<Directory />
    AllowOverride All
    Order allow,deny
    Allow from all
    #Require all denied
</Directory>
# vim etc/extra/httpd-xampp.conf
# since XAMPP 1.4.3
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig
    #AllowOverride AuthConfig Limit
    Require all granted
    #Require local
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>

原文参考:http://sotarylen.com/linuxcentos-8-2%E4%B8%8B%E5%AE%89%E8%A3%85xampp%E9%9B%86%E6%88%90%E7%8E%AF%E5%A2%83%E5%8F%8A%E8%B8%A9%E5%9D%91%E8%AE%B0%E5%BD%95.html

centos下配置yum源为国内源

1.备份/etc/yum.repos.d/CentOS-Base.repo文件

cd /etc/yum.repos.d/
mv CentOS-Linux-AppStream.repo CentOS-Linux-AppStream.repo.back

2.下载阿里云的Centos-6.repo文件

wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
mv Centos-8.repo CentOS-Linux-AppStream.repo

3.重新加载yum

yum clean all
yum makecache

docker常用命令

docker pull centos

docker run -it -d -p80:80 -p443:443 -p8080:8080 –name mycentos centos /bin/bash

docker ps -a

docker exec -it contianid /bin/bash

#或者用root登录容器,获取最大权限

docker exec -it -u root contianid /bin/bash

进入容器后就是一个裸奔的centos,如果不能科学上网就先把yum源换成阿里云的,然后 yum install -y net-tools yum install -y wget

yii2.0在php命令行中运行的步骤

step1 找到yii2项目根目录

step2 在advanced/console/controllers下新建文件HelloController.php

<?php
namespace console\controllers;
use yii\console\Controller;
class HelloController extends Controller
{
  /**
   * This command echoes what you have entered as the message.
   * @param string $message the message to be echoed.
   */
  public function actionIndex($message = 'hello world')
  {
    echo $message . "\n";
  }
}

step3 控制台执行

php ../yii 控制器名/action名

示例:

advanced/console# php ../yii hello/index 
或者
advanced# php yii hello/index "amyflash.com"

参考:https://www.bbsmax.com/A/mo5kyrEKzw/

kindle多看wifi传书

kindle刷多看-》打开菜单-》wifi传输-》出现ftp地址-》电脑里打开ftp软件-》连接ftp地址

密码保护:20230402为春天播种-文字版

此内容受密码保护。如需查阅,请在下列字段中输入您的密码。

Android手机nfc照片墙生成办法

众所周知,苹果手机有个快捷指令可以利用nfc芯片快速播放音乐,安卓有没对应的方法呢,答案yes,主要借助两个app:nfc tools pro和NFC tasks,这两个工具安装好后,在nfc tools pro里设置任务-》添加任务-》声音&媒体-》播放一个声音-》输入下载到本地的音乐路径写入nfc芯片,有杠精说我不想下载到手机,想在网上听,那就在在nfc tools pro里写-》添加记录url/uri,把音乐网址贴进去就好了。剩下的步骤就是自己画画设计图片挂墙即可