python php nodejs apache之间的关系?

最近在接触后端语言和框架,碰到好多东西但还不是很明白。
php作为一种后端语言我大概能理解。
python django同样也是后端语言。这两种的后端正式发布还是要依靠apache的吧?
那nodejs又是什么?相当于集后端语言和服务器于一身么???谢谢!

1个回答

django是python写的web框架
nodejs是javascript写的web框架,好比jquery是js写的前端框架
php是一种编程语言,类似的还有python js java ... 这些都是语言
apache是web服务器,jsp php python都可以在上面运行

coolkid09100
chandlervan 谢谢您的解答!今天自己查了很多资料大概明白了!谢谢!
3 年多之前 回复
caozhy
贵阳老马马善福专业维修游泳池堵漏防水工程 回复coolkid09100: 没法比,没有可比性
3 年多之前 回复
coolkid09100
chandlervan 那nodejs 和 apache有比较吗?因为看到网上说有nodjs就不用apache了。。
3 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
关于nodejs和python交互的一个问题

nodejs可以利用child_process的exec创建一个子进程来执行python的代码。 假设有如下代码: python代码 main.py ``` import sys import numpy as np params = np.load('params.npy').item() #高时间成本的io def function(input): return calculate_output(params, input) print(function(sys.argv[1])) ``` 那么在nodejs中,每次使用exec函数调用这段代码,都需要执行一次高时间成本的io, 而实际上这些io完全是重复的,那么有什么方法能避免这种重复的io呢?

实时通知所有连接的客户端PHP Mysql NodeJs Apache

