我在docker容器上运行linux实例.这是一个debian:jessie用php 5.6.
我想安装bcmath模块,但我没有成功.
有人知道怎么做吗?
root@1419c032c35f:/etc/php5/fpm# apt install php5.6-bcmath
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php5.6-bcmath
E: Couldn't find any package by regex 'php5.6-bcmath'
Run Code Online (Sandbox Code Playgroud) 我的操作系统是ubuntu 16.04,我正在运行Lumen 5.5。当我尝试在浏览器中运行该应用程序时,出现错误500:
并且我在/ var / log / nginx中收到该错误:
2017/10/09 06:51:26 [error] 1063#1063: *132 FastCGI sent in stderr:
"PHP message: PHP Fatal error: Uncaught UnexpectedValueException:
The stream or file "/home/ila/vhosts/dref_api.com/storage/logs/lumen.log"
could not be opened: failed to open stream: Permission denied in
home/ila/vhosts/dref_api.com/
vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:107
Run Code Online (Sandbox Code Playgroud)
的权限vendor/ and all monolog/ sub files为:
因此,我认为可以适用,sudo chmod -R guo+w /vendor但我不知道它是否可行,甚至是一个好的做法。
您如何解决这个问题?
我正在使用[lightweight-charts] javascript 库来生成一些图表。对于此示例,我使用实时仿真图表。
在此示例中,背景颜色为白色。我想将背景颜色设置为黑色。我正在遵循文档,但无法实现目标。
以下是我正在使用的代码,但它不起作用:
var chart = LightweightCharts.createChart(document.getElementById('chart'), {
width: 1200,
height: 800,
background: '#000000',
textColor: '#ffffff'
});
var candleSeries = chart.addCandlestickSeries();
var data = [...]
Run Code Online (Sandbox Code Playgroud)
我缺少什么?
我正在创建一个脚本,其中用户必须提供第一个强制参数,第二个参数是可选的。如果小于 1 个或大于 2 个参数,则应抛出错误。
这是我到目前为止所做的:
if [ $# -eq 0 -o $# -gt 2]
then
echo " *** ! No arguments were supplied. *** !"
echo " Usage example is: sudo myserver pathToYourFolder [URL]"
echo ""
echo " The first argument 'pathToYourFolder' is mandatory.
It is the path to your mysite folder.
Please use like this example: sudo myserver /Users/jhon/Documents/mysite"
echo ""
echo " The second argument 'URL' is optional. It shuld be the desired URL to run with …Run Code Online (Sandbox Code Playgroud) bash ×1
bcmath ×1
comparator ×1
docker ×1
javascript ×1
laravel ×1
lumen ×1
php ×1
php-5.6 ×1
vendor ×1