There are significant differences betweens the epistemologies of Locke and Aristotle.
For one thing, they differ as to what the objects of knowledge are. For Aristotle, what we know are essences; how we know them are that we abstract the form of a substance. For Locke, we know secondary qualities and infer primary qualities. To invoke a different vocabulary, Aristotle is thus a realist about essences and Locke is not.
To summarize, they share the idea that knowledge begins in the senses. But they define knowledge very differently, because they have divergent metaphysics and different ideas of the role of perception in knowledge.
I do not think Locke's empiricism is directly inspired by Aristotle though it might be mediated by Locke having learned some scholastic philosophy (though on that point I am speculating).