PHP会话数据文件不是由您的uid(Vagrant CentOS)创建的

我尝试执行以下操作:</ p>

ini_set(' session.save_path','/ var / www / example / sessions'); </ code> </ p>

session_start(); </ code> </ p>
\ n

但是我收到以下错误:</ p>

session_start():会话数据文件不是由您的uid创建的</ p>
</ blockquote>

我检查 get_current_user()</ code>返回 vagrant </ code> </ p>

我检查 / var /的权限 www / example / sessions </ code>它返回:</ p>

drwxrwxrwx 1 vagrant vagrant 4.0K Dec 11 01:58 sessions </ code> </ p>

注意:答案陈述这里对我不起作用,因为:</ p>

chown -R www-data:www-data / var / www / example / sessions / </ code>返回错误:</ p>

chown:无效用户:'www-data:www-data'</ code>。</ p>

在Vagrant中,它出现 vagrant </ code>是PHP用户。</ p>

注意:会话文件似乎是在自定义会话文件夹中创建的,但它们是空的。 例如, sess_k92fdn46onm5an0mau6p50tr2g </ code>不包含任何内容。</ p>

任何想法?</ p>
</ div>



I try to do the following:

ini_set('session.save_path', '/var/www/example/sessions');


but I get the following error:

session_start(): Session data file is not created by your uid

I check get_current_user() in returns vagrant

I check permission of /var/www/example/sessions it returns:

drwxrwxrwx 1 vagrant vagrant 4.0K Dec 11 01:58 sessions

Note: the answer stated here does not work for me because doing:

chown -R www-data:www-data /var/www/example/sessions/ returns an error:

chown: invalid user: ‘www-data:www-data’.

In Vagrant, it appears vagrant is the PHP user.

Note: The session files appears to get created inside the custom session folder but they are empty. e.g., sess_k92fdn46onm5an0mau6p50tr2g doesn't contain anything.

Any ideas?

dopuz8728 在ubuntu机器上对我来说也是同样的问题。php用户是流浪汉,文件所有者是流浪汉,但只创建了空会话文件。你找到了解决方案吗?
一年多之前 回复
dqve65954 是的drwxrwxrwx
一年多之前 回复
douzhuangxuan3268 您是否检查了会话文件夹的文件权限?
一年多之前 回复


你是对的,你的用户是 vagrant </ code>。 您是否尝试过运行 sudo chown -R www-data:vagrant / var / www / example / sessions / </ code>? 您收到错误是因为 www-data </ code>不是用户。 希望这会有所帮助。</ p>
</ div>



You are correct, your user is vagrant. Have you tried running sudo chown -R www-data:vagrant /var/www/example/sessions/? You are getting the error because www-data is not a user. Hope this helps.

doulie0178 让我们在聊天中继续讨论。
一年多之前 回复
dongzhun8449 我设法通过vagrant配置文件将文件夹组/所有者更改为www-data但是我仍然得到相同的错误session_start():您的uid不会创建会话数据文件
一年多之前 回复
duanha3539 我创建了用户www-data但chown没有做任何事情。 dir仍归流浪者所有。
一年多之前 回复
dtcuv8044 你创建了www-data用户吗? 尝试grep www-data / etc / passwd以查看它是否存在。
一年多之前 回复
dpdrtj1075 www-data:apache和apache:apache都返回chown:无效的用户
一年多之前 回复
dongzao3923 不太熟悉Cent,但我相信如果你把流浪汉交换为apache,我建议的命令应该有用
一年多之前 回复
du1913 你的意思是说没有解决方案,因为流浪者是主人?
一年多之前 回复
duanbei8904 道歉! 完全没有看到你在CentOS上。 在Cent环境中,数据应该由apache拥有,以便能够修改它们。
一年多之前 回复
douna6802 同样的错误:chown:无效的用户:“-data:vagrant”
一年多之前 回复
Csdn user default icon
php56u-mcrypt错误:需要 - vagrant centos 7.0

<div class="post-text" itemprop="text"> <p>I have a strange issue that I have been running into when trying to download <code>mcrypt</code> for <code>php 5.6 and 7.0.x</code>. The error message states:</p> <pre><code>Error: Package: php56u-mcrypt-5.6.30-2.ius.centos7.x86_64 (ius) Requires: </code></pre> <p>The interesting thing is, I thought this might have been due to maybe a corrupt version of PHP (I was using 7.0.6 before) and received this same message. So when coming to PHP 5.6, I created a new Vagrant Centos 7.0 machine and I yet again, get this same error message. </p> <p>Suggestions?</p> </div>

PHP7 + Symfony 3.1.0 + Vagrant:无法写入会话数据

