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
进入容器后就是一个裸奔的centos,如果不能科学上网就先把yum源换成阿里云的,然后 yum install -y net-tools yum install -y wgetyii2.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 "cfzy.site"
参考: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,把音乐网址贴进去就好了。剩下的步骤就是自己画画设计图片挂墙即可
密码保护:进入AI时代
问:有哪些ai绘画工具或者网站
答:以下是一些AI绘画工具或网站:
-
DeepArt.io:它使用神经网络将照片转换成大师级别的绘画或画作。
-
PaintsChainer:这款在线工具可以自动对手绘的线稿进行上色,效果颇为逼真。
-
AI Painter:基于AI技术的绘画工具,可以使用多种样式和颜色。
-
Google DeepDream:它使用深度学习算法来生成神奇的幻觉图像。
-
Artisto:这款手机应用可以将照片变成卡通画或是绘画作品。
-
DALL·E:这是一款由OpenAI开发的AI艺术家,可以用自然语言描述,生成各种绘画作品。
-
Prisma:这款应用可以将照片转换成像素画、素描或印象派风格的作品。
-
NVIDIA GauGAN:这是一款用于生成真实感图像的AI绘画软件。可以将简单的笔画转换成惊人逼真的风景图像。
-
Let’s Enhance:这款在线工具可以自动增强和升级照片的质量。
-
Sketchar:这是一款自然语言生成草图的应用,可以将自然语言转化为各种图像和艺术效果。