Error from httpd log:

[Mon May xxxx] [proxy:error] [pid xxxxx:tid xxxxxxxx] (13)Permission denied: AH00957: HTTP: attempt to connect to 127.0.0.1:3000 (127.0.0.1) failed

Solved by running this command:

/usr/sbin/setsebool -P httpd_can_network_connect…


  1. Need to add a nameserver in /etc/resolv.conf file by running this to modify:

run vi /etc/resolv.conf

2. add this line to the file :

nameserver 8.8.8.8

3. Run this to…


1. vi /etc/httpd/conf/httpd.conf
add
Listen 8080
2. touch xx.conf file in /etc/httpd/conf.d
3. edit this file xx.conf
4. systemctl restart httpd
5. if failed, change to port 8080, then repeat 1…


Check running process (eg grep artisan (for artisan only))
ps aux|grep artisan

Stop running process
- can get PID from above
kill 88888

stop all artisan process
pkill -f artisan


Problem:

I am trying to build an react app on Alicloud server, when I am using pm2 to restart the app, the status show ‘online’ but the site doesn’t not…


Solved by:

  1. Change import {AsyncStorage} from 'react-native'; to import {AsyncStorage} from '@react-native-async-storage';
  2. Check from your node-modules dependencies that using import {AsyncStorage} from 'react-native'; In my case, I used “redux-persist”: “5.10.0”…


Problem:

I tried run my react native app by using expo, and chose an emulator to run. However the emulator suddenly get killed and showed this : The emulator process…

Lim Sing

I am a Backend Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store