eagleman Posted August 13, 2018 Share Posted August 13, 2018 Bonjour, J'ai installé memcached sur mon serveur et prestashop detect bien le module mais quand j'essaie d'jouter un serveur les champs s'affichent en rouge pourtant memcached fonctionne correctement je me demande si prestashop interroge le serveur memcache et non pas memcached. [root@serv memcached]# sudo netstat -plunt tcp 0 0 0.0.0.0:11211 0.0.0.0:* LISTEN 23280/memcached sudo systemctl status memcached ● memcached.service - Memcached Loaded: loaded (/etc/systemd/system/memcached.service; enabled; vendor preset: disabled) Active: active (running) since Mon 2018-08-13 00:36:03 WEST; 29min ago Process: 23276 ExecStartPre=/usr/bin/chown -R memcached:memcached /var/run/memcached/ (code=exited, status=0/SUCCESS) Process: 23274 ExecStartPre=/usr/bin/mkdir /var/run/memcached (code=exited, status=1/FAILURE) Main PID: 23280 (memcached) Tasks: 6 Memory: 664.0K CGroup: /system.slice/memcached.service └─23280 /usr/bin/memcached -u memcached -p 11211 -m 64 -c 1024 xx.xx.xxx.xx Aug 13 00:36:03 host.xx.xx systemd[1]: Starting Memcached... Aug 13 00:36:03 host.xxx.xx systemd[1]: Started Memcached. sur la partie admin j'ai constaté que le code html est nommé memcache sans le "d" <div id="server-form" class="col-md-10 collapse show" style=""> <div class="form-group"> <label class="form-control-label">Adresse IP</label> <input type="text" id="form_add_memcache_server_memcache_ip" name="form[add_memcache_server][memcache_ip]" class="form-control is-invalid"> </div> <div class="form-group"> <label class="form-control-label">Port</label> <input type="text" id="form_add_memcache_server_memcache_port" name="form[add_memcache_server][memcache_port]" class="form-control is-invalid"> </div> <div class="form-group"> <label class="form-control-label">Poids</label> <input type="text" id="form_add_memcache_server_memcache_weight" name="form[add_memcache_server][memcache_weight]" class="form-control is-invalid"> </div> <div class="form-group"> <div class="float-right"> <button id="add-server-btn" class="btn btn-primary">Ajouter un serveur</button> <button id="test-server-btn" class="btn btn-primary">Tester le serveur</button> </div> </div> </div> function PerformancePage(addServerUrl, removeServerUrl, testServerUrl) { this.addServerUrl = addServerUrl; this.removeServerUrl = removeServerUrl; this.testServerUrl = testServerUrl; this.getAddServerUrl = function() { return this.addServerUrl; }; this.getRemoveServerlUrl = function() { return this.removeServerUrl; }; this.getTestServerUrl = function() { return this.testServerUrl; }; this.getFormValues = function() { var serverIpInput = document.getElementById('form_add_memcache_server_memcache_ip'); var serverPortInput = document.getElementById('form_add_memcache_server_memcache_port'); var serverWeightInput = document.getElementById('form_add_memcache_server_memcache_weight'); return { 'server_ip': serverIpInput.value, 'server_port': serverPortInput.value, 'server_weight': serverWeightInput.value, }; }; this.createRow = function(params) { var serversTable = document.getElementById('servers-table'); var newRow = document.createElement('tr'); newRow.setAttribute('id', 'row_'+ params.id); newRow.innerHTML = '<td>'+ params.id +'</td>\n' + '<td>'+ params.server_ip +'</td>\n' + '<td>'+ params.server_port +'</td>\n' + '<td>'+ params.server_weight +'</td>\n' + '<td>\n' + ' <a class="btn btn-default" href="#" onclick="app.removeServer('+ params.id +');"><i class="material-icons">remove_circle</i> Remove</a>\n' + '</td>\n'; serversTable.appendChild(newRow); }; Link to comment Share on other sites More sharing options...
doekia Posted August 13, 2018 Share Posted August 13, 2018 127.0.0.1:11211 ! Link to comment Share on other sites More sharing options...
eagleman Posted August 14, 2018 Author Share Posted August 14, 2018 Bonjour, Malgré que les champs s'affichent en rouge j'ai quand meme ajouté mon serveur et je vois que ca fonctionne Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now