{"action":"opened","issue":{"url":"https://api.github.com/repos/ftyszyx/MyBlog/issues/25","repository_url":"https://api.github.com/repos/ftyszyx/MyBlog","labels_url":"https://api.github.com/repos/ftyszyx/MyBlog/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/ftyszyx/MyBlog/issues/25/comments","events_url":"https://api.github.com/repos/ftyszyx/MyBlog/issues/25/events","html_url":"https://github.com/ftyszyx/MyBlog/issues/25","id":295377453,"number":25,"title":"linux(ubutu) php mysql node.js nginx部署","user":{"login":"ftyszyx","id":3063779,"avatar_url":"https://avatars0.githubusercontent.com/u/3063779?v=4","gravatar_id":"","url":"https://api.github.com/users/ftyszyx","html_url":"https://github.com/ftyszyx","followers_url":"https://api.github.com/users/ftyszyx/followers","following_url":"https://api.github.com/users/ftyszyx/following{/other_user}","gists_url":"https://api.github.com/users/ftyszyx/gists{/gist_id}","starred_url":"https://api.github.com/users/ftyszyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftyszyx/subscriptions","organizations_url":"https://api.github.com/users/ftyszyx/orgs","repos_url":"https://api.github.com/users/ftyszyx/repos","events_url":"https://api.github.com/users/ftyszyx/events{/privacy}","received_events_url":"https://api.github.com/users/ftyszyx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-08T03:56:32Z","updated_at":"2018-02-08T03:56:32Z","closed_at":null,"author_association":"OWNER","body":"一、node.js\r\n1、下载源码：\r\n$ ./configure \r\n$ make -j4\r\n2、编译完后：测试node是否正确\r\n$ ./node -e \"console.log('Hello from Node.js ' + process.version)\"\r\n3、安装：\r\nmake install\r\n\r\n二、php\r\n1、安装 sudo apt-get install php-fpm php-mysql\r\n\r\n2、修改php.ini\r\ncgi.fix_pathinfo=0\r\n\r\n设置php-fpm开机自动启动\r\nsystemctl enable php-fpm\r\n\r\n启动php-fpm\r\nsystemctl start php-fpm\r\n\r\n5、重启\r\nsudo systemctl restart php7.0-fpm\r\nservice php7.0-fpm restart # debian-style PHP 7\r\n\r\n6、nginx的配置\r\n\r\nserver\r\n    {\r\n        listen 80;\r\n        root  /home/zyx/shop2/;\r\n        index index.php index.html  index.htm ;\r\n        server_name game.ansitong.com www.game.ansitong.com;\r\n        location /{\r\n          \ttry_files $uri $uri/ /index.php$is_args$args;\r\n        }\r\n\r\n        location ~ \\.php$ {\r\n            try_files $uri =404;\r\n            include fastcgi-php.conf;\r\n             fastcgi_pass unix:/run/php/php7.0-fpm.sock;\r\n        }\r\n\r\n    }\r\n问题1：\r\nconnect() to unix:/run/php/php7.0-fpm.sock failed (13: Permission denied)\r\n修改/etc/php/7.0/fpm/pool.d下www.conf\r\n修改listen.mode = 0660为listen.mode = 0666\r\n让其它用户可读写\r\n\r\n问题1：安装一些模块\r\nDOM apt-get install php-xml\r\ngd apt-get install php-gd\r\nmbstring sudo apt-get install php7.0-mbstring\r\ncurl sudo apt-get install php5-curl\r\n\r\n参考1\r\n\r\n\r\n"}}
{"actor":{"display_login":"ftyszyx"}}