<div class="post-text" itemprop="text"> <p>although the path <strong><em>/mnt/my-proj/app/../var/sessions/dev</em></strong> is accessible for both the normal user and www-data I get the following message:</p> <pre><code>Warning: session_write_close(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/mnt/op-accounting2/app/../var/sessions/dev) </code></pre> <p>I get the message above only in dev, but not in prod. <strong><em>/mnt/my-proj/app/../var/sessions/dev</em></strong> and <strong><em>/mnt/my-proj/app/../var/sessions/prod</em></strong> have the same pemissions: 777.</p> <p>The path above is mounted as following:</p> <pre><code># mount -t vboxsf -o uid=1000,gid=33,umask=000 my-proj /mnt/my-proj; </code></pre> <p>What am I doing wrong?</p> <p>I've read the following posts, but could find no solution for me:</p> <p><a href="">PHP session handling errors</a></p> <p><a href="" rel="nofollow noreferrer"></a></p> <p><a href="">PHP7 + Symfony 2.8, Failed to write session data</a></p> <p>I'm using Vagrant 1.8.1 on Windows 8.1 Enterprice (64Bit) and ubuntu-xenial 16.04 in Vagrant. The provider is VirtualBox 5.0.20. The settings are mostly default ones. The path above is shared using VirtualBox GUI with full access.</p> <p>Kind regards,</p> <p>Juri</p> </div>




<div class="post-text" itemprop="text"> <p>I am attempting to create my laravel environment with homestead. I do vagrant up and it seems to work fine, however when I vagrant ssh there are no folders inside my vagrant. </p> <p>I have a folder named 'Code' in my home directory.</p> <p>I am using Ubuntu. Here is my yaml file.</p> <pre><code>--- ip: "" memory: 2048 cpus: 1 provider: virtualbox authorize: /Users/pocockn/.ssh/ keys: - /Users/pocockn/.ssh/id_rsa folders: - map: /Users/pocockn/Code to: /home/vagrant/Code/ sites: - map: to: /home/vagrant/Code/Laravel/public databases: - homestead variables: - key: APP_ENV value: local # blackfire: # - id: foo # token: bar # client-id: foo # client-token: bar # ports: # - send: 93000 # to: 9300 # - send: 7777 # to: 777 # protocol: udp </code></pre> </div>


<div class="post-text" itemprop="text"> <p>First time puppet user, and I'm having trouble getting an install of a specified version of PHP using Vagrant. I'm using the example42/php module, and I keep running into <code>ensure</code> problems.</p> <pre><code>Error: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install php-5.5.12' returned 1: Error: Nothing to do Error: /Stage[main]/Php/Package[php]/ensure: change from absent to 5.5.12 failed: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install php-5.5.12' returned 1: Error: Nothing to do Warning: /Stage[main]/Php/File[php.conf]: Skipping because of failed dependencies </code></pre> <p>spits out of my console, followed by another attempt that's identical.</p> <p>My .pp file I'm provisioning with:</p> <pre><code>class lamp { # package {'php': # ensure =&gt; present, # } } node 'node1' { include lamp file { '/php': ensure =&gt; directory, # I read that I may need to have a directory in order for the install to work... } class { 'php': version =&gt; '5.5.12', } } </code></pre> <p>As far as I can tell, I'm referencing correctly to the modules, which I store inside /puppet/modules/ and it's finding them, but I'm having a hard time getting a specific version of PHP to install. I could use a very simple "getting started LAMP" for Puppet <strong>but that only install 5.3.3 even if I <code>ensure =&gt; latest,</code></strong></p> </div>

Virtualbox6安装Centos7,加载CentOS iso镜像文件后出错 kernel panic - not syncing Fatal exception

``` Virtualbox6安装Centos7,加载iso文件后出错 kernel panic - not syncing Fatal exception 具体软件版本: Virtualbox 6.0.16 CentOS-7-x86_64-DVD-1810 我把办法都试完了,请问该如何解决 ```

在Vagrant机器上查找xDebug时,PhpStorm 8 Interpreter读错了php.ini

<div class="post-text" itemprop="text"> <p>I've been trying to set up xDebug with Vagrant and PhpStorm 8. It is supposed to simplify the process a lot, but for me it was exactly the opposite. In PhpStorm 8 we can set up Interpreters on a Vagrant maching. This is my setup.</p> <p><img src="" alt="enter image description here"></p> <p>The connection is set up - no problem here, the PHP binary is also found and responding. However, you can see the message <code>Debugger: Not installed</code>.</p> <p>PhpStorm does not detect xDebug because it is looking at the CLI config file (<code>/etc/php5/cli/php.ini</code>) instead of <code>/etc/php5/apache2/php.ini</code>, where debugger is installed.</p> <p>I find it rather strange that it would look for the Cli config while it is usually a different config file for web servers. </p> <p>How can I make PhpStorm detect the debugger? Should I copy all configuration from <code>/etc/php5/apache2/php.ini</code> to <code>/etc/php5/cli/php.ini</code> (these are substantially different in my remote environment and I want to keep them different). Has anyone encountered the same prblem?</p> </div>


<div class="post-text" itemprop="text"> <p>I'm trying to build a local dev environment for GoLang.</p> <p>My environment would consist of a VirtualBox VM using ubuntu and inside I'd use docker-compose to build out my different pieces.</p> <p>All other pieces of my environment work, except for golang. </p> <p>When I attempt to get a simple hello world HTTP response it get back "ERR_SOCKET_NOT_CONNECTED" inside chrome. </p> <p>My vagrant file looks like </p> <pre><code>Vagrant.configure("2") do |config| = "ubuntu/trusty64" port = 3000 config.vm.hostname = "vagrant-docker-example", guest: port, host: port), guest: 8080, host: 8080), guest: 80, host: 4567) config.vm.provision :shell, inline: "apt-get update" config.vm.provision :docker config.vm.provision :docker_compose, env: { "PORT" =&gt; "#{port}" }, yml: ["/vagrant/docker-compose-base.yml","/vagrant/docker-compose.yml"], rebuild: true, project_name: "myproject", run: "always" end </code></pre> <p>and my docker-compose file looks like</p> <pre><code>app: build: ./ links: - redis ports: - "${PORT}:8080" nginx: image: nginx:latest ports: - 80:80 </code></pre> <p>finally my docker file looks like</p> <pre><code># Start from a Debian image with the latest version of Go installed # and a workspace (GOPATH) configured at /go. FROM golang # Copy the local package files to the container's workspace. ADD . $GOPATH/src/ #Build RUN go get &amp;&amp;\ cd $GOPATH/src/ &amp;&amp;\ godep go build #Give the ownership to daemon RUN ["chown", "-R", "daemon", "."] USER daemon #Set the port ENV PORT 3000 # Document that the service listens on port 8080. EXPOSE 3000 CMD ["/go/src/"] </code></pre> <p>What am I doing wrong here?</p> <p>the Vagrant call is being run inside windows 10.</p> </div>


