There are towns where you will have guards enforcing law and order. In any of those you will be (almost) completely safe.
Or, as said before, join a faction.
An already established one will provide you with an (almost) safe place to store any equipment, some jobs to do, more than likely...