while trying to run freeswitch server
error : Cannot lock pid file /usr/local/freeswitch/run/freeswitch.pid
This can be solved in linux(fedora/centos) by following below syntax
1)open terminal
2)press su (to move admin root)
3)enter password
apply the following command
4)netstat -npl
then it show all the ports runnning
find port running for freeswitch
ex:
tcp 0 0 127.0.0.1:8021 0.0.0.0:* LISTEN 708/freeswitch
5)fuser -k 708/tcp
use the number given in response
ex:710
6)kill -9 710
it worked in my system i hope help to run again your freeswitch server thank you