<div class="post-text" itemprop="text"> <p>I'm writing unit tests for my library and I've found something I don't understand.</p> <p>PHPunit is reporting uid 0 instead of 1000 when calling the function getmyuid(). I'm running as user 'vagrant' and regular code is reporting the correct uid (1000).</p> <p>PHPUnit test code (tests/UidTest.php):</p> <pre><code>&lt;?php class UidTest extends \PHPUnit\Framework\TestCase { public function test_uid_1000(): void { $this-&gt;assertEquals(1000, getmyuid()); } public function test_uid_0(): void { $this-&gt;assertEquals(0, getmyuid()); } } </code></pre> <blockquote> <p>phpunit tests/UidTest.php</p> </blockquote> <p>yields:</p> <blockquote> <p>UidTest::test_uid_1000 Failed asserting that 0 matches expected 1000.</p> </blockquote> <p>My regular script (testuid.php) reports the correct uid:</p> <pre><code>&lt;?php var_dump(getmyuid()); </code></pre> <blockquote> <p>php testuid.php</p> </blockquote> <p>yields:</p> <blockquote> <p>int(1000)</p> </blockquote> <p>My questions are:</p> <p><strong>Why is getmyuid() in phpunit reporting uid 0 instead of 1000?</strong></p> <p><strong>How can I force getmyuid() in phpunit to report the correct uid 1000?</strong></p> </div>

无法从主机访问在Vagrant来宾中运行的App Engine Go SDK Web服务器(带有端口转发)

<div class="post-text" itemprop="text"> <p>I'm running GAE dev server within a Vagrant guest precise64 box with the following network setup (in my Vagrantfile):</p> <pre><code>Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| :forwarded_port, guest: 8080, host: 9090 end </code></pre> <p>Which does its thing:</p> <pre><code>[default] Forwarding ports... [default] -- 8080 =&gt; 9090 (adapter 1) </code></pre> <p>I start my App Engine server with:</p> <pre><code>goapp serve </code></pre> <p>or </p> <pre><code> myappfolder </code></pre> <p>This starts app engine dev server as expected:</p> <pre><code>INFO 2013-11-22] Starting module running at: http://localhost:8080 </code></pre> <p>In all cases, <strong>I'm able to ssh in to the Vagrant guest and curl localhost:8080 successfully</strong>. </p> <p>Unfortunately, from the <em>host</em> I'm unable to get a response from localhost:9090 when running GAE dev web server. Additionally, I've made sure that I don't have anything interfering with the port 9090 on the host machine. <em>Also, I'm almost positive this isn't related to Vagrant as I spun up a quick node.js web server on 8080 and was able to reach it from the host. What am I missing?!!!</em></p> </div>

mac 下 vagrant up 报错 ping不通这个vagrantcloud.com这个地址 求大神解答