<div class="post-text" itemprop="text"> <p>I am developing an application in which i need to send notification to all connected clients in real time. I have used nodejs for real time notification send to connected clients.</p> <p>Problem is this is working fine on server, While connected clients are not able to display popup notification. While total numbers of notification is increasing as per notification inserted to database on server and clients also. Only problem no popup notification.</p> <p>code : index.php</p> <pre><code>&lt;?php include_once( dirname( __FILE__ ) . '/class/Database.class.php' ); include_once( dirname( __FILE__ ) . '/class/HelperClass.php' ); $pdo = Database::getInstance()-&gt;getPdoObject(); $helper = new HelperClass(); ?&gt; &lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt; &lt;!-- Meta, title, CSS, favicons, etc. --&gt; &lt;meta charset="utf-8"&gt; &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt; &lt;title&gt;VegFru | Notification&lt;/title&gt; &lt;!-- Bootstrap core CSS --&gt; &lt;link href="css/bootstrap.min.css" rel="stylesheet"&gt; &lt;link href="fonts/css/font-awesome.min.css" rel="stylesheet"&gt; &lt;link href="css/animate.min.css" rel="stylesheet"&gt; &lt;link href="css/pnotify.custom.min.css" rel="stylesheet"&gt; &lt;!-- Custom styling plus plugins --&gt; &lt;link href="css/custom.css" rel="stylesheet"&gt; &lt;script src="js/jquery.min.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body class="nav-md"&gt; &lt;div class="container body"&gt; &lt;div class="main_container"&gt; &lt;div class="col-md-3 left_col"&gt; &lt;div class="left_col scroll-view"&gt; &lt;div class="navbar nav_title" style="border: 0;"&gt; &lt;a href="index.php" class="site_title"&gt;&lt;i class="fa fa-paw"&gt;&lt;/i&gt; &lt;span&gt;VegFru&lt;/span&gt;&lt;/a&gt; &lt;/div&gt; &lt;div class="clearfix"&gt;&lt;/div&gt; &lt;!-- menu prile quick info --&gt; &lt;div class="profile"&gt; &lt;div class="profile_pic"&gt; &lt;img src="images/img.jpg" alt="..." class="img-circle profile_img"&gt; &lt;/div&gt; &lt;div class="profile_info"&gt; &lt;span&gt;Welcome,&lt;/span&gt; &lt;h2&gt;Ashish Singh&lt;/h2&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- /menu prile quick info --&gt; &lt;br /&gt; &lt;!-- sidebar menu --&gt; &lt;div id="sidebar-menu" class="main_menu_side hidden-print main_menu"&gt; &lt;div class="menu_section"&gt; &lt;ul class="nav side-menu"&gt; &lt;li&gt;&lt;a href="#"&gt;Push Notification &lt;i class="fa fa-dashboard pull-right"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt; &lt;form action="ajax/insertNewMessage.php" id="notification"&gt; &lt;div class="form-group" style="margin-left: 16px; width: 83%"&gt; &lt;input type="checkbox" onclick="client.gerateRandomNotification(this)"/&gt; &lt;label class="control-label" for="notification-input"&gt;Generate Random&lt;/label&gt; &lt;/div&gt; &lt;div class="form-group" style="margin-left: 16px; width: 83%"&gt; &lt;label class="control-label" for="notification-input"&gt;Notification Message&lt;/label&gt; &lt;input type="text" id="notification-input" class="form-control" placeholder="Notification Message"&gt;&lt;br/&gt; &lt;/div&gt; &lt;button type="submit" class="btn btn-success" style="margin-left: 16px;"&gt;Send Push Notification&lt;/button&gt; &lt;/form&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- /sidebar menu --&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- top navigation --&gt; &lt;div class="top_nav"&gt; &lt;div class="nav_menu"&gt; &lt;nav class="" role="navigation"&gt; &lt;!-- &lt;div class="nav toggle"&gt; &lt;a id="menu_toggle"&gt;&lt;i class="fa fa-bars"&gt;&lt;/i&gt;&lt;/a&gt; &lt;/div&gt; --&gt; &lt;ul class="nav navbar-nav navbar-right"&gt; &lt;li class=""&gt; &lt;a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false"&gt; &lt;img src="images/img.jpg" alt=""&gt;Ashish Singh &lt;/a&gt; &lt;/li&gt; &lt;li role="presentation" class="dropdown"&gt; &lt;a href="javascript:;" class="dropdown-toggle info-number" data-toggle="dropdown" aria-expanded="false"&gt; &lt;i class="fa fa-envelope-o"&gt;&lt;/i&gt; &lt;span class="badge bg-green"&gt;&lt;/span&gt; &lt;/a&gt; &lt;/li&gt; &lt;li role="presentation" class="dropdown"&gt; &lt;?php $query = $pdo-&gt;prepare( 'SELECT * FROM notification WHERE status = 0 ORDER BY id DESC' ); $query-&gt;execute(); $notifications = $query-&gt;fetchAll( PDO::FETCH_OBJ ); ?&gt; &lt;a href="javascript:;" class="dropdown-toggle info-number" data-toggle="dropdown" aria-expanded="false"&gt; &lt;i class="fa fa-bell-o"&gt;&lt;/i&gt; &lt;span class="badge bg-green"&gt;&lt;?= count($notifications) &gt; 0 ? count($notifications): '' ?&gt;&lt;/span&gt; &lt;/a&gt; &lt;ul class="dropdown-menu list-unstyled msg_list animated fadeInDown" style="right: -120px !important; border-top-left-radius: 7px; border-top-right-radius: 7px; margin-top: 10px;" role="menu"&gt; &lt;li style="background-color: white"&gt; &lt;div class="text-center"&gt; &lt;a&gt; &lt;strong&gt;&lt;a href="inbox.html"&gt;Notification (&lt;?= count($notifications) ?&gt;)&lt;/strong&gt; &lt;/a&gt; &lt;/div&gt; &lt;/li&gt; &lt;div id="notifications-container"&gt; &lt;?php foreach( $notifications as $notification):?&gt; &lt;li data-id="&lt;?= $notification-&gt;id ?&gt;" onclick="client.openNotification(this)"&gt; &lt;a&gt; &lt;span class="image"&gt; &lt;img src="images/img.jpg" alt="Profile Image" /&gt; &lt;/span&gt; &lt;span&gt; &lt;span&gt;Ashish Singh&lt;/span&gt; &lt;span class="time"&gt;&lt;?php echo $helper-&gt;time_elapsed_string($notification-&gt;created_at) ?&gt;&lt;/span&gt; &lt;/span&gt; &lt;span class="message"&gt; &lt;?php echo $notification-&gt;notification ?&gt; &lt;/span&gt; &lt;/a&gt; &lt;/li&gt; &lt;?php endforeach; ?&gt; &lt;/div&gt; &lt;li&gt; &lt;div class="text-center"&gt; &lt;a&gt; &lt;strong&gt;&lt;a href="inbox.html"&gt;See All Alerts&lt;/strong&gt; &lt;i class="fa fa-angle-right"&gt;&lt;/i&gt; &lt;/a&gt; &lt;/div&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/nav&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- /top navigation --&gt; &lt;/div&gt; &lt;/div&gt; &lt;script src="js/bootstrap.min.js"&gt;&lt;/script&gt; &lt;script src="js/pnotify.custom.min.js"&gt;&lt;/script&gt; &lt;script src="js/node_modules/socket.io/node_modules/socket.io-client/dist/socket.io.js"&gt;&lt;/script&gt; &lt;script src="js/nodeClient.js"&gt;&lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p><strong>nodeserver.js</strong></p> <pre><code>var socket = require( 'socket.io' ); var express = require( 'express' ); var http = require( 'http' ); var app = express(); var server = http.createServer( app ); var io = socket.listen( server ); io.sockets.on( 'connection', function( client ) { console.log( "New client" ); client.on( 'notification', function( data ) { console.log( 'Notification received ' + data.notification); //client.broadcast.emit( 'message', { name: data.name, message: data.message } ); io.sockets.emit( 'notification', { notification: data.notification, serverData: data.serverData } ); }); }); server.listen( 8082 ); </code></pre> <p><strong>nodeclient.js</strong></p> <pre><code>var client = (function () { var socket = io.connect('http://192.168.2.8:8082'); var interval; //for random notification generation function init() { buttonClicked(); socketNotificationUpdate(); } function buttonClicked() { $("#notification").on('submit', function (e) { e.preventDefault(); //Preventing default submit action var $cacheDom = $(this); //Caching the dom so that jQuery doesn't always need to search in the page var url = $cacheDom.attr('action'); //Grabbing url of the form var notification = $cacheDom.find('div:nth-child(2) input').val(); $cacheDom.find('div').removeClass('has-error').addClass('has-success').val(''); if (notification.length == 0) { $cacheDom.find('div').removeClass('has-success').addClass('has-error'); return false; } //Ajax call to save data saveAjaxNotification(notification, url); }); } function socketNotificationUpdate() { socket.on('notification', function (data) { var $cacheDom = $('#notifications-container'); var actualContent = $cacheDom.html(); //All notification var $notificationCount = $cacheDom.parent().prev().find('span'); //Header notification count selector var notificationCount = $notificationCount.text(); //Header Notification count $notificationCount.text(Number(notificationCount) + 1); //Incrementing after one notification var newMsgContent = '&lt;li data-id="' + data.serverData.lastInsertId + '" onclick="client.openNotification(this)"&gt;&lt;a&gt;&lt;span class="image"&gt;&lt;img src="images/img.jpg" alt="Profile Image" /&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;Ashish Singh&lt;/span&gt;&lt;span class="time"&gt;0 seconds ago&lt;/span&gt;&lt;/span&gt;&lt;span class="message"&gt;' + data.notification + '&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;'; $cacheDom.html(newMsgContent + actualContent); }); } function openNotification(that) { var notificationId = $(that).attr('data-id'); $.post('./ajax/readNotification.php', {notification_id: notificationId}, function () { $(that).remove(); //removing the clicked notification (optional as it should take the user to new page) var $notificationCount = $('#notifications-container').parent().prev().find('span'); var notificationCount = $notificationCount.text(); $notificationCount.text(Number(notificationCount) - 1); alert('Notification Link will be opened'); //Just for message location.href = ""; //Reloading the page as on clicking the notification will take the user to notifications page where all the notification will be shown (read or unread) }); } function saveAjaxNotification(notification, url) { $.ajax({ url: url, type: "POST", data: {notification: notification}, success: function (data) { var serverData = JSON.parse(data); socket.emit('notification', {notification: notification, serverData: serverData}); PNotify.desktop.permission(); (new PNotify({ title: 'Ashish Singh', text: notification, desktop: { desktop: true, icon: 'images/img.jpg' } })).get().click(function (e) { if ($('.ui-pnotify-closer, .ui-pnotify-sticker, .ui-pnotify-closer *, .ui-pnotify-sticker *').is(e.target)) return; alert('http://vegfru.com/imrealashu/notification/' + serverData.link); }); } }); } function gerateRandomNotification(that) { var url = $(that).parent().parent().attr('action'); var count = 1; if ($(that).is(':checked')) { interval = setInterval(function () { saveAjaxNotification('notification' + count, url); count++ }, 3000); } else { clearInterval(interval); } } init(); return { openNotification: openNotification, //Revealing the openNotification function as it will be used in DOM gerateRandomNotification: gerateRandomNotification } })(); </code></pre> </div>