mac下安装vagrant 执行vagrant up 报错 ![图片说明]( ping 也不通 ![图片说明]( brew update ![图片说明]( 本地git的config文件没有代理 ![图片说明]( 求大神解答


<div class="post-text" itemprop="text"> <p>I want to create a virtualhost using vagrant, but when I create it and use the command to restart apache i get the following error:</p> <p><strong>Restarting web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified domain name Set the 'ServerName' directive globally to suppress this message</strong></p> </div>

virtualbox + vagrant如何配置ssh

我安装好virtualbox和vagrant后新建了一个box,也安装了putty,输入vagrant ssh 的时候为什么提示错误呢?ssh是不是应该配置一些东西,谢谢

Vagrant + Laravel数据库访问

<div class="post-text" itemprop="text"> <p>I have faced the same problem as reported <a href="">here</a>, but instead of the given solution, I could solve by just changing the port from <code>3306</code> to <code>33060</code> and everything worked fine in command line as I ran <code>php artisan:migrate</code>.</p> <p>however, if I change again from <code>33060</code> to <code>3306</code> I can access my application through the browser but not through the command line again.</p> <p>I thought that it might be the vagrant, so I created an environment variable for each of the agents and placed them in my <code>database.php</code> file, as below:</p> <pre><code>'mysql' =&gt; [ 'driver' =&gt; 'mysql', 'host' =&gt; env('DB_HOST', 'localhost') .':'. (php_sapi_name() === 'cli' ? env('DB_PORT_CLI') : env('DB_PORT')), 'database' =&gt; env('DB_DATABASE', 'forge'), 'username' =&gt; env('DB_USERNAME', 'forge'), 'password' =&gt; env('DB_PASSWORD', ''), 'charset' =&gt; 'utf8', 'collation' =&gt; 'utf8_unicode_ci', 'prefix' =&gt; '', 'strict' =&gt; false, ], </code></pre> <p>Now, both browser and CLI are working, but still I think it's not the best solution.</p> <p>Has anyone faced the same problem? how could I solve it neatly?</p> <p>Thanks in advance!</p> </div>

Laravel / Vagrant和Gulp:CSS和JavaScript文件似乎在某处缓存

<div class="post-text" itemprop="text"> <p>I recently started developing in Laravel but quickly ran into a problem with using Gulp and Vagrant. The problem is that when I compile my SCSS (SASS) to css, the browser doesn't seem to update the css file. The file is getting properly synced in vagrant and does not get cached by NGINX. I know this because I disabled caching on the server side and checked the synced-folder /var/www/my-project/public/css folder to see if the file got correctly compiled.</p> <p>The file only correctly loads when I reload the vagrant box, which is weird as the synced-folder shows the correctly compiled file on the server. Clearing cache in the browser does not help. I have no idea where the problem lies. I use Google Chrome.</p> <p>Below my server block and Gulpfile:</p> <p>NGINX server-block (note that this is not Laravel homestead):</p> <pre><code>location / { try_files $uri $uri/ /index.php; add_header Last-Modified $date_gmt; add_header Cache-Control 'no-store, no-cache, must-revalidate, $date, proxy-revalidate, max-age=0'; if_modified_since off; expires off; etag off; } location ~ \.php$ { include snippets/fastcgi-php.conf; # With php7.0-fpm: fastcgi_pass unix:/run/php/php7.1-fpm.sock; } location ~ /\.ht { deny all; } </code></pre> <p>Gulp task:</p> <pre><code>gulp.task("sass", function () { gulp.src(path.sass.src) .pipe(plumber({ errorHandler: function (err) { console.log(err.message); this.emit("end"); } })) .pipe(sass()) .pipe(gulp.dest(path.sass.destination)) .pipe(notify({ message: "Sass compiled.", onLast: true })); }); </code></pre> <p>I hope someone can help me out.</p> </div>


<div class="post-text" itemprop="text"> <p>I am trying to configure xdebug to work with my Vagrant VM in PhpStorm. I tried using <a href="" rel="nofollow">this guide</a> but to no avail. I've already got xdebug installed on my Vagrant box and the box is also registered and configured with PhpStorm</p> <p>I have tried setting a break point and running the debugger on this basic test function with Laravel:</p> <pre><code>Route::get('/test', function() { $a = [1, 2, 3, 4, 5]; array_pop($a); return 'hello'; }); </code></pre> <p>But it fails with the following error message:</p> <pre><code>vagrant://C:\Users\johndoe\Desktop\myproject/usr/bin/php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host= /vagrant/app/routes.php PHP Fatal error: Class 'Route' not found in /vagrant/app/routes.php on line 6 PHP Stack trace: PHP 1. {main}() /vagrant/app/routes.php:0 Process finished with exit code 255 </code></pre> <p>I also tried running it on a function in one of my controllers but it gives a similar error </p> <pre><code>vagrant://C:\Users\johndoe\Desktop\myproject/usr/bin/php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host= /vagrant/app/controllers/MyController.php PHP Fatal error: Class 'BaseController' not found in /vagrant/app/controllers/MyController.php on line 15 PHP Stack trace: PHP 1. {main}() /vagrant/app/controllers/MyController.php:0 Process finished with exit code 255 </code></pre> <p>/etc/php5/conf.d/20-xdebug.ini:</p> <pre><code>zend_extension=/usr/lib/php5/20100525/ xdebug.remote_enable = on xdebug.remote_connect_back = on xdebug.idekey = "vagrant" </code></pre> <p>Vagrantfile:</p> <pre><code># -*- mode: ruby -*- # vi: set ft=ruby : # Config Github Settings github_username = "johndoe" github_repo = "myrepo" github_branch = "master" # Server Configuration # Set a local private network IP address. # See for explanation # You can use the following IP ranges: # - # - # - server_ip = "" server_memory = "384" # MB server_timezone = "UTC" # HHVM Options hhvm_use_fastcgi = "false" # Use HHVM as FastCGI (over php-fpm) hhvm_over_php = "false" # Symlink HHVM to PHP, so calls to PHP run via HHVM # PHP Options php_version = "previous" # Options: latest|previous|distributed For 12.04. latest=5.5, previous=5.4, distributed=5.3 public_folder = "" # If installing Symfony or Laravel, leave this blank to default to the framework public directory laravel_version = "4.1.27" laravel_root_folder = "/vagrant/laravel" # Where to install Laravel. Will `composer install` if a composer.json file exists symfony_root_folder = "/vagrant/symfony" # Where to install Symfony. Vagrant.configure("2") do |config| # Set server to Ubuntu 12.04 = "precise64" config.vm.box_url = "" # Create a hostname, don't forget to put it to the `hosts` file # This will point to the server's default virtual host # TO DO: Make this work with virtualhost along-side URL config.vm.hostname = "" # Create a static IP :private_network, ip: server_ip # If using VirtualBox config.vm.provider :virtualbox do |vb| # Set server memory vb.customize ["modifyvm", :id, "--memory", server_memory] # Set the timesync threshold to 10 seconds, instead of the default 20 minutes. # If the clock gets more than 15 minutes out of sync (due to your laptop going # to sleep for instance, then some 3rd party services will reject requests. vb.customize ["guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 10000] end # If using VMWare Fusion config.vm.provider "vmware_fusion" do |vb, override| override.vm.box_url = "" # Set server memory vb.vmx["memsize"] = server_memory end # If using Vagrant-Cachier # if Vagrant.has_plugin?("vagrant-cachier") # Configure cached packages to be shared between instances of the same base box. # Usage docs: config.cache.scope = :box config.cache.synced_folder_opts = { type: :nfs, mount_options: ['rw', 'vers=3', 'tcp', 'nolock'] } end #### # Base Items ########## # Provision Base Packages config.vm.provision "shell", path: "{github_username}/#{github_repo}/#{github_branch}/scripts/" # Provision PHP config.vm.provision "shell", path: "{github_username}/#{github_repo}/#{github_branch}/scripts/", args: [php_version, server_timezone] #### # Web Servers ########## # Provision Apache Base config.vm.provision "shell", path: "{github_username}/#{github_repo}/#{github_branch}/scripts/", args: [server_ip, public_folder] #### # Frameworks and Tooling ########## # Provision Composer config.vm.provision "shell", path: "{github_username}/#{github_repo}/#{github_branch}/scripts/", privileged: false, args: composer_packages.join(" ") # Provision Laravel #config.vm.provision "shell", path: "{github_username}/#{github_repo}/#{github_branch}/scripts/", privileged: false, args: [server_ip, laravel_root_folder, public_folder, laravel_version] end </code></pre> <p>PhpStorm version: 8.0.2</p> <p>It seems like xdebug is not able to read any of the Laravel classes/facades. What can I do to get this fixed so I can use xdebug?</p> </div>

Laravel Vagrant在PHP CLI中运行artisan命令

<div class="post-text" itemprop="text"> <p>I am using Laravel 5.4 with Homestead vagrant and running my app on vagrant where i run tests like <code>vagrant@homestead:~/ticketApp$ php artisan dusk</code> and it works fine. currently i need to apply a hack where i put a check in my code that </p> <pre><code>if ('cli' === PHP_SAPI) { // do something } </code></pre> <p>and run the command php <code>php artisan dusk</code> but the condition <code>'cli' === PHP_SAPI</code> didn't return <code>true</code> and when i print the <code>PHP_SAPI</code> it returns the <code>fpm-cgi</code>.</p> <p>whereas i was expecting that <code>PHP_SAPI</code> will return <code>cli</code>.</p> <p>Please help how i'll run my tests to make this condition true</p> </div>

(虚拟机)centos 7.0 用ifconfig +网卡名 配置了我的网卡,可是我网卡信息没改变,分配的ip却变了。

首先,我用ifconfig 命令更改我的网卡配置, ![图片说明]( 我的网卡名为eno16777736 接下来,查看我的网卡配置信息: ![图片说明]( 不懂的就开始了,难道我没有配置成功吗。没有任何192.168.1.17的字样 接着我ifconfig 查看我到底是什么ip:![图片说明]( 这就是我的疑惑了,这到底是配置成功了吗,期间没有重启网络,是连续的操作,可能我太过新手了,请大哥们帮忙看看。


<div class="post-text" itemprop="text"> <p>I am trying to set up a new Vagrant box. My bash script looks like this </p> <pre><code>#!/usr/bin/env bash echo "--- Good morning, master. Let's get to work. Installing now. ---" echo "--- Updating packages list ---" sudo apt-get update echo "--- MySQL time ---" sudo debconf-set-selections &lt;&lt;&lt; 'mysql-server mysql-server/root_password password root' sudo debconf-set-selections &lt;&lt;&lt; 'mysql-server mysql-server/root_password_again password root' echo "--- Installing base packages ---" sudo apt-get install -y vim curl python-software-properties echo "--- Updating packages list ---" sudo apt-get update echo "--- We want the bleeding edge of PHP, right master? ---" sudo add-apt-repository -y ppa:ondrej/php5 echo "--- Updating packages list ---" sudo apt-get update echo "--- Installing PHP-specific packages ---" sudo apt-get install -y php5 apache2 libapache2-mod-php5 php5-curl php5-gd php5-mcrypt mysql-server-5.5 php5-mysql git-core echo "--- Installing and configuring Xdebug ---" sudo apt-get install -y php5-xdebug cat &lt;&lt; EOF | sudo tee -a /etc/php5/mods-available/xdebug.ini xdebug.scream=1 xdebug.cli_color=1 xdebug.show_local_vars=1 EOF echo "--- Enabling mod-rewrite ---" sudo a2enmod rewrite echo "--- Setting document root ---" sudo rm -rf /var/www sudo ln -fs /vagrant/public /var/www echo "--- What developer codes without errors turned on? Not you, master. ---" sed -i "s/error_reporting = .*/error_reporting = E_ALL/" /etc/php5/apache2/php.ini sed -i "s/display_errors = .*/display_errors = On/" /etc/php5/apache2/php.ini sed -i 's/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf echo "--- Restarting Apache ---" sudo service apache2 restart echo "--- Composer is the future. But you knew that, did you master? Nice job. ---" curl -sS | php sudo mv composer.phar /usr/local/bin/composer echo "--- All set to go! Would you like to play a game? ---" </code></pre> <p>Although when I run <code>vagrant up</code> in the terminal I get this error</p> <pre><code>--- What developer codes without errors turned on? Not you, master. --- --- Restarting Apache --- * Restarting web server apache2 AH00112: Warning: DocumentRoot [/var/www] does not exist AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using Set the 'ServerName' directive globally to suppress this message ...done. </code></pre> <p>I have searched using the finder for /var/www and I am taken to the correct folder. The permissions for this folder are set at <code>755</code></p> <p>Why would it fail in finding the document root?</p> </div>

MySQL 8.0.19安装教程(windows 64位)

话不多说直接开干 目录 1-先去官网下载点击的MySQL的下载​ 2-配置初始化的my.ini文件的文件 3-初始化MySQL 4-安装MySQL服务 + 启动MySQL 服务 5-连接MySQL + 修改密码 先去官网下载点击的MySQL的下载 下载完成后解压 解压完是这个样子 配置初始化的my.ini文件的文件 ...



Vue.js 2.0之全家桶系列视频课程

基于新的Vue.js 2.3版本, 目前新全的Vue.js教学视频,让你少走弯路,直达技术前沿! 1. 包含Vue.js全家桶(vue.js、vue-router、axios、vuex、vue-cli、webpack、ElementUI等) 2. 采用笔记+代码案例的形式讲解,通俗易懂






【为什么学爬虫?】 &nbsp; &nbsp; &nbsp; &nbsp;1、爬虫入手容易,但是深入较难,如何写出高效率的爬虫,如何写出灵活性高可扩展的爬虫都是一项技术活。另外在爬虫过程中,经常容易遇到被反爬虫,比如字体反爬、IP识别、验证码等,如何层层攻克难点拿到想要的数据,这门课程,你都能学到! &nbsp; &nbsp; &nbsp; &nbsp;2、如果是作为一个其他行业的开发者,比如app开发,web开发,学习爬虫能让你加强对技术的认知,能够开发出更加安全的软件和网站 【课程设计】 一个完整的爬虫程序,无论大小,总体来说可以分成三个步骤,分别是: 网络请求:模拟浏览器的行为从网上抓取数据。 数据解析:将请求下来的数据进行过滤,提取我们想要的数据。 数据存储:将提取到的数据存储到硬盘或者内存中。比如用mysql数据库或者redis等。 那么本课程也是按照这几个步骤循序渐进的进行讲解,带领学生完整的掌握每个步骤的技术。另外,因为爬虫的多样性,在爬取的过程中可能会发生被反爬、效率低下等。因此我们又增加了两个章节用来提高爬虫程序的灵活性,分别是: 爬虫进阶:包括IP代理,多线程爬虫,图形验证码识别、JS加密解密、动态网页爬虫、字体反爬识别等。 Scrapy和分布式爬虫:Scrapy框架、Scrapy-redis组件、分布式爬虫等。 通过爬虫进阶的知识点我们能应付大量的反爬网站,而Scrapy框架作为一个专业的爬虫框架,使用他可以快速提高我们编写爬虫程序的效率和速度。另外如果一台机器不能满足你的需求,我们可以用分布式爬虫让多台机器帮助你快速爬取数据。 &nbsp; 从基础爬虫到商业化应用爬虫,本套课程满足您的所有需求! 【课程服务】 专属付费社群+每周三讨论会+1v1答疑




时钟功能 还有闹钟功能,温湿度功能,整点报时功能 你值得拥有

学生成绩管理系统(PHP + MYSQL)

做的是数据库课程设计,使用的php + MySQL,本来是黄金搭配也就没啥说的,推荐使用wamp服务器,里面有详细的使用说明,带有界面的啊!呵呵 不行的话,可以给我留言!

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?



获取讲师答疑方式: 在付费视频第一节(触摸命令_ALL)片头有二维码及加群流程介绍 限时福利 原价99元,今日仅需39元!购课添加小助手(微信号:itxy41)按提示还可领取价值800元的编程大礼包! 讲师介绍: 苏奕嘉&nbsp;前阿里UC项目工程师 脚本开发平台官方认证满级(六级)开发者。 我将如何教会你通过【定制脚本】赚到你人生的第一桶金? 零基础程序定制脚本开发课程,是完全针对零脚本开发经验的小白而设计,课程内容共分为3大阶段: ①前期将带你掌握Q开发语言和界面交互开发能力; ②中期通过实战来制作有具体需求的定制脚本; ③后期将解锁脚本的更高阶玩法,打通任督二脉; ④应用定制脚本合法赚取额外收入的完整经验分享,带你通过程序定制脚本开发这项副业,赚取到你的第一桶金!


原价169,限时立减100元! 系统掌握Python核心语法16点,轻松应对工作中80%以上的Python使用场景! 69元=72讲+源码+社群答疑+讲师社群分享会&nbsp; 【哪些人适合学习这门课程?】 1)大学生,平时只学习了Python理论,并未接触Python实战问题; 2)对Python实用技能掌握薄弱的人,自动化、爬虫、数据分析能让你快速提高工作效率; 3)想学习新技术,如:人工智能、机器学习、深度学习等,这门课程是你的必修课程; 4)想修炼更好的编程内功,优秀的工程师肯定不能只会一门语言,Python语言功能强大、使用高效、简单易学。 【超实用技能】 从零开始 自动生成工作周报 职场升级 豆瓣电影数据爬取 实用案例 奥运冠军数据分析 自动化办公:通过Python自动化分析Excel数据并自动操作Word文档,最终获得一份基于Excel表格的数据分析报告。 豆瓣电影爬虫:通过Python自动爬取豆瓣电影信息并将电影图片保存到本地。 奥运会数据分析实战 简介:通过Python分析120年间奥运会的数据,从不同角度入手分析,从而得出一些有趣的结论。 【超人气老师】 二两 中国人工智能协会高级会员 生成对抗神经网络研究者 《深入浅出生成对抗网络:原理剖析与TensorFlow实现》一书作者 阿里云大学云学院导师 前大型游戏公司后端工程师 【超丰富实用案例】 0)图片背景去除案例 1)自动生成工作周报案例 2)豆瓣电影数据爬取案例 3)奥运会数据分析案例 4)自动处理邮件案例 5)github信息爬取/更新提醒案例 6)B站百大UP信息爬取与分析案例 7)构建自己的论文网站案例


这门课程基于主流的java8平台,由浅入深的详细讲解了java SE的开发技术,可以使java方向的入门学员,快速扎实的掌握java开发技术!


&nbsp; &nbsp; &nbsp; &nbsp; 本课程为Python数据挖掘方向的入门课程,课程主要以真实数据为基础,详细介绍数据挖掘入门的流程和使用Python实现pandas与numpy在数据挖掘方向的运用,并深入学习如何运用scikit-learn调用常用的数据挖掘算法解决数据挖掘问题,为进一步深入学习数据挖掘打下扎实的基础。


本课程从初学者角度出发,提供了C#从入门到成为程序开发高手所需要掌握的各方面知识和技术。 【课程特点】 1 由浅入深,编排合理; 2 视频讲解,精彩详尽; 3 丰富实例,轻松易学; 4 每章总结配有难点解析文档。 15大章节,228课时,1756分钟与你一同进步!






想学好JAVA必须要报两万的培训班吗? Java大神勿入 如果你: 零基础想学JAVA却不知道从何入手 看了一堆书和视频却还是连JAVA的环境都搭建不起来 囊中羞涩面对两万起的JAVA培训班不忍直视 在职没有每天大块的时间专门学习JAVA 那么恭喜你找到组织了,在这里有: 1. 一群志同道合立志学好JAVA的同学一起学习讨论JAVA 2. 灵活机动的学习时间完成特定学习任务+每日编程实战练习 3. 热心助人的助教和讲师及时帮你解决问题,不按时完成作业小心助教老师的家访哦 上一张图看看前辈的感悟: &nbsp; &nbsp; 大家一定迫不及待想知道什么是极简JAVA学习营了吧,下面就来给大家说道说道: 什么是极简JAVA学习营? 1. 针对Java小白或者初级Java学习者; 2. 利用9天时间,每天1个小时时间; 3.通过 每日作业 / 组队PK / 助教答疑 / 实战编程 / 项目答辩 / 社群讨论 / 趣味知识抢答等方式让学员爱上学习编程 , 最终实现能独立开发一个基于控制台的‘库存管理系统’ 的学习模式 极简JAVA学习营是怎么学习的? &nbsp; 如何报名? 只要购买了极简JAVA一:JAVA入门就算报名成功! &nbsp;本期为第四期极简JAVA学习营,我们来看看往期学员的学习状态: 作业看这里~ &nbsp; 助教的作业报告是不是很专业 不交作业打屁屁 助教答疑是不是很用心 &nbsp; 有奖抢答大家玩的很嗨啊 &nbsp; &nbsp; 项目答辩终于开始啦 &nbsp; 优秀者的获奖感言 &nbsp; 这是答辩项目的效果 &nbsp; &nbsp; 这么细致的服务,这么好的氛围,这样的学习效果,需要多少钱呢? 不要1999,不要199,不要99,只要9.9 是的你没听错,只要9.9以上所有就都属于你了 如果你: 1、&nbsp;想学JAVA没有基础 2、&nbsp;想学JAVA没有整块的时间 3、&nbsp;想学JAVA没有足够的预算 还等什么?赶紧报名吧,抓紧抢位,本期只招300人,错过只有等时间待定的下一期了 &nbsp; 报名请加小助手微信:eduxy-1 &nbsp; &nbsp;