使用nodejs或python爬虫如何模拟http2请求

如题。如何使用nodejs或python爬虫如何模拟http2请求。

使用Apache2的NodeJS应用程序有时会返回503 Server Unavailable

<div class="post-text" itemprop="text"> <p><strong>The Scenary</strong></p> <p>I have a <strong>Ubuntu 18.04</strong> server in DigitalOcean with the following specs: <strong>1 vCPUs</strong>, <strong>1GB</strong> and <strong>25GB Disk</strong>.</p> <p>In this server (let's call API SERVER) I'm using PHP with NodeJS (running in a Proxy managed by apache).</p> <p>I set up my virtual host with the following specifications (<strong>000-default.conf</strong>, I'm not using a domain):</p> <pre><code> DocumentRoot /var/www/html/api #Allow Htacess Files &lt;Directory "/var/www/html"&gt; AllowOverride All &lt;/Directory&gt; #Nodejs (API) Directory Redirection ProxyRequests Off ProxyPreserveHost On ProxyVia Full KeepAlive On &lt;Proxy *&gt; Require all granted &lt;/Proxy&gt; &lt;Location /node_api&gt; ProxyPass http://127.0.0.1:3569 retry=0 ProxyPassReverse http://127.0.0.1:3569 &lt;/Location&gt; </code></pre> <p>In <code>/var/www/html</code> I have two folders:</p> <ul> <li><code>api</code> folder that contains the api made in php (to be accessed simply enter the server ip);</li> <li><code>node_api</code> folder that contains the api made in node (to be accessed you need to enter server ip and add <code>/node_api</code> in URL);</li> </ul> <p>I use PM2 to manage my node server (server.js).</p> <p><strong>What my API does</strong></p> <p>Another server makes a request for this server (which is actually an API) more specifically for a file made in PHP.</p> <p>The PHP file performs some internal analysis, and finally it sends some requests to the api made with node, wait for a response and save in a local file (These requests are sent via <code>CURL</code>).</p> <pre><code>$chNodePrintDesktop = curl_init('http://MY_PUBLIC_IP_SERVER/node_api/requestScreenShootForDesktop/'); curl_setopt($chNodePrintDesktop, CURLOPT_HEADER, 0); curl_setopt($chNodePrintDesktop, CURLOPT_RETURNTRANSFER, 1); curl_setopt($chNodePrintDesktop, CURLOPT_CONNECTTIMEOUT, 0); curl_setopt($chNodePrintDesktop, CURLOPT_TIMEOUT, 0); curl_setopt($chNodePrintDesktop, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded')); curl_setopt($chNodePrintDesktop, CURLOPT_POSTFIELDS, "urlsite=http://".$argv[2]); $dataNodePrintDesktop = curl_exec($chNodePrintDesktop); curl_close($chNodePrintDesktop); </code></pre> <p>In my case I am sending 5 requests to the node api, each of these requests calls a different route (as we can see in the code above I am calling the route <code>'requestScreenShootForDesktop'</code>).</p> <p>All my 5 routes existing inside my node api, make use of the library called <code>'puppeteer</code>'. In this case when I call one of my routes, the node takes the url sent by CURL and returns the data, example from the route <code>/requestScreenShootForMobile/</code>:</p> <pre><code>app.post('/requestScreenShootForMobile/', async function(req, res){ const pathUpload = '/var/www/html/node_api/uploads/' + Math.floor(Date.now() / 1000) + '.png'; const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.goto(req.body.urlsite); await await page.emulate(devices['iPhone 6']); await page.screenshot({path: pathUpload}); await browser.close(); var img = await fs.readFileSync(pathUpload); await res.writeHead(200, {'Content-Type': 'image/png' }); await res.end(img, 'binary'); await fs.unlinkSync(pathUpload); }); </code></pre> <p>As you can see above, I open and close chrome every time the route is called.</p> <p><strong>The Problem</strong></p> <p>In a single request made to the server, php performs the following procedure:</p> <ul> <li>Performs some internal analyzes.</li> <li>Performs 5 CURL'S for different routes to the NODE api (Request a screenshoot for desktop, another for mobile, scrapper all links and so on... all using puppeteer, open and close chrome every time the route is called).</li> <li>Save all the data in a .txt file.</li> </ul> <p>During some analysis I noticed that some results made by Node ended up returning error <code>503 service unavailable</code>:</p> <blockquote> <p>The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later Apache/2.4.29 (Ubuntu) Server at MY_PUBLIC_IP_SERVER Port 80</p> </blockquote> <p>At the first analysis the results usually come out correctly, but as several analyzes are performed (often simultaneously) CURL usually returns error 503 more often.</p> <p>I try to upgrade the specs of my server (<strong>2 Dedicated vCPUs</strong>, <strong>4GB</strong> and <strong>25GB Disk</strong>), use <code>retry=0</code> in <code>ProxyPass</code>, but none of that worked.</p> <p>An interesting point is that although node returns error 503, php always generates the .txt file.</p> <p>What may be happening and how to solve this problem?</p> </div>

在PHP或NodeJS中实现Python加密代码

<div class="post-text" itemprop="text"> <p>I am trying to implement a python encription code based on gzip and crypto library but i dont know the equivalent modules or functions in either php or node js</p> <pre><code>from Crypto.Cipher import DES, AES def enclen(p): return ((16 - p % 16) &amp; 0xF) + p + 4 def rsb(a, b): return (0 - a + b) &amp; 0xffffffff def ands(a, b): return (a &amp; b) &amp; 0xffffffff def _ror(val, bits, bit_size): return ((val &amp; (2 ** bit_size - 1)) &gt;&gt; bits % bit_size) | \ (val &lt;&lt; (bit_size - (bits % bit_size)) &amp; (2 ** bit_size - 1)) def __ROR4__(a, b): return _ror(a, b, 32) def eor(a, b): return (a ^ b) &amp; 0xffffffff class Crypto(object): def __init__(self): self.key = b'!*ss!_defaul%t54' self.kl = 0x10 self.sbox0 = bytes.fromhex( '637C777BF26B6FC53001672BFED7AB76CA82C97DFA5947F0ADD4A2AF9CA472' 'C0B7FD9326363FF7CC34A5E5F171D8311504C723C31896059A071280E2EB27' 'B27509832C1A1B6E5AA0523BD6B329E32F8453D100ED20FCB15B6ACBBE394A' '4C58CFD0EFAAFB434D338545F9027F503C9FA851A3408F929D38F5BCB6DA21' '10FFF3D2CD0C13EC5F974417C4A77E3D645D197360814FDC222A908846EEB8' '14DE5E0BDBE0323A0A4906245CC2D3AC629195E479E7C8376D8DD54EA96C56' 'F4EA657AAE08BA78252E1CA6B4C6E8DD741F4BBD8B8A703EB5664803F60E61' '3557B986C11D9EE1F8981169D98E949B1E87E9CE5528DF8CA1890DBFE64268' '41992D0FB054BB16') self.plen = 0 def crypt(self, payload): if not isinstance(payload, bytes): payload = payload.encode('utf8') self.plen = len(payload) i = 0 r = [00] * 16 while i &lt; self.kl: a = self.key[i] r[i] = self.sbox0[a] i += 1 t = int.from_bytes(r[:4], 'big') r[:4] = int.to_bytes(t, 4, 'little') t = int.from_bytes(r[4:8], 'big') r[4:8] = int.to_bytes(t, 4, 'little') t = int.from_bytes(r[8:12], 'big') r[8:12] = int.to_bytes(t, 4, 'little') t = int.from_bytes(r[12:16], 'big') r[12:16] = int.to_bytes(t, 4, 'little') b = rsb(self.plen, 0) b = ands(b, 0xf) c = b + self.plen + 4 result = [00] * enclen(self.plen) result[0] = 0x74 result[1] = 0x63 result[2] = 0x02 result[3] = b result[4:len(payload) + 4] = payload i = 4 while i != c: a = result[i] result[i] = self.sbox0[a] i += 1 a = c - 4 b = 0 a = a &gt;&gt; 4 d = 4 while b &lt; a: c = int.from_bytes(result[d:d + 4], 'big') e = int.from_bytes(r[:4], 'little') c ^= e result[d:d + 4] = int.to_bytes(c, 4, 'big') c = int.from_bytes(result[d + 4:d + 8], 'big') e = int.from_bytes(r[4:8], 'little') c = eor(e, __ROR4__(c, 24)) result[d + 4:d + 8] = int.to_bytes(c, 4, 'big') c = int.from_bytes(result[d + 8:d + 12], 'big') e = int.from_bytes(r[8:12], 'little') c = eor(e, __ROR4__(c, 16)) result[d + 8:d + 12] = int.to_bytes(c, 4, 'big') c = int.from_bytes(result[d + 12:d + 16], 'big') e = int.from_bytes(r[12:16], 'little') c = eor(e, __ROR4__(c, 8)) result[d + 12:d + 16] = int.to_bytes(c, 4, 'big') b += 1 d += 0x10 return bytes(result) </code></pre> <p>I dont have much idea what really goes behind this code some byte size operations but i dont know what exactly happens</p> <p>Either nodejs or php equivalent of this code or any idea to how to implement it in those lang or if those languages are supported this kind of operations I dont know</p> </div>

通过从NodeJS中执行PHP脚本来重新启动NodeJS

<div class="post-text" itemprop="text"> <p>I have a problem trying to update a folder and deploy its contents again. I have to use NodeJS and have gotten port 8080 to work with. I have tried to create a php script (update.php): </p> <pre><code>&lt;?php echo exec("git pull"); echo exec("node app.js"); ?&gt; </code></pre> <p>Now i want to start the NodeJS script to update and the ultimate goal is to be able to restart the server.</p> <p>I use the express module:</p> <pre><code>app.get('/Update', function(req,res) { exec("php update.php", function(error, stdout, stderr) { process.exit(0); } } </code></pre> <p>The problem is that the NodeJS server quits when it gets a response from the script but the script tries to start the NodeJS server. This obviously cannot happen since it is already running on the specified port. </p> <p>Now i found on google to use the module called 'nodemon' however I am not given sudo access so installing this is out of the question. Other results are using</p> <pre><code>ps aux | grep node kill -9 PROCESS_ID </code></pre> <p>This also yields problems since it is hard to configure the PHP script to kill the specified process but aside from that there are other NodeJS servers running in other child folders of the parent folder I am given. This means that if I'd use 'killall node' I'd get a lot of people angry that I killed their servers. </p> <p>What is the best approach to solving this problem using only port 8080 and wanting to deploy the changes in the Github repo when accessing a certain link? </p> </div>

在go中运行nodejs应用

<div class="post-text" itemprop="text"> <p>I have a requirement. Is there a way to run nodejs apps inside golang? I need to wrap the nodejs app inside a golang application and in the end to result a golang binary that starts the nodejs server and then to be able to call nodejs rest endpoints. I need to encapsulate in the golang binary the entire nodejs application with nodem_odules, if necessarily the nodejs runtime.</p> </div>

如何从php / symfony调用NODEJS函数

<div class="post-text" itemprop="text"> <p>I am using nodejs package gps-tracking to develop a gps tracking system. My web interface is in symfony/ PHP. I would like to know how i can send any command ( e.g. Setting Geo fence, Send command to switch of the ignition) to the device using my web interface to the device using the nodejs server. i saw a method <code>this.send_to = function(device_id, msg)</code>. But would like to understand how i can invoke this method from the PHP /symfony platform.</p> <p>Please suggest.</p> </div>

如何使用php的exec函数启动nodejs进程

<div class="post-text" itemprop="text"> <p>I need to remotely restart the nodejs site on the server via php. It's easy to end this nodejs process, but I can't start it because of lifecycle issues. What should I do about this? The following code is an api that can be accessed over the network to implement lookup and end nodejs.</p> <pre><code>&lt;?php header('Content-Type: text/plain'); $cmd = 'netstat -aon|findstr "0.0.0.0:8888"'; echo 'C:\Users\Server&gt;'.$cmd." "; exec($cmd,$out); if(!empty($out)){ echo $out[0]." "; $pid = explode(" ",$out[0]); $pid = intval(end($pid)); if($pid&gt;20){ $cmd = 'taskkill /f /pid '.$pid; echo 'C:\Users\Server&gt;'.$cmd." "; exec($cmd,$out); echo "killed "; } }else{ echo "notfind 8888 "; } $cmd = 'cmd /c E: odejs un.bat'; echo 'C:\Users\Server&gt;'.$cmd." "; exec($cmd); </code></pre> </div>

如何在Apache服务器上运行没有端口号的nodejs

<div class="post-text" itemprop="text"> <p>I have a nodejs api application running inside a codeigniter environment. Im trying to access the nodejs api's without using a port number in the url </p> <p>currently you can only hit the node api at</p> <pre><code>http://wrl.xx.com:8010/api </code></pre> <p>And I would like to have it accessible through a url like :</p> <pre><code>http://wrl.xx.com/api/ </code></pre> <p>I tried to run a reverse proxy with no success</p> <pre><code>&lt;VirtualHost *:80&gt; ServerName wrl.xx.com ProxyRequests off &lt;Proxy *&gt; Order allow,deny Allow from all &lt;/Proxy&gt; ProxyPass / http://localhost:8010/ ProxyPassReverse / http://localhost:8010/ ProxyPreserveHost on &lt;/VirtualHost&gt; </code></pre> </div>

php websocket转发到nodejs

<div class="post-text" itemprop="text"> <p>im tring to create an adapter in php to forward messages from javascript client to nodejs server and vice versa.</p> <h3>WebSockets:</h3> <p>nodejs server: <a href="https://www.npmjs.com/package/ws" rel="nofollow noreferrer">ws</a></p> <p>php server: <a href="http://socketo.me" rel="nofollow noreferrer">RatchetPHP</a></p> <p>php client: <a href="https://github.com/ratchetphp/Pawl" rel="nofollow noreferrer">RatchetPawl</a></p> <h3>Code:</h3> <p>websocket server in php: <a href="https://github.com/neriyarosner/php-socket-forwarding/blob/master/chatWSServer.php" rel="nofollow noreferrer">chatWSServer.php</a></p> <p>connection class: <a href="https://github.com/neriyarosner/php-socket-forwarding/blob/master/inc/connection.php" rel="nofollow noreferrer">connection.php</a></p> <p>javascript client:</p> <pre><code>connection = new WebSocket('ws://localhost:9000'); connection.onmessage = (e) =&gt; { console.log(e.data); } connection.onopen = (e) =&gt; { console.log("connection established!"); } connection.addEventListener('message', (resData) =&gt; { console.log("got message:", resData); }); </code></pre> <h3>Problem:</h3> <p>i try to open a connection to the nodejs websocket server (localhost:8889), on javscript client connection to php websocket server (localhost:9000): <strong>chatWSServer.php - createConnection()</strong> and its working, but when the javascript client try to send a message i get:</p> <blockquote> <p>Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.</p> </blockquote> <p>i think its because ratchet pawl connector loop is running - when i comment: <code>loop-&gt;run()</code> the client is able to send messages.</p> </div>

如何在php-engine上使用nodejs + socket.io

<div class="post-text" itemprop="text"> <p>I don't understand how to use nodejs+socket.io for my php engine.</p> <ol> <li>I have php-engine.</li> <li>I have server with installed nodejs+socket.io</li> <li>I'll don't know, how to send event (json - pref. etc.) from php-script's on socket.io the server, with privacy policy.</li> </ol> <p>Or, how to use this ? if this is not php - so how i take userid/username/images?</p> <p>All scripts what i see in the internet - without security and anyone can use not his username or userid (just change js), and nobody don't said, how to protect this.</p> <p>Maybe u can help me and say how do this - with example code :)</p> </div>

在Nodejs中加密并在PHP中解密

<div class="post-text" itemprop="text"> <p>I'm trying to decrypt a string in PHP which was originally encrypted in NodeJS.</p> <p>PHP:</p> <p><code>openssl_decrypt($raw_id, "aes-128-cbc", "s7UbmJpfm56r6CAC6mz7KVZdRc3Fxc4m", 0, null)</code></p> <p>This seems to always return<code>false</code>.</p> <p>Encryption in Nodejs:</p> <pre><code>function encrypt(text) { var cipher = crypto.createCipher('aes-128-cbc', 's7UbmJpfm56r6CAC6mz7KVZdRc3Fxc4m'); var encrypted = cipher.update(text, 'utf8', 'hex') encrypted += cipher.final('hex') return encrypted; } function decrypt(text) { var cipher = crypto.createDecipher('aes-128-cbc', 's7UbmJpfm56r6CAC6mz7KVZdRc3Fxc4m'); var decrypted = cipher.update(text, 'hex', 'utf8') decrypted += cipher.final('utf8'); return decrypted; } </code></pre> <p>I basically want to encrypt, for example, <code>encrypt("Pizza")</code> in Nodejs, send it to the PHP page (<code>3879f91a59e9a458db62f905b0a488a1</code>), and decrypt it from there (<code>openssl_decrypt: return Pizza</code>).</p> <p><i>I know this code is not safe, since I'm not using an IV but I'm not sure how to add one.</i></p> </div>

我可以在NodeJS中生成密钥对,使用公钥在PHP中加密数据,在NodeJS中解密吗?

<div class="post-text" itemprop="text"> <p><strong>Requirements:</strong></p> <p>Essentially I have a series of devices (running <code>NodeJS</code>) that need to maintain their own unique private and public keys. They communicate with a centralized server in <code>PHP</code> by pulling content.</p> <p>When a new device starts up, I would like it to generate a private and public key and send only the public key to the PHP server to be stored.</p> <p>When a device runs a <code>GET</code> request on the PHP server, the server should use the public key it was provided to encrypt the data.</p> <p>When the device receives this response, it should be able to use the private key to decrypt this data.</p> <p><strong>Currently:</strong></p> <p>I am currently generating a private and public key pair using <a href="https://www.npmjs.com/package/keypair" rel="nofollow noreferrer">keypair</a>. I send the public key to the PHP server to be stored and associated with the unique device.</p> <p>I encrypt the data on the PHP server using <a href="https://github.com/paragonie/EasyRSA" rel="nofollow noreferrer">EasyRSA</a>:</p> <pre><code>$message = "Decrypt me if you can"; $publicKey = new PublicKey($storedPublicKey); $encrypted = EasyRSA::encrypt($message, $publicKey); return $encrypted; </code></pre> <p>With this encrypted string being returned to the <code>NodeJS</code> app, I then try to decrypt it using <a href="https://www.npmjs.com/package/node-rsa" rel="nofollow noreferrer">NodeRSA</a> (where <code>response</code> is the string response from the PHP server):</p> <pre><code>const key = new NodeRSA(storedPrivateKey) const result = key.decrypt(response) </code></pre> <p>However it errors out with:</p> <p><code>Error during decryption (probably incorrect key).</code></p> <p>I believe I am missing something fundamental here, but am unsure on what that may be. Any thoughts?</p> </div>

在apache服务器端运行python脚本

<div class="post-text" itemprop="text"> <p>I am working on an algorithm in python for a problem which take multiple hours to finish. I want to accept some details using html/php from user and then use those to run the algorithms in python. Even when the user closes the browser, I want the python script to be running at the server side and when user logins again, and then it displays the result. Is this possible using apache server and php? Can server created using nodejs be solution? Plz help. Any help would be appreciated. </p> </div>

我想在wamp集成的php服务器上跑nodejs 有高人会吗……

我想在wamp集成的php服务器上跑nodejs 有高人会吗……

将文件和文本从nodejs服务器发布到php服务器

<div class="post-text" itemprop="text"> <p>I'm trying to send a file from nodejs using http post options to php server and when I'm using postman to post that file this is an image for postman:</p> <p><a href="https://i.stack.imgur.com/z8wrH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z8wrH.png" alt="enter image description here"></a></p> <p>when I post data (file and text) directly from postman to php server through this php code:</p> <pre><code>&lt;?php print_r($_FILES ); print_r($_REQUEST ); ?&gt; </code></pre> <p>I get the output like image above</p> <p>but when I post the data from my nodejs server with this code:</p> <p>class of http options:</p> <pre><code>export const postOptions: PostOptions = { port: 80, hostname: "127.0.0.1", path: "/load.php", method: "POST", headers: { "Content-Type": "multipart/form-data" } </code></pre> <p>and this is the code of post request:</p> <pre><code>const objstatic = JSON.stringify({ uid: "yghu", docfile: imageFile, name: "554", subRAId: "554" }); const req = http.request(postOptions, res =&gt; { console.log(`statusCode: ${res.statusCode}`); res.on("data", d =&gt; { process.stdout.write("-----&gt;" + d); }); }); req.on("error", error =&gt; { console.error(error); }); req.write(objstatic); req.end(); </code></pre> <p>I got empty arrays:</p> <pre><code>Array( ) Array( ) </code></pre> <p>so how post file and text from nodejs server to php server note: I have control over two servers</p> </div>

如何集成WordPress和NodeJS?

<div class="post-text" itemprop="text"> <p>I have shared hosting where I installed nodejs, so I am able to use node on apache hosting and can run HTML files easily with node.js files but I can't process PHP files. </p> <p>After searching I found a link <a href="https://stackoverflow.com/questions/43824678/cant-process-php-files-with-node-js">Can't Process PHP files with Node.js</a> so I tried "php-express" library in order to run PHP files but unfortunately its downloading PHP file instead of running it:</p> <pre><code>var express = require('express') var app = express() var path = require('path'); var phpExpress = require('php-express')({ binPath: 'php' }); var bodyParser = require("body-parser"); app.use(bodyParser.urlencoded({ extended: true })); app.use(bodyParser.json()); app.use('/', express.static(__dirname)); app.set('views', path.join(__dirname, '/views')); app.engine('php', phpExpress.engine); app.set('view engine', 'php'); app.all(/.+\.php$/, phpExpress.router); app.get('/', function (req, res) { res.sendFile(path.join(__dirname , '/views/index.php'), function (err) { if (err) { res.status(500).send(err) } }) }) app.post('/registration', (req, res) =&gt; { res.send(JSON.stringify(req.body)); }); app.use(function (req, res, next) { res.status(404).send("Sorry can't find that") }); app.listen(3000); </code></pre> <p>I want to get running WordPress site when I call example.com and when I call example.com/registration then I can able to use post method as shown in the code above.</p> </div>

PHP和NodeJS与mongodb

<div class="post-text" itemprop="text"> <p>I try to save a Steamtrade URL in my mongodb but it doesn't work. If i try to save it, it just disappears and tells me to enter it again. I think there's a problem with one of these parts:</p> <pre><code>$(document).on('click', '.save-link', function() { var link = $('input[rel="get-trade-link"]').val(); var escapedLink = escape(link); if (link.indexOf('https://steamcommunity.com/tradeoffer/new/?partner=') &lt; 0 &amp;&amp; link.indexOf('token') &lt; 0) { $('#error').show('fast').delay(1600).hide('fast'); $('#error').html('&lt;strong&gt;Error: &lt;/strong&gt;Enter Correct Url And Try Again!'); } else { var data = 'link=' + escapedLink; $.ajax({ type: 'POST', url: '/ajax/tradelink.php', cache: false, data: data }); $('#success').show('fast').delay(1600).hide('fast'); $('#success').html('&lt;strong&gt;Link Successfully Saved. &lt;/strong&gt;Dont Forget To Open Inventory To Receive winnings!'); $('.token-block.promo').addClass('hidden'); } }); </code></pre> <p>The tradelink.php is here:</p> <pre><code> &lt;?php session_start(); include ('../steamauth/userInfo.php'); if(isset($_SERVER['HTTP_X_REQUESTED_WITH']) &amp;&amp; !empty($_SERVER['HTTP_X_REQUESTED_WITH']) &amp;&amp; strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') { if(!isset($_SESSION['steamid'])) { exit(); } $userLink = $_POST['link']; $userLink = addslashes($_POST['link']); $m = new MongoClient(); $db = $m-&gt;selectDB('admin'); $collection = new MongoCollection($db, 'users'); // search for fruits $fruitQuery = array('steamid' =&gt; $steamprofile['steamid']); $cursor = $collection-&gt;find($fruitQuery); foreach ($cursor as $doc) { $tradeLink = $doc['tradelink']; } if($tradeLink == '') { echo 'No entry found!'; $person = array("steamid" =&gt; $steamprofile['steamid'], "tradelink" =&gt; "".$userLink."" , "type" =&gt; 'trade-link'); $collection-&gt;insert($person); } else { echo 'Record found!'; $obj = $collection-&gt;findOne(); $update = array('tradelink' =&gt; "".$userLink.""); $collection-&gt;update( array( 'steamid' =&gt; $steamprofile['steamid'] ), array( '$set' =&gt; $update ) ); } } ?&gt; </code></pre> </div>

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

总结了 150 余个神奇网站,你不来瞅瞅吗?

原博客再更新,可能就没了,之后将持续更新本篇博客。

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

外包程序员的幸福生活

今天给你们讲述一个外包程序员的幸福生活。男主是Z哥,不是在外包公司上班的那种,是一名自由职业者,接外包项目自己干。接下来讲的都是真人真事。 先给大家介绍一下男主,Z哥,老程序员,是我十多年前的老同事,技术大牛,当过CTO,也创过业。因为我俩都爱好喝酒、踢球,再加上住的距离不算远,所以一直也断断续续的联系着,我对Z哥的状况也有大概了解。 Z哥几年前创业失败,后来他开始干起了外包,利用自己的技术能...

优雅的替换if-else语句

场景 日常开发,if-else语句写的不少吧??当逻辑分支非常多的时候,if-else套了一层又一层,虽然业务功能倒是实现了,但是看起来是真的很不优雅,尤其是对于我这种有强迫症的程序"猿",看到这么多if-else,脑袋瓜子就嗡嗡的,总想着解锁新姿势:干掉过多的if-else!!!本文将介绍三板斧手段: 优先判断条件,条件不满足的,逻辑及时中断返回; 采用策略模式+工厂模式; 结合注解,锦...

深入剖析Springboot启动原理的底层源码,再也不怕面试官问了!

大家现在应该都对Springboot很熟悉,但是你对他的启动原理了解吗?

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

2020阿里全球数学大赛:3万名高手、4道题、2天2夜未交卷

阿里巴巴全球数学竞赛( Alibaba Global Mathematics Competition)由马云发起,由中国科学技术协会、阿里巴巴基金会、阿里巴巴达摩院共同举办。大赛不设报名门槛,全世界爱好数学的人都可参与,不论是否出身数学专业、是否投身数学研究。 2020年阿里巴巴达摩院邀请北京大学、剑桥大学、浙江大学等高校的顶尖数学教师组建了出题组。中科院院士、美国艺术与科学院院士、北京国际数学...

男生更看重女生的身材脸蛋,还是思想?

往往,我们看不进去大段大段的逻辑。深刻的哲理,往往短而精悍,一阵见血。问:产品经理挺漂亮的,有点心动,但不知道合不合得来。男生更看重女生的身材脸蛋,还是...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发(16k)

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

你期望月薪4万,出门右拐,不送,这几个点,你也就是个初级的水平

先来看几个问题通过注解的方式注入依赖对象,介绍一下你知道的几种方式@Autowired和@Resource有何区别说一下@Autowired查找候选者的...

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

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

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

《经典算法案例》01-08:如何使用质数设计扫雷(Minesweeper)游戏

我们都玩过Windows操作系统中的经典游戏扫雷(Minesweeper),如果把质数当作一颗雷,那么,表格中红色的数字哪些是雷(质数)?您能找出多少个呢?文中用列表的方式罗列了10000以内的自然数、质数(素数),6的倍数等,方便大家观察质数的分布规律及特性,以便对算法求解有指导意义。另外,判断质数是初学算法,理解算法重要性的一个非常好的案例。

《Oracle Java SE编程自学与面试指南》最佳学习路线图(2020最新版)

正确选择比瞎努力更重要!

字节跳动面试官竟然问了我JDBC?

轻松等回家通知

面试官:你连SSO都不懂,就别来面试了

大厂竟然要考我SSO,卧槽。

终于,月薪过5万了!

来看几个问题想不想月薪超过5万?想不想进入公司架构组?想不想成为项目组的负责人?想不想成为spring的高手,超越99%的对手?那么本文内容是你必须要掌握的。本文主要详解bean的生命...

自从喜欢上了B站这12个UP主,我越来越觉得自己是个废柴了!

不怕告诉你,我自从喜欢上了这12个UP主,哔哩哔哩成为了我手机上最耗电的软件,几乎每天都会看,可是吧,看的越多,我就越觉得自己是个废柴,唉,老天不公啊,不信你看看…… 间接性踌躇满志,持续性混吃等死,都是因为你们……但是,自己的学习力在慢慢变强,这是不容忽视的,推荐给你们! 都说B站是个宝,可是有人不会挖啊,没事,今天咱挖好的送你一箩筐,首先啊,我在B站上最喜欢看这个家伙的视频了,为啥 ,咱撇...

立即提问
相关内容推荐