董付国系列教材《Python程序设计基础》、《Python程序设计(第2版)》、《Python可以这样学》配套视频,讲解Python 3.5.x和3.6.x语法、内置对象用法、选择与循环以及函数设计与使用、lambda表达式用法、字符串与正则表达式应用、面向对象编程、文本文件与二进制文件操作、目录操作与系统运维、异常处理结构。


文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...


机器学习实战系列套餐以实战为出发点,帮助同学们快速掌握机器学习领域必备经典算法原理并结合Python工具包进行实战应用。建议学习顺序:1.Python必备工具包:掌握实战工具 2.机器学习算法与实战应用:数学原理与应用方法都是必备技能 3.数据挖掘实战:通过真实数据集进行项目实战。按照下列课程顺序学习即可! 课程风格通俗易懂,用最接地气的方式带领大家轻松进军机器学习!提供所有课程代码,PPT与实战数据,有任何问题欢迎随时与我讨论。


发现网上很多Java面试题都没有答案,所以花了很长时间搜集整理出来了这套Java面试题大全,希望对大家有帮助哈~ 本套Java面试题大全,全的不能再全,哈哈~ 一、Java 基础 1. JDK 和 JRE 有什么区别? JDK:Java Development Kit 的简称,java 开发工具包,提供了 java 的开发环境和运行环境。 JRE:Java Runtime Environ...


已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...


深度学习系列课程从深度学习基础知识点开始讲解一步步进入神经网络的世界再到卷积和递归神经网络,详解各大经典网络架构。实战部分选择当下最火爆深度学习框架PyTorch与Tensorflow/Keras,全程实战演示框架核心使用与建模方法。项目实战部分选择计算机视觉与自然语言处理领域经典项目,从零开始详解算法原理,debug模式逐行代码解读。适合准备就业和转行的同学们加入学习! 建议按照下列课程顺序来进行学习 (1)掌握深度学习必备经典网络架构 (2)深度框架实战方法 (3)计算机视觉与自然语言处理项目实战。(按照课程排列顺序即可)


本课程为HoloLens2开发入门教程,讲解部署开发环境,安装VS2019,Unity版本,Windows SDK,创建Unity项目,讲解如何使用MRTK,编辑器模拟手势交互,打包VS工程并编译部署应用到HoloLens上等。


本文的面试题如下: Redis 持久化机制 缓存雪崩、缓存穿透、缓存预热、缓存更新、缓存降级等问题 热点数据和冷数据是什么 Memcache与Redis的区别都有哪些? 单线程的redis为什么这么快 redis的数据类型,以及每种数据类型的使用场景,Redis 内部结构 redis的过期策略以及内存淘汰机制【~】 Redis 为什么是单线程的,优点 如何解决redis的并发竞争key问题 Red...



【数据结构与算法综合实验】欢乐连连看(C++ & MFC)案例

这是武汉理工大学计算机学院数据结构与算法综合实验课程的第三次项目:欢乐连连看(C++ & MFC)迭代开发代码。运行环境:VS2017。已经实现功能:开始游戏、消子、判断胜负、提示、重排、计时、帮助。


YOLOv3是一种基于深度学习的端到端实时目标检测方法,以速度快见长。本课程将手把手地教大家使用labelImg标注和使用YOLOv3训练自己的数据集。课程分为三个小项目:足球目标检测(单目标检测)、梅西目标检测(单目标检测)、足球和梅西同时目标检测(两目标检测)。 本课程的YOLOv3使用Darknet,在Ubuntu系统上做项目演示。包括:安装Darknet、给自己的数据集打标签、整理自己的数据集、修改配置文件、训练自己的数据集、测试训练出的网络模型、性能统计(mAP计算和画出PR曲线)和先验框聚类。 Darknet是使用C语言实现的轻型开源深度学习框架,依赖少,可移植性好,值得深入探究。 除本课程《YOLOv3目标检测实战:训练自己的数据集》外,本人推出了有关YOLOv3目标检测的系列课程,请持续关注该系列的其它课程视频,包括: 《YOLOv3目标检测实战:交通标志识别》 《YOLOv3目标检测:原理与源码解析》 《YOLOv3目标检测:网络模型改进方法》 敬请关注并选择学习!



相关热词 c# 局部 截图 页面 c#实现简单的文件管理器 c# where c# 取文件夹路径 c# 对比 当天 c# fir 滤波器 c# 和站 队列 c# txt 去空格 c#移除其他类事件 c# 自动截屏